diff options
author | George Joseph <george.joseph@fairview5.com> | 2016-02-10 15:16:46 -0700 |
---|---|---|
committer | George Joseph <george.joseph@fairview5.com> | 2016-02-10 15:28:08 -0700 |
commit | 168c18737f87c7bcfdc6c1bd6bbe1eeed0fcff31 (patch) | |
tree | 86f1c695b9725e26e08c648e28baf41c34fbd1cd /include/asterisk/autoconfig.h.in | |
parent | 22bef60b1a82a1d0d2c53f9451cd65342051df94 (diff) |
res_pjsip: Handle pjsip_dlg_create_uas deprecation
Pjproject has deprecated pjsip_dlg_create_uas in 2.5 and replaced it with
pjsip_dlg_create_uas_and_inc_lock which, as the name implies, automatically
increments the lock on the returned dialog. To account for this, configure.ac
now detects the presence of pjsip_dlg_create_uas_and_inc_lock and res_pjsip.c
has an #ifdef HAVE_PJSIP_DLG_CREATE_UAS_AND_INC_LOCK to decide whether to use
the original call or the new one. If the new one was used, the ref count is
decremented before returning.
ASTERISK-25751 #close
Reported-by Josh Colp
Change-Id: I1be776b94761df03bd0693bc7795a75682615ca8
Diffstat (limited to 'include/asterisk/autoconfig.h.in')
-rw-r--r-- | include/asterisk/autoconfig.h.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asterisk/autoconfig.h.in b/include/asterisk/autoconfig.h.in index a9179bae6..6ed96ccb5 100644 --- a/include/asterisk/autoconfig.h.in +++ b/include/asterisk/autoconfig.h.in @@ -580,6 +580,10 @@ /* Define if your system has the PJPROJECT libraries. */ #undef HAVE_PJPROJECT +/* Define to 1 if PJPROJECT has the PJSIP Dialog Create UAS with Incremented + Lock feature. */ +#undef HAVE_PJSIP_DLG_CREATE_UAS_AND_INC_LOCK + /* Define to 1 if PJPROJECT has the PJSIP External Resolver Support feature. */ #undef HAVE_PJSIP_EXTERNAL_RESOLVER |