mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 06:48:25 +00:00
automerge commit
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@59935 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
11
app.c
11
app.c
@@ -84,14 +84,11 @@ int ast_app_dtget(struct ast_channel *chan, const char *context, char *collect,
|
||||
ast_playtones_stop(chan);
|
||||
if (res < 1)
|
||||
break;
|
||||
collect[x++] = res;
|
||||
if (!ast_matchmore_extension(chan, context, collect, 1, chan->cid.cid_num)) {
|
||||
if (collect[x-1] == '#') {
|
||||
/* Not a valid extension, ending in #, assume the # was to finish dialing */
|
||||
collect[x-1] = '\0';
|
||||
}
|
||||
if (res == '#')
|
||||
break;
|
||||
collect[x++] = res;
|
||||
if (!ast_matchmore_extension(chan, context, collect, 1, chan->cid.cid_num))
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (res >= 0) {
|
||||
if (ast_exists_extension(chan, context, collect, 1, chan->cid.cid_num))
|
||||
|
||||
Reference in New Issue
Block a user