[Asterisk-cvs] asterisk/channels chan_zap.c,1.171.2.5,1.171.2.6
markster at lists.digium.com
markster at lists.digium.com
Mon Feb 23 10:10:36 CST 2004
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv21336/channels
Modified Files:
Tag: v1-0_stable
chan_zap.c
Log Message:
Optimization in pri_fixup (thanks steveu)
Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.171.2.5
retrieving revision 1.171.2.6
diff -u -d -r1.171.2.5 -r1.171.2.6
--- chan_zap.c 22 Feb 2004 22:09:28 -0000 1.171.2.5
+++ chan_zap.c 23 Feb 2004 14:58:51 -0000 1.171.2.6
@@ -5864,6 +5864,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