Make sure we don't start a call when we have already done so in response to a COT...
authorMatthew Fredrickson <creslin@digium.com>
Fri, 7 Mar 2008 22:36:49 +0000 (22:36 +0000)
committerMatthew Fredrickson <creslin@digium.com>
Fri, 7 Mar 2008 22:36:49 +0000 (22:36 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@106892 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index ea19e9f..5614b1f 100644 (file)
@@ -9506,9 +9506,11 @@ static void *ss7_linkset(void *data)
                                }
                                p = linkset->pvts[chanpos];
 
-                               zt_loopback(p, 0);
-                               
-                               ss7_start_call(p, linkset);
+                               if (p->loopedback) {
+                                       zt_loopback(p, 0);
+                                       ss7_start_call(p, linkset);
+                               }
+
                                break;
                        case ISUP_EVENT_CCR:
                                ast_debug(1, "Got CCR request on CIC %d\n", e->ccr.cic);