mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-23 16:05:30 -07:00
Bundled pjproject: Make it easier to override options in config_site.h.
Bundled pjproject uses ./third-party/pjproject/patches/config_site.h to set many pjproject build options like PJ_IOQUEUE_MAX_HANDLES, PJSIP_MAX_URL_SIZE, etc. Editing that file however, causes the git tree to become dirty which is inconvenient. So... * Updated the Asterisk configure scripts to pass the PJPROJECT_CFLAGS variable down to the pjproject configure scripts. See the UserNote below for details. * Updated ./third-party/pjproject/patches/config_site.h to allow the following options to be overridden: PJ_MAX_HOSTNAME, PJSIP_MAX_URL_SIZE, PJ_IOQUEUE_MAX_HANDLES. Other options in config_site.h are not overridable because they can have a bad effect on the overall operation of pjproject. This may be revisited in the future. Options not already set in config_site.h can still be set. * Fixed an issue where if the Linux `epoll` facility is used (which it is by default) the default PJ_IOQUEUE_MAX_HANDLES and PJSIP_MAX_TRANSPORTS were being left at 1024 instead of being icnreased to 5000. * The `pjproject show buildopts` CLI command previously only showed options from the top level `PJ` pjproject layer but now also shows many from the `PJSIP` layer. Many of these, such as PJSIP_MAX_TRANSPORTS, can be set using PJPROJECT_CFLAGS provided they're not already unconditionally set in config_site.h. * The `pjsip dump endpt` CLI command previously required that the pjproject log level be already set to at least 3 or no output would be produced. The command now does that automatically then sets it back to whatever it was. This isn't strictly related to this PR but was just nagging me. UserNote: Bundled pjproject: It's now possible to override some of the pjproject build options contained in ./third-party/pjproject/patches/config_site.h by adding PJPROJECT_CFLAGS to your Asterisk ./configure command line. For example: `./configure ... PJPROJECT_CFLAGS='-DPJ_OPT1=8192 -DPJ_OPT2=512'` Any option in config_site.h that's wrapped in a `#ifndef` block can be overridden and many of the `PJSIP` options displayed by `pjproject show buildopts` can be set. WARNING: Adjusting these options without understanding their effect can cripple your Asterisk instances. You shouldn't adjust them unless you need to solve a specific issue. Resolves: #2011
This commit is contained in:
@@ -3950,8 +3950,8 @@ ac_cxx_conftest_cxx11_main='
|
||||
}
|
||||
{
|
||||
// Unicode literals
|
||||
char const *utf8 = u8"UTF-8 string \u2500";
|
||||
char16_t const *utf16 = u"UTF-8 string \u2500";
|
||||
auto const *utf8 = u8"UTF-8 string \u2500";
|
||||
char16_t const *utf16 = u"UTF-16 string \u2500";
|
||||
char32_t const *utf32 = U"UTF-32 string \u2500";
|
||||
}
|
||||
'
|
||||
@@ -19532,6 +19532,9 @@ printf "%s\n" "no" >&6; }
|
||||
PKG_CONFIG=""
|
||||
fi
|
||||
fi
|
||||
if test -z "$PKG_CONFIG"; then
|
||||
as_fn_error $? "pkg-config not found" "$LINENO" 5
|
||||
fi
|
||||
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bison that supports parse-param" >&5
|
||||
printf %s "checking for bison that supports parse-param... " >&6; }
|
||||
@@ -21224,12 +21227,12 @@ else
|
||||
_pkg_short_errors_supported=no
|
||||
fi
|
||||
if test $_pkg_short_errors_supported = yes; then
|
||||
OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 1.1.0" 2>&1`
|
||||
OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 1.1.0" 2>&1`
|
||||
else
|
||||
OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 1.1.0" 2>&1`
|
||||
OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 1.1.0" 2>&1`
|
||||
fi
|
||||
# Put the nasty error message in config.log where it belongs
|
||||
echo "$OPENSSL_PKG_ERRORS" >&5
|
||||
# Put the nasty error message in config.log where it belongs
|
||||
echo "$OPENSSL_PKG_ERRORS" >&5
|
||||
|
||||
|
||||
PBX_OPENSSL=0
|
||||
@@ -21243,8 +21246,8 @@ printf "%s\n" "no" >&6; }
|
||||
|
||||
|
||||
else
|
||||
OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
|
||||
OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
|
||||
OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
|
||||
OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
printf "%s\n" "yes" >&6; }
|
||||
|
||||
@@ -21315,12 +21318,12 @@ else
|
||||
_pkg_short_errors_supported=no
|
||||
fi
|
||||
if test $_pkg_short_errors_supported = yes; then
|
||||
OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl11" 2>&1`
|
||||
OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl11" 2>&1`
|
||||
else
|
||||
OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl11" 2>&1`
|
||||
OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl11" 2>&1`
|
||||
fi
|
||||
# Put the nasty error message in config.log where it belongs
|
||||
echo "$OPENSSL_PKG_ERRORS" >&5
|
||||
# Put the nasty error message in config.log where it belongs
|
||||
echo "$OPENSSL_PKG_ERRORS" >&5
|
||||
|
||||
|
||||
PBX_OPENSSL=0
|
||||
@@ -21334,8 +21337,8 @@ printf "%s\n" "no" >&6; }
|
||||
|
||||
|
||||
else
|
||||
OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
|
||||
OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
|
||||
OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
|
||||
OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
printf "%s\n" "yes" >&6; }
|
||||
|
||||
@@ -21411,12 +21414,12 @@ else
|
||||
_pkg_short_errors_supported=no
|
||||
fi
|
||||
if test $_pkg_short_errors_supported = yes; then
|
||||
OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
|
||||
OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
|
||||
else
|
||||
OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
|
||||
OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
|
||||
fi
|
||||
# Put the nasty error message in config.log where it belongs
|
||||
echo "$OPENSSL_PKG_ERRORS" >&5
|
||||
# Put the nasty error message in config.log where it belongs
|
||||
echo "$OPENSSL_PKG_ERRORS" >&5
|
||||
|
||||
|
||||
PBX_OPENSSL=0
|
||||
@@ -21430,8 +21433,8 @@ printf "%s\n" "no" >&6; }
|
||||
|
||||
|
||||
else
|
||||
OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
|
||||
OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
|
||||
OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
|
||||
OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
printf "%s\n" "yes" >&6; }
|
||||
|
||||
@@ -22024,7 +22027,7 @@ printf %s "checking for bundled pjproject... " >&6; }
|
||||
EXTERNALS_CACHE_DIR="${EXTERNALS_CACHE_DIR:-${AST_DOWNLOAD_CACHE}}" \
|
||||
PJPROJECT_BUNDLED_OOT="${PJPROJECT_BUNDLED_OOT}" \
|
||||
echo_cflags)
|
||||
PJPROJECT_CFLAGS="$PJPROJECT_INCLUDE"
|
||||
|
||||
PBX_PJPROJECT=1
|
||||
|
||||
|
||||
@@ -26117,12 +26120,12 @@ else
|
||||
_pkg_short_errors_supported=no
|
||||
fi
|
||||
if test $_pkg_short_errors_supported = yes; then
|
||||
LIBEDIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedit" 2>&1`
|
||||
LIBEDIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedit" 2>&1`
|
||||
else
|
||||
LIBEDIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedit" 2>&1`
|
||||
LIBEDIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedit" 2>&1`
|
||||
fi
|
||||
# Put the nasty error message in config.log where it belongs
|
||||
echo "$LIBEDIT_PKG_ERRORS" >&5
|
||||
# Put the nasty error message in config.log where it belongs
|
||||
echo "$LIBEDIT_PKG_ERRORS" >&5
|
||||
|
||||
|
||||
PBX_LIBEDIT=0
|
||||
@@ -26136,8 +26139,8 @@ printf "%s\n" "no" >&6; }
|
||||
|
||||
|
||||
else
|
||||
LIBEDIT_CFLAGS=$pkg_cv_LIBEDIT_CFLAGS
|
||||
LIBEDIT_LIBS=$pkg_cv_LIBEDIT_LIBS
|
||||
LIBEDIT_CFLAGS=$pkg_cv_LIBEDIT_CFLAGS
|
||||
LIBEDIT_LIBS=$pkg_cv_LIBEDIT_LIBS
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
printf "%s\n" "yes" >&6; }
|
||||
|
||||
@@ -26610,12 +26613,12 @@ else
|
||||
_pkg_short_errors_supported=no
|
||||
fi
|
||||
if test $_pkg_short_errors_supported = yes; then
|
||||
JANSSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson >= 2.11" 2>&1`
|
||||
JANSSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson >= 2.11" 2>&1`
|
||||
else
|
||||
JANSSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jansson >= 2.11" 2>&1`
|
||||
JANSSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jansson >= 2.11" 2>&1`
|
||||
fi
|
||||
# Put the nasty error message in config.log where it belongs
|
||||
echo "$JANSSON_PKG_ERRORS" >&5
|
||||
# Put the nasty error message in config.log where it belongs
|
||||
echo "$JANSSON_PKG_ERRORS" >&5
|
||||
|
||||
|
||||
PBX_JANSSON=0
|
||||
@@ -26629,8 +26632,8 @@ printf "%s\n" "no" >&6; }
|
||||
|
||||
|
||||
else
|
||||
JANSSON_CFLAGS=$pkg_cv_JANSSON_CFLAGS
|
||||
JANSSON_LIBS=$pkg_cv_JANSSON_LIBS
|
||||
JANSSON_CFLAGS=$pkg_cv_JANSSON_CFLAGS
|
||||
JANSSON_LIBS=$pkg_cv_JANSSON_LIBS
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
printf "%s\n" "yes" >&6; }
|
||||
|
||||
@@ -26854,12 +26857,12 @@ else
|
||||
_pkg_short_errors_supported=no
|
||||
fi
|
||||
if test $_pkg_short_errors_supported = yes; then
|
||||
LIBJWT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libjwt >= $LIBJWT_VERSION" 2>&1`
|
||||
LIBJWT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libjwt >= $LIBJWT_VERSION" 2>&1`
|
||||
else
|
||||
LIBJWT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libjwt >= $LIBJWT_VERSION" 2>&1`
|
||||
LIBJWT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libjwt >= $LIBJWT_VERSION" 2>&1`
|
||||
fi
|
||||
# Put the nasty error message in config.log where it belongs
|
||||
echo "$LIBJWT_PKG_ERRORS" >&5
|
||||
# Put the nasty error message in config.log where it belongs
|
||||
echo "$LIBJWT_PKG_ERRORS" >&5
|
||||
|
||||
|
||||
PBX_LIBJWT=0
|
||||
@@ -26873,8 +26876,8 @@ printf "%s\n" "no" >&6; }
|
||||
|
||||
|
||||
else
|
||||
LIBJWT_CFLAGS=$pkg_cv_LIBJWT_CFLAGS
|
||||
LIBJWT_LIBS=$pkg_cv_LIBJWT_LIBS
|
||||
LIBJWT_CFLAGS=$pkg_cv_LIBJWT_CFLAGS
|
||||
LIBJWT_LIBS=$pkg_cv_LIBJWT_LIBS
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
printf "%s\n" "yes" >&6; }
|
||||
|
||||
@@ -27043,12 +27046,12 @@ else
|
||||
_pkg_short_errors_supported=no
|
||||
fi
|
||||
if test $_pkg_short_errors_supported = yes; then
|
||||
LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
|
||||
LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
|
||||
else
|
||||
LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
|
||||
LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
|
||||
fi
|
||||
# Put the nasty error message in config.log where it belongs
|
||||
echo "$LIBXML2_PKG_ERRORS" >&5
|
||||
# Put the nasty error message in config.log where it belongs
|
||||
echo "$LIBXML2_PKG_ERRORS" >&5
|
||||
|
||||
|
||||
PBX_LIBXML2=0
|
||||
@@ -27062,8 +27065,8 @@ printf "%s\n" "no" >&6; }
|
||||
|
||||
|
||||
else
|
||||
LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
|
||||
LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
|
||||
LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
|
||||
LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
printf "%s\n" "yes" >&6; }
|
||||
|
||||
@@ -34614,12 +34617,12 @@ else
|
||||
_pkg_short_errors_supported=no
|
||||
fi
|
||||
if test $_pkg_short_errors_supported = yes; then
|
||||
ILBC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libilbc < 3" 2>&1`
|
||||
ILBC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libilbc < 3" 2>&1`
|
||||
else
|
||||
ILBC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libilbc < 3" 2>&1`
|
||||
ILBC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libilbc < 3" 2>&1`
|
||||
fi
|
||||
# Put the nasty error message in config.log where it belongs
|
||||
echo "$ILBC_PKG_ERRORS" >&5
|
||||
# Put the nasty error message in config.log where it belongs
|
||||
echo "$ILBC_PKG_ERRORS" >&5
|
||||
|
||||
|
||||
PBX_ILBC=0
|
||||
@@ -34633,8 +34636,8 @@ printf "%s\n" "no" >&6; }
|
||||
|
||||
|
||||
else
|
||||
ILBC_CFLAGS=$pkg_cv_ILBC_CFLAGS
|
||||
ILBC_LIBS=$pkg_cv_ILBC_LIBS
|
||||
ILBC_CFLAGS=$pkg_cv_ILBC_CFLAGS
|
||||
ILBC_LIBS=$pkg_cv_ILBC_LIBS
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
printf "%s\n" "yes" >&6; }
|
||||
|
||||
@@ -36990,12 +36993,12 @@ else
|
||||
_pkg_short_errors_supported=no
|
||||
fi
|
||||
if test $_pkg_short_errors_supported = yes; then
|
||||
NETSNMP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "netsnmp-agent" 2>&1`
|
||||
NETSNMP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "netsnmp-agent" 2>&1`
|
||||
else
|
||||
NETSNMP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "netsnmp-agent" 2>&1`
|
||||
NETSNMP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "netsnmp-agent" 2>&1`
|
||||
fi
|
||||
# Put the nasty error message in config.log where it belongs
|
||||
echo "$NETSNMP_PKG_ERRORS" >&5
|
||||
# Put the nasty error message in config.log where it belongs
|
||||
echo "$NETSNMP_PKG_ERRORS" >&5
|
||||
|
||||
|
||||
PBX_NETSNMP=0
|
||||
@@ -37009,8 +37012,8 @@ printf "%s\n" "no" >&6; }
|
||||
|
||||
|
||||
else
|
||||
NETSNMP_CFLAGS=$pkg_cv_NETSNMP_CFLAGS
|
||||
NETSNMP_LIBS=$pkg_cv_NETSNMP_LIBS
|
||||
NETSNMP_CFLAGS=$pkg_cv_NETSNMP_CFLAGS
|
||||
NETSNMP_LIBS=$pkg_cv_NETSNMP_LIBS
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
printf "%s\n" "yes" >&6; }
|
||||
|
||||
@@ -38513,12 +38516,12 @@ else
|
||||
_pkg_short_errors_supported=no
|
||||
fi
|
||||
if test $_pkg_short_errors_supported = yes; then
|
||||
PJPROJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpjproject" 2>&1`
|
||||
PJPROJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpjproject" 2>&1`
|
||||
else
|
||||
PJPROJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpjproject" 2>&1`
|
||||
PJPROJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpjproject" 2>&1`
|
||||
fi
|
||||
# Put the nasty error message in config.log where it belongs
|
||||
echo "$PJPROJECT_PKG_ERRORS" >&5
|
||||
# Put the nasty error message in config.log where it belongs
|
||||
echo "$PJPROJECT_PKG_ERRORS" >&5
|
||||
|
||||
|
||||
PBX_PJPROJECT=0
|
||||
@@ -38532,8 +38535,8 @@ printf "%s\n" "no" >&6; }
|
||||
|
||||
|
||||
else
|
||||
PJPROJECT_CFLAGS=$pkg_cv_PJPROJECT_CFLAGS
|
||||
PJPROJECT_LIBS=$pkg_cv_PJPROJECT_LIBS
|
||||
PJPROJECT_CFLAGS=$pkg_cv_PJPROJECT_CFLAGS
|
||||
PJPROJECT_LIBS=$pkg_cv_PJPROJECT_LIBS
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
printf "%s\n" "yes" >&6; }
|
||||
|
||||
@@ -40312,12 +40315,12 @@ else
|
||||
_pkg_short_errors_supported=no
|
||||
fi
|
||||
if test $_pkg_short_errors_supported = yes; then
|
||||
PORTAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "portaudio-2.0" 2>&1`
|
||||
PORTAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "portaudio-2.0" 2>&1`
|
||||
else
|
||||
PORTAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "portaudio-2.0" 2>&1`
|
||||
PORTAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "portaudio-2.0" 2>&1`
|
||||
fi
|
||||
# Put the nasty error message in config.log where it belongs
|
||||
echo "$PORTAUDIO_PKG_ERRORS" >&5
|
||||
# Put the nasty error message in config.log where it belongs
|
||||
echo "$PORTAUDIO_PKG_ERRORS" >&5
|
||||
|
||||
|
||||
PBX_PORTAUDIO=0
|
||||
@@ -40331,8 +40334,8 @@ printf "%s\n" "no" >&6; }
|
||||
|
||||
|
||||
else
|
||||
PORTAUDIO_CFLAGS=$pkg_cv_PORTAUDIO_CFLAGS
|
||||
PORTAUDIO_LIBS=$pkg_cv_PORTAUDIO_LIBS
|
||||
PORTAUDIO_CFLAGS=$pkg_cv_PORTAUDIO_CFLAGS
|
||||
PORTAUDIO_LIBS=$pkg_cv_PORTAUDIO_LIBS
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
printf "%s\n" "yes" >&6; }
|
||||
|
||||
@@ -46808,12 +46811,12 @@ else
|
||||
_pkg_short_errors_supported=no
|
||||
fi
|
||||
if test $_pkg_short_errors_supported = yes; then
|
||||
GMIME_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gmime-$ver" 2>&1`
|
||||
GMIME_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gmime-$ver" 2>&1`
|
||||
else
|
||||
GMIME_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gmime-$ver" 2>&1`
|
||||
GMIME_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gmime-$ver" 2>&1`
|
||||
fi
|
||||
# Put the nasty error message in config.log where it belongs
|
||||
echo "$GMIME_PKG_ERRORS" >&5
|
||||
# Put the nasty error message in config.log where it belongs
|
||||
echo "$GMIME_PKG_ERRORS" >&5
|
||||
|
||||
|
||||
PBX_GMIME=0
|
||||
@@ -46827,8 +46830,8 @@ printf "%s\n" "no" >&6; }
|
||||
|
||||
|
||||
else
|
||||
GMIME_CFLAGS=$pkg_cv_GMIME_CFLAGS
|
||||
GMIME_LIBS=$pkg_cv_GMIME_LIBS
|
||||
GMIME_CFLAGS=$pkg_cv_GMIME_CFLAGS
|
||||
GMIME_LIBS=$pkg_cv_GMIME_LIBS
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
printf "%s\n" "yes" >&6; }
|
||||
|
||||
@@ -48273,12 +48276,12 @@ else
|
||||
_pkg_short_errors_supported=no
|
||||
fi
|
||||
if test $_pkg_short_errors_supported = yes; then
|
||||
GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0" 2>&1`
|
||||
GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0" 2>&1`
|
||||
else
|
||||
GTK2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0" 2>&1`
|
||||
GTK2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0" 2>&1`
|
||||
fi
|
||||
# Put the nasty error message in config.log where it belongs
|
||||
echo "$GTK2_PKG_ERRORS" >&5
|
||||
# Put the nasty error message in config.log where it belongs
|
||||
echo "$GTK2_PKG_ERRORS" >&5
|
||||
|
||||
|
||||
PBX_GTK2=0
|
||||
@@ -48292,8 +48295,8 @@ printf "%s\n" "no" >&6; }
|
||||
|
||||
|
||||
else
|
||||
GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS
|
||||
GTK2_LIBS=$pkg_cv_GTK2_LIBS
|
||||
GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS
|
||||
GTK2_LIBS=$pkg_cv_GTK2_LIBS
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
printf "%s\n" "yes" >&6; }
|
||||
|
||||
@@ -48384,12 +48387,12 @@ else
|
||||
_pkg_short_errors_supported=no
|
||||
fi
|
||||
if test $_pkg_short_errors_supported = yes; then
|
||||
SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
|
||||
SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
|
||||
else
|
||||
SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
|
||||
SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
|
||||
fi
|
||||
# Put the nasty error message in config.log where it belongs
|
||||
echo "$SYSTEMD_PKG_ERRORS" >&5
|
||||
# Put the nasty error message in config.log where it belongs
|
||||
echo "$SYSTEMD_PKG_ERRORS" >&5
|
||||
|
||||
|
||||
PBX_SYSTEMD=0
|
||||
@@ -48403,8 +48406,8 @@ printf "%s\n" "no" >&6; }
|
||||
|
||||
|
||||
else
|
||||
SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
|
||||
SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
|
||||
SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
|
||||
SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
printf "%s\n" "yes" >&6; }
|
||||
|
||||
|
||||
@@ -241,6 +241,7 @@ PJPROJECT_INCLUDE=@PJPROJECT_INCLUDE@
|
||||
PJPROJECT_LIB=@PJPROJECT_LIB@
|
||||
PJPROJECT_DIR=@PJPROJECT_DIR@
|
||||
PJPROJECT_CONFIGURE_OPTS=@PJPROJECT_CONFIGURE_OPTS@
|
||||
PJPROJECT_CFLAGS=@PJPROJECT_CFLAGS@
|
||||
|
||||
POPT_INCLUDE=@POPT_INCLUDE@
|
||||
POPT_LIB=@POPT_LIB@
|
||||
|
||||
@@ -791,6 +791,8 @@ static int load_module(void)
|
||||
pj_log_set_decor(0);
|
||||
pj_log_set_level(MAX_PJ_LOG_MAX_LEVEL);/* Set level to guarantee the dump output. */
|
||||
pj_dump_config();
|
||||
pjsip_dump_config();
|
||||
|
||||
pj_log_set_decor(PJ_LOG_HAS_SENDER | PJ_LOG_HAS_INDENT);
|
||||
pj_log_set_log_func(log_forwarder);
|
||||
if (ast_pjproject_max_log_level < ast_option_pjproject_log_level) {
|
||||
|
||||
@@ -355,9 +355,13 @@ static int do_cli_dump_endpt(void *v_a)
|
||||
{
|
||||
struct ast_cli_args *a = v_a;
|
||||
|
||||
if (ast_option_pjproject_log_level < 3) {
|
||||
pj_log_set_level(3);
|
||||
}
|
||||
ast_pjproject_log_intercept_begin(a->fd);
|
||||
pjsip_endpt_dump(ast_sip_get_pjsip_endpoint(), a->argc == 4 ? PJ_TRUE : PJ_FALSE);
|
||||
ast_pjproject_log_intercept_end();
|
||||
pj_log_set_level(ast_option_pjproject_log_level);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Vendored
+3
@@ -47,4 +47,7 @@ endif
|
||||
|
||||
ifeq ($(shell uname -s),Linux)
|
||||
PJPROJECT_CONFIG_OPTS += --enable-epoll
|
||||
PJPROJECT_CFLAGS += -DPJ_HAS_LINUX_EPOLL=1
|
||||
endif
|
||||
|
||||
PJPROJECT_CONFIG_OPTS += CFLAGS="$(PJPROJECT_CFLAGS)"
|
||||
|
||||
Vendored
+1
-1
@@ -113,7 +113,7 @@ AC_DEFUN([_PJPROJECT_CONFIGURE],
|
||||
EXTERNALS_CACHE_DIR="${EXTERNALS_CACHE_DIR:-${AST_DOWNLOAD_CACHE}}" \
|
||||
PJPROJECT_BUNDLED_OOT="${PJPROJECT_BUNDLED_OOT}" \
|
||||
echo_cflags)
|
||||
PJPROJECT_CFLAGS="$PJPROJECT_INCLUDE"
|
||||
|
||||
PBX_PJPROJECT=1
|
||||
|
||||
AC_DEFINE([HAVE_PJPROJECT], 1, [Define if your system has PJPROJECT])
|
||||
|
||||
+9
@@ -25,13 +25,22 @@
|
||||
#define NDEBUG 1
|
||||
#endif
|
||||
|
||||
#ifndef PJ_MAX_HOSTNAME
|
||||
#define PJ_MAX_HOSTNAME (256)
|
||||
#endif
|
||||
|
||||
#ifndef PJSIP_MAX_URL_SIZE
|
||||
#define PJSIP_MAX_URL_SIZE (512)
|
||||
#endif
|
||||
|
||||
#ifndef PJ_IOQUEUE_MAX_HANDLES
|
||||
#ifdef PJ_HAS_LINUX_EPOLL
|
||||
#define PJ_IOQUEUE_MAX_HANDLES (5000)
|
||||
#else
|
||||
#define PJ_IOQUEUE_MAX_HANDLES (FD_SETSIZE)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define PJ_IOQUEUE_HAS_SAFE_UNREG 1
|
||||
#define PJ_IOQUEUE_MAX_EVENTS_IN_SINGLE_POLL (16)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user