dect
/
asterisk
Archived
13
0
Fork 0

Optimization in pri_fixup

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2224 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
markster 2004-02-23 14:58:18 +00:00
parent 8bad98386f
commit 57b2179b0e
1 changed files with 5 additions and 0 deletions

View File

@ -5875,6 +5875,11 @@ static int pri_fixup(struct zt_pri *pri, int channel, q931_call *c)
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) {