[asterisk-users] SIP trunks: order or type

Rich Adamson radamson at routers.com
Mon Aug 14 04:18:09 MST 2006


Shaun Hofer wrote:
> It wasn't any help. It doesn't give any reference to order of trunks, etc in 
> sip.conf. I'm still looking for the post, Rich Adamson made reference too...
> 
> On Friday 11 August 2006 18:24, Fran Oliveira wrote:
>> see http://www.voip-info.org/wiki/view/Asterisk+SIP+user+vs+peer
>> perhaps it can help you

The summary in the above wiki reference is what I was referring to. I 
thought Olle posted it, but looks like Kevin did instead.

The relavent part of that post that is likely impacting what you are 
trying to do is this:
"type=peer is _never_ matched on username for incoming calls, only 
matched on IP address/port number..."

That would suggest if you have a type=peer and a type=friend section in 
your sip.conf, only the first (or is it the last?) of the two will be 
used as the match.

To prove that, simply reverse the order of those two in sip.conf; 
whichever one occurs first in the sip.conf order, move it to the second, 
and restart asterisk.

R.




More information about the asterisk-users mailing list