[Asterisk-cvs] asterisk/channels chan_zap.c,1.344.2.21,1.344.2.22

mattf mattf
Mon Aug 22 12:45:15 CDT 2005


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv7841/channels

Modified Files:
      Tag: v1-0
	chan_zap.c 
Log Message:
Commit backport of fix to DTMF detection during overlap mode


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.344.2.21
retrieving revision 1.344.2.22
diff -u -d -r1.344.2.21 -r1.344.2.22
--- chan_zap.c	22 Jun 2005 14:01:26 -0000	1.344.2.21
+++ chan_zap.c	22 Aug 2005 16:47:22 -0000	1.344.2.22
@@ -3092,7 +3092,13 @@
 			p->pulsedial = 1;
 		else
 			p->pulsedial = 0;
-		ast_log(LOG_DEBUG, "Pulse dial '%c'\n", res & 0xff);
+		ast_log(LOG_DEBUG, "Detected %sdigit '%c'\n", p->pulsedial ? "pulse " : "", res & 0xff);
+#ifdef ZAPATA_PRI
+		if ((p->proceeding < 2) && p->sig==SIG_PRI && p->pri && p->pri->overlapdial) {
+			p->subs[index].f.frametype = AST_FRAME_NULL;
+			p->subs[index].f.subclass = 0;
+		}
+#endif
 		p->subs[index].f.frametype = AST_FRAME_DTMF;
 		p->subs[index].f.subclass = res & 0xff;
 		/* Unmute conference, return the captured digit */




More information about the svn-commits mailing list