[Asterisk-cvs] asterisk/channels chan_zap.c,1.178,1.179

markster at lists.digium.com markster at lists.digium.com
Mon Feb 23 10:10:04 CST 2004


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv21320/channels

Modified Files:
	chan_zap.c 
Log Message:
Optimization in pri_fixup


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.178
retrieving revision 1.179
diff -u -d -r1.178 -r1.179
--- chan_zap.c	23 Feb 2004 05:02:24 -0000	1.178
+++ chan_zap.c	23 Feb 2004 14:58:18 -0000	1.179
@@ -5875,6 +5875,11 @@
 			return 0;
 		return channel;
 	}
+	if ((channel >= 1) && 
+		(channel <= pri->channels) && 
+		(pri->pvt[channel]) && 
+		(pri->pvt[channel]->call == c))
+		return channel;
 	for (x=1;x<=pri->channels;x++) {
 		if (!pri->pvt[x]) continue;
 		if (pri->pvt[x]->call == c) {




More information about the svn-commits mailing list