aboutsummaryrefslogtreecommitdiffstats
path: root/pbx.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-11-22 22:40:06 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-11-22 22:40:06 +0000
commita9aa387ccb3d85cb97b626ca1d42d5ad0bff9af3 (patch)
tree229750a1865338910220ec5394459701bc576b82 /pbx.c
parent0858b615953e6a492a1f5fafe4b97b93a48aeed2 (diff)
Little dial typo fix and make WaitExten continue if nothing entered and there is a step n+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4318 f38db490-d61c-443f-a65b-d21fe96a405b
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 {