[asterisk-commits] file: branch 12 r402864 - in /branches/12: ./ include/asterisk/ res/res_pjsip/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sat Nov 16 07:44:51 CST 2013
Author: file
Date: Sat Nov 16 07:44:47 2013
New Revision: 402864
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=402864
Log:
Add support for building against pjproject with SIP transaction group lock support.
(issue ASTERISK-22818)
Reported by: Matt Jordan
Modified:
branches/12/configure
branches/12/configure.ac
branches/12/include/asterisk/autoconfig.h.in
branches/12/res/res_pjsip/pjsip_distributor.c
Modified: branches/12/configure.ac
URL: http://svnview.digium.com/svn/asterisk/branches/12/configure.ac?view=diff&rev=402864&r1=402863&r2=402864
==============================================================================
--- branches/12/configure.ac (original)
+++ branches/12/configure.ac Sat Nov 16 07:44:47 2013
@@ -433,6 +433,7 @@
AST_EXT_LIB_SETUP([PGSQL], [PostgreSQL], [postgres])
AST_EXT_LIB_SETUP([PJPROJECT], [PJPROJECT], [pjproject])
AST_EXT_LIB_SETUP([POPT], [popt], [popt])
+AST_EXT_LIB_SETUP_OPTIONAL([PJ_TRANSACTION_GRP_LOCK], [PJSIP Transaction Group Lock Support], [pjsip])
AST_EXT_LIB_SETUP([PORTAUDIO], [PortAudio], [portaudio])
AST_EXT_LIB_SETUP([PRI], [ISDN PRI], [pri])
AST_EXT_LIB_SETUP_OPTIONAL([PRI_L2_PERSISTENCE], [ISDN Layer 2 persistence option], [PRI], [pri])
@@ -2015,6 +2016,8 @@
AST_PKG_CONFIG_CHECK([PJPROJECT], [libpjproject])
+AST_EXT_LIB_CHECK([PJ_TRANSACTION_GRP_LOCK], [pjsip], [pjsip_tsx_create_uac2], [pjsip.h])
+
AST_EXT_LIB_CHECK([POPT], [popt], [poptStrerror], [popt.h])
AST_EXT_LIB_CHECK([PORTAUDIO], [portaudio], [Pa_GetDeviceCount], [portaudio.h])
Modified: branches/12/include/asterisk/autoconfig.h.in
URL: http://svnview.digium.com/svn/asterisk/branches/12/include/asterisk/autoconfig.h.in?view=diff&rev=402864&r1=402863&r2=402864
==============================================================================
--- branches/12/include/asterisk/autoconfig.h.in (original)
+++ branches/12/include/asterisk/autoconfig.h.in Sat Nov 16 07:44:47 2013
@@ -568,6 +568,10 @@
/* Define if your system has the PJPROJECT libraries. */
#undef HAVE_PJPROJECT
+
+/* Define to 1 if pjsip has the PJSIP Transaction Group Lock Support feature.
+ */
+#undef HAVE_PJ_TRANSACTION_GRP_LOCK
/* Define to 1 if your system defines IP_PKTINFO. */
#undef HAVE_PKTINFO
Modified: branches/12/res/res_pjsip/pjsip_distributor.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/res/res_pjsip/pjsip_distributor.c?view=diff&rev=402864&r1=402863&r2=402864
==============================================================================
--- branches/12/res/res_pjsip/pjsip_distributor.c (original)
+++ branches/12/res/res_pjsip/pjsip_distributor.c Sat Nov 16 07:44:47 2013
@@ -134,7 +134,12 @@
}
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;
More information about the asterisk-commits
mailing list