[svn-commits] kpfleming: trunk r130040 - in /trunk: ./ channels/ configs/ include/asterisk/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Jul 11 10:57:18 CDT 2008


Author: kpfleming
Date: Fri Jul 11 10:57:17 2008
New Revision: 130040

URL: http://svn.digium.com/view/asterisk?view=rev&rev=130040
Log:
Merged revisions 130039 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r130039 | kpfleming | 2008-07-11 10:41:56 -0500 (Fri, 11 Jul 2008) | 4 lines

add support for a configuration parameter for 'inband audio during RELEASE', which is currently mandatory in libpri-1.4.4 but will become configurable in libpri-1.4.5 later today

(related to issue #13042)

........

Modified:
    trunk/   (props changed)
    trunk/channels/chan_dahdi.c
    trunk/configs/chan_dahdi.conf.sample
    trunk/configure
    trunk/configure.ac
    trunk/include/asterisk/autoconfig.h.in

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/channels/chan_dahdi.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_dahdi.c?view=diff&rev=130040&r1=130039&r2=130040
==============================================================================
--- trunk/channels/chan_dahdi.c (original)
+++ trunk/channels/chan_dahdi.c Fri Jul 11 10:57:17 2008
@@ -416,6 +416,9 @@
 	int span;
 	int resetting;
 	int resetpos;
+#ifdef HAVE_PRI_INBANDRELEASE
+	unsigned int inbandrelease:1;					/*!< Should we support inband audio after receiving RELEASE? */
+#endif
 	time_t lastreset;						/*!< time when unused channels were last reset */
 	long resetinterval;						/*!< Interval (in seconds) for resetting unused channels */
 	int sig;
@@ -8447,6 +8450,9 @@
 						pris[span].minunused = conf->pri.minunused;
 						pris[span].minidle = conf->pri.minidle;
 						pris[span].overlapdial = conf->pri.overlapdial;
+#ifdef HAVE_PRI_INBANDRELEASE
+						pris[span].inbandrelease = conf->pri.inbandrelease;
+#endif
 						pris[span].facilityenable = conf->pri.facilityenable;
 						ast_copy_string(pris[span].idledial, conf->pri.idledial, sizeof(pris[span].idledial));
 						ast_copy_string(pris[span].idleext, conf->pri.idleext, sizeof(pris[span].idleext));
@@ -11478,6 +11484,9 @@
 		if (pri->switchtype == PRI_SWITCH_GR303_TMC)
 			pri->overlapdial |= DAHDI_OVERLAPDIAL_BOTH;
 		pri_set_overlapdial(pri->dchans[i],(pri->overlapdial & DAHDI_OVERLAPDIAL_OUTGOING)?1:0);
+#ifdef HAVE_PRI_INBANDRELEASE
+		pri_set_inbandrelease(pri->dchans[i], pri->inbandrelease);
+#endif
 		/* Enslave to master if appropriate */
 		if (i)
 			pri_enslave(pri->dchans[0], pri->dchans[i]);
@@ -14286,6 +14295,10 @@
 				} else {
 					confp->pri.overlapdial = DAHDI_OVERLAPDIAL_NONE;
 				}
+#ifdef HAVE_PRI_INBANDRELEASE
+			} else if (!strcasecmp(v->name, "inbandrelease")) {
+				confp->pri.inbandrelease = ast_true(v->value);
+#endif
 			} else if (!strcasecmp(v->name, "pritimer")) {
 #ifdef PRI_GETSET_TIMERS
 				char tmp[20], *timerc, *c = tmp;

Modified: trunk/configs/chan_dahdi.conf.sample
URL: http://svn.digium.com/view/asterisk/trunk/configs/chan_dahdi.conf.sample?view=diff&rev=130040&r1=130039&r2=130040
==============================================================================
--- trunk/configs/chan_dahdi.conf.sample (original)
+++ trunk/configs/chan_dahdi.conf.sample Fri Jul 11 10:57:17 2008
@@ -161,6 +161,10 @@
 ; Cannot be changed on a reload.
 ;
 ;overlapdial=yes
+;
+; Allow inband audio (progress) when a call is RELEASEd by the far end of a PRI
+;
+;inbandrelease=yes
 ;
 ; PRI Out of band indications.
 ; Enable this to report Busy and Congestion on a PRI using out-of-band

Modified: trunk/configure.ac
URL: http://svn.digium.com/view/asterisk/trunk/configure.ac?view=diff&rev=130040&r1=130039&r2=130040
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Fri Jul 11 10:57:17 2008
@@ -1295,6 +1295,8 @@
 
 AST_EXT_LIB_CHECK([PRI], [pri], [pri_get_version], [libpri.h])
 
+AST_EXT_LIB_CHECK([PRI_INBANDRELEASE], [pri], [pri_set_inbandrelease], [libpri.h])
+
 AST_C_COMPILE_CHECK([SPANDSP], [
 		#if SPANDSP_RELEASE_DATE < 20080516
 		#error "spandsp 0.0.5 or greater is required"

Modified: trunk/include/asterisk/autoconfig.h.in
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/autoconfig.h.in?view=diff&rev=130040&r1=130039&r2=130040
==============================================================================
--- trunk/include/asterisk/autoconfig.h.in (original)
+++ trunk/include/asterisk/autoconfig.h.in Fri Jul 11 10:57:17 2008
@@ -601,6 +601,12 @@
 
 /* Define this to indicate the ${PRI_DESCRIP} library */
 #undef HAVE_PRI
+
+/* Define this to indicate the ${PRI_INBANDRELEASE_DESCRIP} library */
+#undef HAVE_PRI_INBANDRELEASE
+
+/* Define to indicate the ${PRI_INBANDRELEASE_DESCRIP} library version */
+#undef HAVE_PRI_INBANDRELEASE_VERSION
 
 /* Define to indicate the ${PRI_DESCRIP} library version */
 #undef HAVE_PRI_VERSION




More information about the svn-commits mailing list