]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Don't wait for additional digits when overlap dialing is enabled if the setup message...
authorJoshua Colp <jcolp@digium.com>
Wed, 20 Feb 2008 22:06:59 +0000 (22:06 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 20 Feb 2008 22:06:59 +0000 (22:06 +0000)
(closes issue #11785)
Reported by: klaus3000
Patches:
      sending_complete_overlap_asterisk-1.4.17.patch.txt uploaded by klaus3000 (license 65)

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

channels/chan_zap.c

index 9cce246aa478e31eb5f6e60929c5862d2f6b849c..aaf89cd9ab209531c39784a71e6b2d55cadea803 100644 (file)
@@ -8810,7 +8810,7 @@ static void *pri_dchannel(void *vpri)
                                                pri->pvts[chanpos]->callingpres = e->ring.callingpres;
                                        
                                                /* Start PBX */
-                                               if (pri->overlapdial && ast_matchmore_extension(NULL, pri->pvts[chanpos]->context, pri->pvts[chanpos]->exten, 1, pri->pvts[chanpos]->cid_num)) {
+                                               if (!e->ring.complete && pri->overlapdial && ast_matchmore_extension(NULL, pri->pvts[chanpos]->context, pri->pvts[chanpos]->exten, 1, pri->pvts[chanpos]->cid_num)) {
                                                        /* Release the PRI lock while we create the channel */
                                                        ast_mutex_unlock(&pri->lock);
                                                        if (crv) {