mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
res_pjsip: Add support for building against pjproject with SIP transaction group lock support.
SIP transaction group lock support has been backported into our pjproject. Since the code now internally uses a group lock the code is now changed to unlock it if present. Note that the act of finding the transaction is what actually returns it locked. For further information about group locks check out the wiki page at: http://trac.pjsip.org/repos/wiki/Group_Lock (issue ASTERISK-22818) Reported by: Matt Jordan ........ Merged revisions 402864 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@402865 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -134,7 +134,12 @@ static pjsip_dialog *find_dialog(pjsip_rx_data *rdata)
|
||||
}
|
||||
|
||||
dlg = pjsip_tsx_get_dlg(tsx);
|
||||
|
||||
#ifdef HAVE_PJ_TRANSACTION_GRP_LOCK
|
||||
pj_grp_lock_release(tsx->grp_lock);
|
||||
#else
|
||||
pj_mutex_unlock(tsx->mutex);
|
||||
#endif
|
||||
|
||||
if (!dlg) {
|
||||
return NULL;
|
||||
|
Reference in New Issue
Block a user