type=peer vs type=friend

Get help with installing, upgrading and running Asterisk.

Moderators: muppetmaster, Moderator, Support

type=peer vs type=friend

Postby aardvark82 » Sun Dec 13, 2015 2:17 am

Can you explain what does it mean (in modern Asterisk versions)? I have both password-protected and "trunk" peers and friends, everything works fine both for inbound and outbound calls via these peers/friends. What's the difference?
aardvark82
Newsterisk
 
Posts: 18
Joined: Fri May 16, 2014 4:06 am

Re: type=peer vs type=friend

Postby david55 » Sun Dec 13, 2015 4:43 am

A SIP friend will recognize its name in the from part of a SIP invite, even though the call doesn't come from the right address.. It is therefore normally a security risk, and can also cause calls to be falsely rejected if they have the same caller ID value in the From header, but come from a "trunk".

There are some occasions when friend is useful, but I can't recall any at the moment.
david55
Moves Like Spencer
 
Posts: 12570
Joined: Fri Sep 26, 2008 5:03 am

Re: type=peer vs type=friend

Postby aardvark82 » Sun Dec 13, 2015 1:04 pm

Okay, so I can use type=peer for any kind of peers and it will be fine.

And a bug, maybe related to this peer/friend thing. On * machine I have [1234567] password-protected account for test purposes and I also can dial "thru" this * machine with same CID 1234567, but from "trunk" peer from another PBX. And.... call is routed by Asterisk like it came from password-protected peer, with it's context and other settings. What's this?
aardvark82
Newsterisk
 
Posts: 18
Joined: Fri May 16, 2014 4:06 am

Re: type=peer vs type=friend

Postby david55 » Sun Dec 13, 2015 3:02 pm

That's the result of using friend when all you need is peer.
david55
Moves Like Spencer
 
Posts: 12570
Joined: Fri Sep 26, 2008 5:03 am

Re: type=peer vs type=friend

Postby ambiorixg12 » Sun Dec 13, 2015 7:49 pm

ambiorixg12
Astmaster
 
Posts: 967
Joined: Sun Mar 04, 2007 9:32 pm
Location: Dominican Republic


Return to Asterisk Support

Who is online

Users browsing this forum: No registered users and 1 guest