[asterisk-commits] mattf: branch 1.6.0 r106997 - /branches/1.6.0/channels/chan_zap.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Mar 8 11:54:59 CST 2008


Author: mattf
Date: Sat Mar  8 11:54:59 2008
New Revision: 106997

URL: http://svn.digium.com/view/asterisk?view=rev&rev=106997
Log:
Make sure we don't start a call on a channel that has already started a call

Modified:
    branches/1.6.0/channels/chan_zap.c

Modified: branches/1.6.0/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/channels/chan_zap.c?view=diff&rev=106997&r1=106996&r2=106997
==============================================================================
--- branches/1.6.0/channels/chan_zap.c (original)
+++ branches/1.6.0/channels/chan_zap.c Sat Mar  8 11:54:59 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