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:
parent
8bad98386f
commit
57b2179b0e
|
@ -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) {
|
||||
|
|
Reference in New Issue