summaryrefslogtreecommitdiff
path: root/pbx.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-11-22 22:40:06 +0000
committerMark Spencer <markster@digium.com>2004-11-22 22:40:06 +0000
commitd456e6ba548b29c2e83dfae6622bd9ab8b2228e2 (patch)
tree229750a1865338910220ec5394459701bc576b82 /pbx.c
parentd7da31797996c13b030debcc6d3dd8879743e93d (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-xpbx.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/pbx.c b/pbx.c
index 14fcf26cb..bc954d72b 100755
--- a/pbx.c
+++ b/pbx.c
@@ -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 {