[asterisk-commits] seanbright: branch 1.6.1 r147052 - in	/branches/1.6.1: ./ apps/app_dial.c
    SVN commits to the Asterisk project 
    asterisk-commits at lists.digium.com
       
    Tue Oct  7 07:04:22 CDT 2008
    
    
  
Author: seanbright
Date: Tue Oct  7 07:03:57 2008
New Revision: 147052
URL: http://svn.digium.com/view/asterisk?view=rev&rev=147052
Log:
Merged revisions 147050 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk
........
r147050 | seanbright | 2008-10-07 08:01:36 -0400 (Tue, 07 Oct 2008) | 8 lines
Make sure to compare the correct number of characters when special-casing
our DAHDI operator mode stuff.  Technically, it would work fine, as 'DAH'
is currently unique amongst our channel technologies, but as Jared points
out:
  <@jsmith> Sure... as long as the technology starts whith DAH.... but
            it could be DAHDOO!
........
Modified:
    branches/1.6.1/   (props changed)
    branches/1.6.1/apps/app_dial.c
Propchange: branches/1.6.1/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.
Modified: branches/1.6.1/apps/app_dial.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.1/apps/app_dial.c?view=diff&rev=147052&r1=147051&r2=147052
==============================================================================
--- branches/1.6.1/apps/app_dial.c (original)
+++ branches/1.6.1/apps/app_dial.c Tue Oct  7 07:03:57 2008
@@ -1926,7 +1926,7 @@
 				res = -1;
 				goto done;
 			}
-			if (opermode && !strncmp(chan->tech->type, "DAHDI", 3) && !strncmp(peer->name, "DAHDI", 3)) {
+			if (opermode && !strncmp(chan->tech->type, "DAHDI", 5) && !strncmp(peer->name, "DAHDI", 5)) {
 				/* what's this special handling for dahdi <-> dahdi ?
 				 * A: dahdi to dahdi calls are natively bridged at the kernel driver
 				 * level, so we need to ensure that this mode gets propagated
    
    
More information about the asterisk-commits
mailing list