[Asterisk-cvs] asterisk/channels chan_zap.c,1.322,1.323

markster at lists.digium.com markster at lists.digium.com
Fri Aug 20 17:21:05 CDT 2004


Update of /usr/cvsroot/asterisk/channels
In directory localhost.localdomain:/tmp/cvs-serv32494/channels

Modified Files:
	chan_zap.c 
Log Message:
Don't split unless it's got echo training


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.322
retrieving revision 1.323
diff -u -d -r1.322 -r1.323
--- chan_zap.c	12 Aug 2004 22:09:18 -0000	1.322
+++ chan_zap.c	20 Aug 2004 21:07:10 -0000	1.323
@@ -1635,7 +1635,7 @@
 			snprintf(p->dop.dialstr, sizeof(p->dop.dialstr), "M*%s#", c + p->stripmsd);
 		} else 
 			snprintf(p->dop.dialstr, sizeof(p->dop.dialstr), "T%sw", c + p->stripmsd);
-		if (strlen(p->dop.dialstr) > 4) {
+		if (p->echotraining && (strlen(p->dop.dialstr) > 4)) {
 			memset(p->echorest, 'w', sizeof(p->echorest) - 1);
 			strcpy(p->echorest + (p->echotraining / 400) + 1, p->dop.dialstr + strlen(p->dop.dialstr) - 2);
 			p->echorest[sizeof(p->echorest) - 1] = '\0';




More information about the svn-commits mailing list