[asterisk-users] SIP trunks: order or type

Shaun Hofer shaun.hofer at altcall.com
Mon Aug 14 19:10:58 MST 2006


On Monday 14 August 2006 21:18, Rich Adamson wrote:
> 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.
>

I have seen this happen in sip.conf. I had been swapping them around before. I 
didn't quite read wiki reference like that, but your explanation helped. I 
was hoping for something more definitive, oh well.

Thanks for all the help 
-- Shaun 



More information about the asterisk-users mailing list