[OpenSIPS-Users] media_exchange
M S
medeanwz at gmail.com
Mon Oct 6 10:27:04 UTC 2025
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!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20251006/c8232a69/attachment.html>
More information about the Users
mailing list