Hi Opensips developers,
While going through media_exchang.c code:

static int b2b_media_notify(struct sip_msg *msg, str *key, int type,
                str *logic_key, void *param, int flags)
{
....
terminate:
        *MEDIA_LEG_LOCK(msl);*
        if (initial_state == MEDIA_SESSION_STATE_INIT) {
                /* this is the initial leg, not a re-invite */
                *MEDIA_LEG_UNLOCK(msl);*
                handle_media_session_negative(msl);
        } else {
                *MEDIA_LEG_UNLOCK(msl);*
        }
        return -1;
}

there is no point in lock and unlock above.... unless the first unlock is
supposed to be after handle_media_session_negative(msl);?

Thanks!
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to