[Asterisk-cvs] asterisk/channels chan_zap.c,1.527,1.528

kpfleming kpfleming
Wed Sep 28 23:28:49 CDT 2005


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

Modified Files:
	chan_zap.c 
Log Message:
support both regular and Feature Group D dialing syntax on EM_WINK trunks (issue #5323)


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.527
retrieving revision 1.528
diff -u -d -r1.527 -r1.528
--- chan_zap.c	28 Sep 2005 23:10:14 -0000	1.527
+++ chan_zap.c	29 Sep 2005 03:25:25 -0000	1.528
@@ -5280,6 +5280,18 @@
 				res = my_getsigstr(chan, dtmfbuf + 1, "#", 3000);
 				if ((res < 1) && (p->dsp)) ast_dsp_digitreset(p->dsp);
 				break;
+			case SIG_EMWINK:
+				/* if we received a '*', we are actually receiving Feature Group D
+				   dial syntax, so use that mode; otherwise, fall through to normal
+				   mode
+				*/
+				if (res == '*') {
+					res = my_getsigstr(chan, dtmfbuf + 1, "*", 3000);
+					if (res > 0)
+						res = my_getsigstr(chan, dtmfbuf + strlen(dtmfbuf), "*", 3000);
+					if ((res < 1) && (p->dsp)) ast_dsp_digitreset(p->dsp);
+					break;
+				}
 			default:
 				/* If we got the first digit, get the rest */
 				len = 1;




More information about the svn-commits mailing list