[asterisk-commits] mattf: trunk r106892 - /trunk/channels/chan_zap.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Mar 7 16:36:49 CST 2008


Author: mattf
Date: Fri Mar  7 16:36:49 2008
New Revision: 106892

URL: http://svn.digium.com/view/asterisk?view=rev&rev=106892
Log:
Make sure we don't start a call when we have already done so in response to a COT message

Modified:
    trunk/channels/chan_zap.c

Modified: trunk/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_zap.c?view=diff&rev=106892&r1=106891&r2=106892
==============================================================================
--- trunk/channels/chan_zap.c (original)
+++ trunk/channels/chan_zap.c Fri Mar  7 16:36:49 2008
@@ -9506,9 +9506,11 @@
 				}
 				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);




More information about the asterisk-commits mailing list