[svn-commits] may: branch may/ooh323_ipv6_direct_rtp r321266 - in /team/may/ooh323_ipv6_dir...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri May 27 07:14:15 CDT 2011


Author: may
Date: Fri May 27 07:14:03 2011
New Revision: 321266

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=321266
Log:
Merged revisions 313191 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

................
  r313191 | rmudgett | 2011-04-11 19:47:17 +0400 (Mon, 11 Apr 2011) | 46 lines
  
  Merged revisions 313190 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.8
  
  ................
    r313190 | rmudgett | 2011-04-11 10:40:30 -0500 (Mon, 11 Apr 2011) | 39 lines
    
    Merged revisions 313189 via svnmerge from 
    https://origsvn.digium.com/svn/asterisk/branches/1.6.2
    
    ................
      r313189 | rmudgett | 2011-04-11 10:32:53 -0500 (Mon, 11 Apr 2011) | 32 lines
      
      Merged revisions 313188 via svnmerge from 
      https://origsvn.digium.com/svn/asterisk/branches/1.4
      
      ........
        r313188 | rmudgett | 2011-04-11 10:27:52 -0500 (Mon, 11 Apr 2011) | 25 lines
        
        Stuck channel using FEATD_MF if caller hangs up at the right time.
        
        The cause was actually a caller hanging up just at the end of the Feature
        Group D DTMF tones that setup the call.  The reason for this is a "guard
        timer" that's implemented using ast_safe_sleep(100).  If the caller
        happens to hang up AFTER the final tone of the DTMF string but BEFORE the
        end of that ast_safe_sleep(), then ast_safe_sleep() will return non-zero.
        This causes the code to bounce to the end of ss_thread(), but it does NOT
        tear down the call properly.
        
        This should be a rare occurrence because the caller has to hang up at
        EXACTLY the right time.  Nonetheless, it was happening quite regularly on
        the reporter's system.  It's not easily reproducible, unless you purposely
        increase the guard-time to 2000 or more.  Once you do that, you can
        reproduce it every time by watching the DTMF debug and hanging up just as
        it ends.
        
        Simply add an ast_hangup() before goto quit.
        
        (closes issue #15671)
        Reported by: jcromes
        Patches:
              issue15671.patch uploaded by pabelanger (license 224)
        Tested by: jcromes
      ........
    ................
  ................
................

Modified:
    team/may/ooh323_ipv6_direct_rtp/   (props changed)
    team/may/ooh323_ipv6_direct_rtp/channels/chan_dahdi.c
    team/may/ooh323_ipv6_direct_rtp/channels/sig_analog.c
    team/may/ooh323_ipv6_direct_rtp/configure.ac
    team/may/ooh323_ipv6_direct_rtp/include/asterisk/autoconfig.h.in
    team/may/ooh323_ipv6_direct_rtp/main/cli.c

Propchange: team/may/ooh323_ipv6_direct_rtp/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.

Propchange: team/may/ooh323_ipv6_direct_rtp/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Fri May 27 07:14:03 2011
@@ -1,2 +1,1 @@
-/team/may/ooh323_ipv6:307716-307877,308283,311705
-/trunk:307751-307752,308099-308157,308243
+/trunk:1-313143

Propchange: team/may/ooh323_ipv6_direct_rtp/
------------------------------------------------------------------------------
    svnmerge-blocked = /trunk:313280

Propchange: team/may/ooh323_ipv6_direct_rtp/
            ('svnmerge-custom' removed)

Propchange: team/may/ooh323_ipv6_direct_rtp/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Fri May 27 07:14:03 2011
@@ -1,1 +1,1 @@
-/trunk:1-313143
+/trunk:1-313143,313191

Modified: team/may/ooh323_ipv6_direct_rtp/channels/chan_dahdi.c
URL: http://svnview.digium.com/svn/asterisk/team/may/ooh323_ipv6_direct_rtp/channels/chan_dahdi.c?view=diff&rev=321266&r1=321265&r2=321266
==============================================================================
--- team/may/ooh323_ipv6_direct_rtp/channels/chan_dahdi.c (original)
+++ team/may/ooh323_ipv6_direct_rtp/channels/chan_dahdi.c Fri May 27 07:14:03 2011
@@ -9986,7 +9986,10 @@
 			/* some switches require a minimum guard time between
 			   the last FGD wink and something that answers
 			   immediately. This ensures it */
-			if (ast_safe_sleep(chan,100)) goto quit;
+			if (ast_safe_sleep(chan, 100)) {
+				ast_hangup(chan);
+				goto quit;
+			}
 		}
 		dahdi_enable_ec(p);
 		if (NEED_MFDETECT(p)) {

Modified: team/may/ooh323_ipv6_direct_rtp/channels/sig_analog.c
URL: http://svnview.digium.com/svn/asterisk/team/may/ooh323_ipv6_direct_rtp/channels/sig_analog.c?view=diff&rev=321266&r1=321265&r2=321266
==============================================================================
--- team/may/ooh323_ipv6_direct_rtp/channels/sig_analog.c (original)
+++ team/may/ooh323_ipv6_direct_rtp/channels/sig_analog.c Fri May 27 07:14:03 2011
@@ -2010,10 +2010,13 @@
 		}
 		if ((p->sig == ANALOG_SIG_FEATDMF) || (p->sig == ANALOG_SIG_FEATDMF_TA)) {
 			analog_wink(p, idx);
-			/* some switches require a minimum guard time between
-			the last FGD wink and something that answers
-			immediately. This ensures it */
-			if (ast_safe_sleep(chan,100)) {
+			/*
+			 * Some switches require a minimum guard time between the last
+			 * FGD wink and something that answers immediately.  This
+			 * ensures it.
+			 */
+			if (ast_safe_sleep(chan, 100)) {
+				ast_hangup(chan);
 				goto quit;
 			}
 		}

Modified: team/may/ooh323_ipv6_direct_rtp/configure.ac
URL: http://svnview.digium.com/svn/asterisk/team/may/ooh323_ipv6_direct_rtp/configure.ac?view=diff&rev=321266&r1=321265&r2=321266
==============================================================================
--- team/may/ooh323_ipv6_direct_rtp/configure.ac (original)
+++ team/may/ooh323_ipv6_direct_rtp/configure.ac Fri May 27 07:14:03 2011
@@ -1968,7 +1968,7 @@
 
 if test "$PBX_CRYPTO" = "1";
 then
-    AST_EXT_LIB_CHECK([OPENSSL], [ssl], [ssl2_connect], [openssl/ssl.h], [-lcrypto])
+	AST_EXT_LIB_CHECK([OPENSSL], [ssl], [SSL_connect], [openssl/ssl.h], [-lcrypto])
 fi
 
 if test "$PBX_OPENSSL" = "1";

Modified: team/may/ooh323_ipv6_direct_rtp/include/asterisk/autoconfig.h.in
URL: http://svnview.digium.com/svn/asterisk/team/may/ooh323_ipv6_direct_rtp/include/asterisk/autoconfig.h.in?view=diff&rev=321266&r1=321265&r2=321266
==============================================================================
--- team/may/ooh323_ipv6_direct_rtp/include/asterisk/autoconfig.h.in (original)
+++ team/may/ooh323_ipv6_direct_rtp/include/asterisk/autoconfig.h.in Fri May 27 07:14:03 2011
@@ -823,16 +823,16 @@
 /* Define to 1 if you have the `strtoq' function. */
 #undef HAVE_STRTOQ
 
-/* Define to 1 if `ifr_ifru.ifru_hwaddr' is a member of `struct ifreq'. */
+/* Define to 1 if `ifr_ifru.ifru_hwaddr' is member of `struct ifreq'. */
 #undef HAVE_STRUCT_IFREQ_IFR_IFRU_IFRU_HWADDR
 
-/* Define to 1 if `st_blksize' is a member of `struct stat'. */
+/* Define to 1 if `st_blksize' is member of `struct stat'. */
 #undef HAVE_STRUCT_STAT_ST_BLKSIZE
 
-/* Define to 1 if `cr_uid' is a member of `struct ucred'. */
+/* Define to 1 if `cr_uid' is member of `struct ucred'. */
 #undef HAVE_STRUCT_UCRED_CR_UID
 
-/* Define to 1 if `uid' is a member of `struct ucred'. */
+/* Define to 1 if `uid' is member of `struct ucred'. */
 #undef HAVE_STRUCT_UCRED_UID
 
 /* Define to 1 if you have the mISDN Supplemental Services library. */
@@ -1110,11 +1110,11 @@
 /* Define to the one symbol short name of this package. */
 #undef PACKAGE_TARNAME
 
-/* Define to the home page for this package. */
-#undef PACKAGE_URL
-
 /* Define to the version of this package. */
 #undef PACKAGE_VERSION
+
+/* Define to 1 if the C compiler supports function prototypes. */
+#undef PROTOTYPES
 
 /* Define to necessary symbol if this constant uses a non-standard name on
    your system. */
@@ -1134,6 +1134,11 @@
 
 /* Define to the type of arg 5 for `select'. */
 #undef SELECT_TYPE_ARG5
+
+/* Define to 1 if the `setvbuf' function takes the buffering type as its
+   second argument and the buffer pointer as the third, as on System V before
+   release 3. */
+#undef SETVBUF_REVERSED
 
 /* The size of `char *', as computed by sizeof. */
 #undef SIZEOF_CHAR_P
@@ -1170,49 +1175,53 @@
 /* Define to a type of the same size as fd_set.fds_bits[[0]] */
 #undef TYPEOF_FD_SET_FDS_BITS
 
-/* Enable extensions on AIX 3, Interix.  */
+/* Define to 1 if on AIX 3.
+   System headers sometimes define this.
+   We just want to avoid a redefinition error message.  */
 #ifndef _ALL_SOURCE
 # undef _ALL_SOURCE
 #endif
+
+/* Define to 1 if running on Darwin. */
+#undef _DARWIN_UNLIMITED_SELECT
+
+/* Number of bits in a file offset, on hosts where this is settable. */
+#undef _FILE_OFFSET_BITS
+
 /* Enable GNU extensions on systems that have them.  */
 #ifndef _GNU_SOURCE
 # undef _GNU_SOURCE
 #endif
-/* Enable threading extensions on Solaris.  */
+
+/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
+#undef _LARGEFILE_SOURCE
+
+/* Define for large files, on AIX-style hosts. */
+#undef _LARGE_FILES
+
+/* Define to 1 if on MINIX. */
+#undef _MINIX
+
+/* Define to 2 if the system does not provide POSIX.1 features except with
+   this defined. */
+#undef _POSIX_1_SOURCE
+
+/* Define to 1 if you need to in order for `stat' and other things to work. */
+#undef _POSIX_SOURCE
+
+/* Enable extensions on Solaris.  */
+#ifndef __EXTENSIONS__
+# undef __EXTENSIONS__
+#endif
 #ifndef _POSIX_PTHREAD_SEMANTICS
 # undef _POSIX_PTHREAD_SEMANTICS
 #endif
-/* Enable extensions on HP NonStop.  */
 #ifndef _TANDEM_SOURCE
 # undef _TANDEM_SOURCE
 #endif
-/* Enable general extensions on Solaris.  */
-#ifndef __EXTENSIONS__
-# undef __EXTENSIONS__
-#endif
-
-
-/* Define to 1 if running on Darwin. */
-#undef _DARWIN_UNLIMITED_SELECT
-
-/* Number of bits in a file offset, on hosts where this is settable. */
-#undef _FILE_OFFSET_BITS
-
-/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
-#undef _LARGEFILE_SOURCE
-
-/* Define for large files, on AIX-style hosts. */
-#undef _LARGE_FILES
-
-/* Define to 1 if on MINIX. */
-#undef _MINIX
-
-/* Define to 2 if the system does not provide POSIX.1 features except with
-   this defined. */
-#undef _POSIX_1_SOURCE
-
-/* Define to 1 if you need to in order for `stat' and other things to work. */
-#undef _POSIX_SOURCE
+
+/* Define like PROTOTYPES; this can be used by system headers. */
+#undef __PROTOTYPES
 
 /* Define to empty if `const' does not conform to ANSI C. */
 #undef const

Modified: team/may/ooh323_ipv6_direct_rtp/main/cli.c
URL: http://svnview.digium.com/svn/asterisk/team/may/ooh323_ipv6_direct_rtp/main/cli.c?view=diff&rev=321266&r1=321265&r2=321266
==============================================================================
--- team/may/ooh323_ipv6_direct_rtp/main/cli.c (original)
+++ team/may/ooh323_ipv6_direct_rtp/main/cli.c Fri May 27 07:14:03 2011
@@ -1438,6 +1438,8 @@
 		"       LinkedID: %s\n"
 		"      Caller ID: %s\n"
 		" Caller ID Name: %s\n"
+		"Connected Line ID: %s\n"
+		"Connected Line ID Name: %s\n"
 		"    DNID Digits: %s\n"
 		"       Language: %s\n"
 		"          State: %s (%d)\n"
@@ -1466,6 +1468,8 @@
 		c->name, c->tech->type, c->uniqueid, c->linkedid,
 		S_COR(c->caller.id.number.valid, c->caller.id.number.str, "(N/A)"),
 		S_COR(c->caller.id.name.valid, c->caller.id.name.str, "(N/A)"),
+		S_COR(c->connected.id.number.valid, c->connected.id.number.str, "(N/A)"),
+		S_COR(c->connected.id.name.valid, c->connected.id.name.str, "(N/A)"),
 		S_OR(c->dialed.number.str, "(N/A)"),
 		c->language,	
 		ast_state2str(c->_state), c->_state, c->rings, 




More information about the svn-commits mailing list