[Asterisk-Users] Matching SIP users and peers

Kevin P. Fleming kpfleming at digium.com
Fri Dec 23 12:28:14 MST 2005


C F wrote:
> Kevin, are you saying that in 1.2 a peer can make calls to asterisk as
> well, so there is a reason to set the context?
> If so what is the difference between friend and peer?

Yes. All configuration options supported under 'type=user' are also 
supported under 'type=peer'.

The difference between friend and peer is the same as defining _both_ a 
user and peer, since that is what 'type=friend' does internally.

The only benefit of type=user is when you _want_ to match on username 
regardless of IP the calls originate from. If the peer is registering to 
you, you don't need it. If they are on a fixed IP, you don't need it. 
'type=peer' is _never_ matched on username for incoming calls, only 
matched on IP address/port number (unless you use insecure=port or higher).



More information about the asterisk-users mailing list