diff options
author | Joshua Colp <jcolp@digium.com> | 2013-11-16 13:51:04 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2013-11-16 13:51:04 +0000 |
commit | 1b14a78d14baf473f594e40a5278cf0e0a70e639 (patch) | |
tree | 65d177ed0fb8f994e9671156af4364fc266e8180 /res/res_pjsip/pjsip_distributor.c | |
parent | 7950118e1895883cfb44d7aacff013d2f759920b (diff) |
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
Diffstat (limited to 'res/res_pjsip/pjsip_distributor.c')
-rw-r--r-- | res/res_pjsip/pjsip_distributor.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/res/res_pjsip/pjsip_distributor.c b/res/res_pjsip/pjsip_distributor.c index 9fd6250e8..5e53cb0fd 100644 --- a/res/res_pjsip/pjsip_distributor.c +++ b/res/res_pjsip/pjsip_distributor.c @@ -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; |