aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-13 00:52:03 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-13 00:52:03 +0000
commitb0a0e8765d349b29066fae3e1793a250efbf86b0 (patch)
treedc69f3645f7456846d7a669d3a5527b6ce2a516c
parent1e736b5a51a7513044a957bf403d10cdec8834ca (diff)
Fix logic for how to proceed with a single digit extension.
(closes issue #15091) Reported by: andrew Patches: 20090512__issue15091.diff.txt uploaded by tilghman (license 14) Tested by: andrew git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@194137 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--main/pbx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c
index 5af6f519e..2129ef55c 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -5751,7 +5751,7 @@ static int pbx_builtin_background(struct ast_channel *chan, void *data)
* gone immediately to the "i" extension, but will now need to wait for a
* timeout.
*/
- if ((exten[0] = res) && (ast_exists_extension(chan, args.context, exten, 1, chan->cid.cid_num) || !ast_matchmore_extension(chan, args.context, exten, 1, chan->cid.cid_num))) {
+ if ((exten[0] = res) && !ast_matchmore_extension(chan, args.context, exten, 1, chan->cid.cid_num)) {
snprintf(chan->exten, sizeof(chan->exten), "%c", res);
ast_copy_string(chan->context, args.context, sizeof(chan->context));
chan->priority = 0;