[asterisk-users] SIP trunks: order or type

Rich Adamson radamson at routers.com
Thu Aug 10 19:09:29 MST 2006


Shaun Hofer wrote:
> ok maybe I can explain my problem better. There two trunks both have the same 
> details except one is type=peer (and only does ulaw) and the other is type 
> friend (and does ulaw/alaw/g729). Incoming calls should be only going into 
> the type=friend trunk, NOT into the type=peer trunk. Both should be able to 
> make out going calls. Yet depending on the order in sip.conf, the type=peer 
> will receive calls.
> 
> Marco I understand how type works, thats not the problem. It seems Asterisk is 
> sending incoming calls to a trunk that has type=peer. As you clearly pointed 
> out to every one else that this shouldn't be happening.

If I recall correctly (and that could be an issue), Olle posted 
something a month or so ago relative to this. I believe he was heading 
in a direction that essentially did away with this friend, peer, user 
stuff. I'm thinking that same post talked about which parameters were 
used for finding a match, and the ordering of those parameters (eg, IP, 
username, secret).

I didn't save the post, but maybe he'll read this and repost something 
more accurate then my memory. ;)




More information about the asterisk-users mailing list