[Asterisk-cvs] asterisk/channels chan_zap.c,1.488,1.489

kpfleming kpfleming
Wed Aug 17 13:49:36 CDT 2005


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

Modified Files:
	chan_zap.c 
Log Message:
protect PRI-specific code with ifdefs


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.488
retrieving revision 1.489
diff -u -d -r1.488 -r1.489
--- chan_zap.c	16 Aug 2005 16:12:22 -0000	1.488
+++ chan_zap.c	17 Aug 2005 17:52:14 -0000	1.489
@@ -3351,13 +3351,17 @@
 		else
 			p->pulsedial = 0;
 		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;
 		} else {
+#endif
 			p->subs[index].f.frametype = AST_FRAME_DTMF;
 			p->subs[index].f.subclass = res & 0xff;
+#ifdef ZAPATA_PRI
 		}
+#endif
 		/* Unmute conference, return the captured digit */
 		zt_confmute(p, 0);
 		return &p->subs[index].f;




More information about the svn-commits mailing list