dect
/
asterisk
Archived
13
0
Fork 0

Okay, '*' and '#' are still okay in INFO messages

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1642 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
markster 2003-10-21 17:07:18 +00:00
parent 6528d5f1c7
commit ee1c0238d6
1 changed files with 6 additions and 1 deletions

View File

@ -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) {