Merged revisions 132641 via svnmerge from
authorKevin P. Fleming <kpfleming@digium.com>
Tue, 22 Jul 2008 19:59:10 +0000 (19:59 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Tue, 22 Jul 2008 19:59:10 +0000 (19:59 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r132641 | kpfleming | 2008-07-22 14:49:11 -0500 (Tue, 22 Jul 2008) | 2 lines

use renamed libpri API call for controlling this feature (was improperly named before)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@132643 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_dahdi.c
configs/chan_dahdi.conf.sample
configure
configure.ac
include/asterisk/autoconfig.h.in

index 63bf1ee..dd7d9b4 100644 (file)
@@ -416,8 +416,8 @@ struct dahdi_pri {
        int span;
        int resetting;
        int resetpos;
-#ifdef HAVE_PRI_INBANDRELEASE
-       unsigned int inbandrelease:1;                                   /*!< Should we support inband audio after receiving RELEASE? */
+#ifdef HAVE_PRI_INBANDDISCONNECT
+       unsigned int inbanddisconnect:1;                                /*!< Should we support inband audio after receiving DISCONNECT? */
 #endif
        time_t lastreset;                                               /*!< time when unused channels were last reset */
        long resetinterval;                                             /*!< Interval (in seconds) for resetting unused channels */
@@ -8464,8 +8464,8 @@ static struct dahdi_pvt *mkintf(int channel, const struct dahdi_chan_conf *conf,
                                                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;
+#ifdef HAVE_PRI_INBANDDISCONNECT
+                                               pris[span].inbanddisconnect = conf->pri.inbandrelease;
 #endif
                                                pris[span].facilityenable = conf->pri.facilityenable;
                                                ast_copy_string(pris[span].idledial, conf->pri.idledial, sizeof(pris[span].idledial));
@@ -11498,8 +11498,8 @@ static int start_pri(struct dahdi_pri *pri)
                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);
+#ifdef HAVE_PRI_INBANDDISCONNECT
+               pri_set_inbanddisconnect(pri->dchans[i], pri->inbandrelease);
 #endif
                /* Enslave to master if appropriate */
                if (i)
@@ -14342,9 +14342,9 @@ static int process_dahdi(struct dahdi_chan_conf *confp, const char *cat, struct
                                } else {
                                        confp->pri.overlapdial = DAHDI_OVERLAPDIAL_NONE;
                                }
-#ifdef HAVE_PRI_INBANDRELEASE
-                       } else if (!strcasecmp(v->name, "inbandrelease")) {
-                               confp->pri.inbandrelease = ast_true(v->value);
+#ifdef HAVE_PRI_INBANDDISCONNECT
+                       } else if (!strcasecmp(v->name, "inbanddisconnect")) {
+                               confp->pri.inbanddisconnect = ast_true(v->value);
 #endif
                        } else if (!strcasecmp(v->name, "pritimer")) {
 #ifdef PRI_GETSET_TIMERS
index 0686561..7b4e72f 100644 (file)
 ;
 ; Allow inband audio (progress) when a call is RELEASEd by the far end of a PRI
 ;
-;inbandrelease=yes
+;inbanddisconnect=yes
 ;
 ; PRI Out of band indications.
 ; Enable this to report Busy and Congestion on a PRI using out-of-band
index f2c0b00..2e86d24 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.ac Revision: 130040 .
+# From configure.ac Revision: 132390 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.61 for asterisk 1.6.
 #
 
 
 
-if test "x${PBX_PRI_INBANDRELEASE}" != "x1" -a "${USE_PRI_INBANDRELEASE}" != "no"; then
+if test "x${PBX_PRI_INBANDDISCONNECT}" != "x1" -a "${USE_PRI_INBANDDISCONNECT}" != "no"; then
    pbxlibdir=""
-   # if --with-PRI_INBANDRELEASE=DIR has been specified, use it.
-   if test "x${PRI_INBANDRELEASE_DIR}" != "x"; then
-      if test -d ${PRI_INBANDRELEASE_DIR}/lib; then
-        pbxlibdir="-L${PRI_INBANDRELEASE_DIR}/lib"
+   # if --with-PRI_INBANDDISCONNECT=DIR has been specified, use it.
+   if test "x${PRI_INBANDDISCONNECT_DIR}" != "x"; then
+      if test -d ${PRI_INBANDDISCONNECT_DIR}/lib; then
+        pbxlibdir="-L${PRI_INBANDDISCONNECT_DIR}/lib"
       else
-        pbxlibdir="-L${PRI_INBANDRELEASE_DIR}"
+        pbxlibdir="-L${PRI_INBANDDISCONNECT_DIR}"
       fi
    fi
-   pbxfuncname="pri_set_inbandrelease"
+   pbxfuncname="pri_set_inbanddisconnect"
    if test "x${pbxfuncname}" = "x" ; then   # empty lib, assume only headers
-      AST_PRI_INBANDRELEASE_FOUND=yes
+      AST_PRI_INBANDDISCONNECT_FOUND=yes
    else
       as_ac_Lib=`echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
 { echo "$as_me:$LINENO: checking for ${pbxfuncname} in -lpri" >&5
@@ -39142,26 +39142,26 @@ ac_res=`eval echo '${'$as_ac_Lib'}'`
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 echo "${ECHO_T}$ac_res" >&6; }
 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
-  AST_PRI_INBANDRELEASE_FOUND=yes
+  AST_PRI_INBANDDISCONNECT_FOUND=yes
 else
-  AST_PRI_INBANDRELEASE_FOUND=no
+  AST_PRI_INBANDDISCONNECT_FOUND=no
 fi
 
    fi
 
    # now check for the header.
-   if test "${AST_PRI_INBANDRELEASE_FOUND}" = "yes"; then
-      PRI_INBANDRELEASE_LIB="${pbxlibdir} -lpri "
-      # if --with-PRI_INBANDRELEASE=DIR has been specified, use it.
-      if test "x${PRI_INBANDRELEASE_DIR}" != "x"; then
-        PRI_INBANDRELEASE_INCLUDE="-I${PRI_INBANDRELEASE_DIR}/include"
+   if test "${AST_PRI_INBANDDISCONNECT_FOUND}" = "yes"; then
+      PRI_INBANDDISCONNECT_LIB="${pbxlibdir} -lpri "
+      # if --with-PRI_INBANDDISCONNECT=DIR has been specified, use it.
+      if test "x${PRI_INBANDDISCONNECT_DIR}" != "x"; then
+        PRI_INBANDDISCONNECT_INCLUDE="-I${PRI_INBANDDISCONNECT_DIR}/include"
       fi
-      PRI_INBANDRELEASE_INCLUDE="${PRI_INBANDRELEASE_INCLUDE} "
+      PRI_INBANDDISCONNECT_INCLUDE="${PRI_INBANDDISCONNECT_INCLUDE} "
       if test "xlibpri.h" = "x" ; then # no header, assume found
-         PRI_INBANDRELEASE_HEADER_FOUND="1"
+         PRI_INBANDDISCONNECT_HEADER_FOUND="1"
       else                             # check for the header
          saved_cppflags="${CPPFLAGS}"
-         CPPFLAGS="${CPPFLAGS} ${PRI_INBANDRELEASE_INCLUDE}"
+         CPPFLAGS="${CPPFLAGS} ${PRI_INBANDDISCONNECT_INCLUDE}"
         if test "${ac_cv_header_libpri_h+set}" = set; then
   { echo "$as_me:$LINENO: checking for libpri.h" >&5
 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
@@ -39293,31 +39293,31 @@ echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
 
 fi
 if test $ac_cv_header_libpri_h = yes; then
-  PRI_INBANDRELEASE_HEADER_FOUND=1
+  PRI_INBANDDISCONNECT_HEADER_FOUND=1
 else
-  PRI_INBANDRELEASE_HEADER_FOUND=0
+  PRI_INBANDDISCONNECT_HEADER_FOUND=0
 fi
 
 
          CPPFLAGS="${saved_cppflags}"
       fi
-      if test "x${PRI_INBANDRELEASE_HEADER_FOUND}" = "x0" ; then
-         PRI_INBANDRELEASE_LIB=""
-         PRI_INBANDRELEASE_INCLUDE=""
+      if test "x${PRI_INBANDDISCONNECT_HEADER_FOUND}" = "x0" ; then
+         PRI_INBANDDISCONNECT_LIB=""
+         PRI_INBANDDISCONNECT_INCLUDE=""
       else
          if test "x${pbxfuncname}" = "x" ; then                # only checking headers -> no library
-           PRI_INBANDRELEASE_LIB=""
+           PRI_INBANDDISCONNECT_LIB=""
         fi
-         PBX_PRI_INBANDRELEASE=1
+         PBX_PRI_INBANDDISCONNECT=1
          # XXX don't know how to evaluate the description (third argument) in AC_DEFINE_UNQUOTED
 
 cat >>confdefs.h <<_ACEOF
-#define HAVE_PRI_INBANDRELEASE 1
+#define HAVE_PRI_INBANDDISCONNECT 1
 _ACEOF
 
 
 cat >>confdefs.h <<_ACEOF
-#define HAVE_PRI_INBANDRELEASE_VERSION
+#define HAVE_PRI_INBANDDISCONNECT_VERSION
 _ACEOF
 
       fi
index 089aabe..6e9fc7b 100644 (file)
@@ -1296,7 +1296,7 @@ AST_EXT_LIB_CHECK([PORTAUDIO], [portaudio], [Pa_GetDeviceCount], [portaudio.h])
 
 AST_EXT_LIB_CHECK([PRI], [pri], [pri_get_version], [libpri.h])
 
-AST_EXT_LIB_CHECK([PRI_INBANDRELEASE], [pri], [pri_set_inbandrelease], [libpri.h])
+AST_EXT_LIB_CHECK([PRI_INBANDDISCONNECT], [pri], [pri_set_inbanddisconnect], [libpri.h])
 
 AST_EXT_LIB_CHECK([RESAMPLE], [resample], [resample_open], [libresample.h], [-lm])
 
index d3245ce..8f3ff14 100644 (file)
 /* 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 this to indicate the ${PRI_INBANDDISCONNECT_DESCRIP} library */
+#undef HAVE_PRI_INBANDDISCONNECT
 
-/* Define to indicate the ${PRI_INBANDRELEASE_DESCRIP} library version */
-#undef HAVE_PRI_INBANDRELEASE_VERSION
+/* Define to indicate the ${PRI_INBANDDISCONNECT_DESCRIP} library version */
+#undef HAVE_PRI_INBANDDISCONNECT_VERSION
 
 /* Define to indicate the ${PRI_DESCRIP} library version */
 #undef HAVE_PRI_VERSION