Okay, '*' and '#' are still okay in INFO messages
authorMark Spencer <markster@digium.com>
Tue, 21 Oct 2003 17:07:18 +0000 (17:07 +0000)
committerMark Spencer <markster@digium.com>
Tue, 21 Oct 2003 17:07:18 +0000 (17:07 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1642 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 2e8ab70..998ac82 100755 (executable)
@@ -4251,7 +4251,12 @@ static void receive_info(struct sip_pvt *p, struct sip_request *req)
                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) {