mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-11-02 20:08:17 +00:00 
			
		
		
		
	Optimization in pri_fixup
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2224 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		@@ -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
	
	Block a user