]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix logic for how to proceed with a single digit extension.
authorTilghman Lesher <tilghman@meg.abyt.es>
Wed, 13 May 2009 00:52:03 +0000 (00:52 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Wed, 13 May 2009 00:52:03 +0000 (00:52 +0000)
(closes issue #15091)
 Reported by: andrew
 Patches:
       20090512__issue15091.diff.txt uploaded by tilghman (license 14)
 Tested by: andrew

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@194137 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/pbx.c

index 5af6f519eb57d2c794b7d473c0415e369370e419..2129ef55c3e5d34b8ec63de6b398acb0d0d45060 100644 (file)
@@ -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;