[Asterisk-cvs] asterisk/channels chan_sip.c,1.197,1.198
markster at lists.digium.com
markster at lists.digium.com
Tue Oct 21 11:41:17 CDT 2003
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv31149/channels
Modified Files:
chan_sip.c
Log Message:
Okay, '*' and '#' are still okay in INFO messages
Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.197
retrieving revision 1.198
diff -u -d -r1.197 -r1.198
--- chan_sip.c 21 Oct 2003 03:10:43 -0000 1.197
+++ chan_sip.c 21 Oct 2003 17:07:18 -0000 1.198
@@ -4251,7 +4251,12 @@
if (strlen(buf)) {
if (sipdebug)
ast_verbose("DTMF received: '%c'\n", buf[0]);
- event = atoi(buf);
+ if (buf[0] == '*')
+ event = 10;
+ else if (buf[0] == '#')
+ event = 11;
+ else
+ event = atoi(buf);
if (event < 10) {
resp = '0' + event;
} else if (event < 11) {
More information about the svn-commits
mailing list