[asterisk-commits] mattf: trunk r166058 - in /trunk: ./ channels/ include/asterisk/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Dec 19 15:44:18 CST 2008
Author: mattf
Date: Fri Dec 19 15:44:18 2008
New Revision: 166058
URL: http://svn.digium.com/view/asterisk?view=rev&rev=166058
Log:
Add configuration support for half_full DAHDI buffer policy
Modified:
trunk/channels/chan_dahdi.c
trunk/configure
trunk/configure.ac
trunk/include/asterisk/autoconfig.h.in
Modified: trunk/channels/chan_dahdi.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_dahdi.c?view=diff&rev=166058&r1=166057&r2=166058
==============================================================================
--- trunk/channels/chan_dahdi.c (original)
+++ trunk/channels/chan_dahdi.c Fri Dec 19 15:44:18 2008
@@ -13890,6 +13890,10 @@
confp->chan.buf_policy = DAHDI_POLICY_WHEN_FULL;
} else if (!strcasecmp(policy, "immediate")) {
confp->chan.buf_policy = DAHDI_POLICY_IMMEDIATE;
+#ifdef HAVE_DAHDI_HALF_FULL
+ } else if (!strcasecmp(policy, "half_full")) {
+ confp->chan.buf_policy = DAHDI_POLICY_HALF_FULL;
+#endif
} else {
ast_log(LOG_WARNING, "Invalid policy name given (%s).\n", policy);
}
Modified: trunk/configure.ac
URL: http://svn.digium.com/view/asterisk/trunk/configure.ac?view=diff&rev=166058&r1=166057&r2=166058
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Fri Dec 19 15:44:18 2008
@@ -614,6 +614,8 @@
fi
AST_C_DEFINE_CHECK([DAHDI], [DAHDI_CODE], [dahdi/user.h])
+
+AST_C_DEFINE_CHECK([DAHDI_HALF_FULL], [DAHDI_POLICY_HALF_FULL], [dahdi/user.h])
# BSD might not have exp2, and/or log2
AST_EXT_LIB_CHECK([EXP2L], [m], [exp2l])
Modified: trunk/include/asterisk/autoconfig.h.in
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/autoconfig.h.in?view=diff&rev=166058&r1=166057&r2=166058
==============================================================================
--- trunk/include/asterisk/autoconfig.h.in (original)
+++ trunk/include/asterisk/autoconfig.h.in Fri Dec 19 15:44:18 2008
@@ -182,6 +182,12 @@
/* Define if your system has the DAHDI headers. */
#undef HAVE_DAHDI
+
+/* Define if your system has the DAHDI_HALF_FULL headers. */
+#undef HAVE_DAHDI_HALF_FULL
+
+/* Define DAHDI_HALF_FULL headers version */
+#undef HAVE_DAHDI_HALF_FULL_VERSION
/* Define DAHDI headers version */
#undef HAVE_DAHDI_VERSION
More information about the asterisk-commits
mailing list