mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
Okay, '*' and '#' are still okay in INFO messages
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1642 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user