mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-01 19:43:03 +00:00
Merged revisions 159853 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r159853 | tilghman | 2008-11-29 12:33:18 -0600 (Sat, 29 Nov 2008) | 2 lines Allow the '#' sign to exist within an extension (inspired by issue #13330) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@159854 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -169,12 +169,13 @@ static int readexten_exec(struct ast_channel *chan, void *data)
|
||||
else
|
||||
status = "TIMEOUT";
|
||||
break;
|
||||
} else if (res == '#') {
|
||||
break;
|
||||
}
|
||||
|
||||
exten[x] = res;
|
||||
if (!ast_matchmore_extension(chan, arglist.context, exten, 1 /* priority */, chan->cid.cid_num)) {
|
||||
if (!ast_exists_extension(chan, arglist.context, exten, 1, chan->cid.cid_num) && res == '#') {
|
||||
exten[x] = '\0';
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user