diff options
author | Mark Spencer <markster@digium.com> | 2004-11-22 22:40:06 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-11-22 22:40:06 +0000 |
commit | d456e6ba548b29c2e83dfae6622bd9ab8b2228e2 (patch) | |
tree | 229750a1865338910220ec5394459701bc576b82 /pbx.c | |
parent | d7da31797996c13b030debcc6d3dd8879743e93d (diff) |
Little dial typo fix and make WaitExten continue if nothing entered and there is a step n+1
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4318 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx.c')
-rwxr-xr-x | pbx.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -4836,9 +4836,12 @@ static int pbx_builtin_waitexten(struct ast_channel *chan, void *data) ms = 10000; res = ast_waitfordigit(chan, ms); if (!res) { - if (ast_exists_extension(chan, chan->context, "t", 1, chan->cid.cid_num)) { + if (ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 1, chan->cid.cid_num)) { if (option_verbose > 2) - ast_verbose(VERBOSE_PREFIX_3 "Timeout on %s\n", chan->name); + ast_verbose(VERBOSE_PREFIX_3 "Timeout on %s, continuing...\n", chan->name); + } else if (ast_exists_extension(chan, chan->context, "t", 1, chan->cid.cid_num)) { + if (option_verbose > 2) + ast_verbose(VERBOSE_PREFIX_3 "Timeout on %s, going to 't'\n", chan->name); strncpy(chan->exten, "t", sizeof(chan->exten)); chan->priority = 0; } else { |