diff --git a/configure b/configure index 505a318bcb..08093267b6 100755 --- a/configure +++ b/configure @@ -25169,7 +25169,7 @@ if test "x${PBX_PJSIP_EVSUB_GRP_LOCK}" != "x1" -a "${USE_PJSIP_EVSUB_GRP_LOCK}" pbxlibdir="-L${PJSIP_EVSUB_GRP_LOCK_DIR}" fi fi - pbxfuncname="pjsip_evsub_add_lock" + pbxfuncname="pjsip_evsub_add_ref" if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers AST_PJSIP_EVSUB_GRP_LOCK_FOUND=yes else diff --git a/configure.ac b/configure.ac index 27b448bdfb..9544060cd3 100644 --- a/configure.ac +++ b/configure.ac @@ -2194,7 +2194,7 @@ if test "$USE_PJPROJECT" != "no" ; then LIBS="${saved_libs}" CPPFLAGS="${saved_cppflags}" - AST_EXT_LIB_CHECK([PJSIP_EVSUB_GRP_LOCK], [pjsip], [pjsip_evsub_add_lock], [pjsip.h], [$PJPROJECT_LIB], [$PJPROJECT_CFLAGS]) + AST_EXT_LIB_CHECK([PJSIP_EVSUB_GRP_LOCK], [pjsip], [pjsip_evsub_add_ref], [pjsip.h], [$PJPROJECT_LIB], [$PJPROJECT_CFLAGS]) fi fi