Skip to content
Snippets Groups Projects
Commit 973aeabf authored by Jonathan Rose's avatar Jonathan Rose
Browse files

Redocuments sip types peer, user, friend in sip.conf.sample

There was faulty information in the sample config describing user as a synonym for friend
so it has been changed to better elaborate on the differences between the three entity
types.

(closes issue ASTERISK-15537)
Reported by: yarique
........

Merged revisions 352511 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 352512 from http://svn.asterisk.org/svn/asterisk/branches/10


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@352513 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 213f7a65
No related branches found
No related tags found
No related merge requests found
...@@ -1087,15 +1087,25 @@ srvlookup=yes ; Enable DNS SRV lookups on outbound calls ...@@ -1087,15 +1087,25 @@ srvlookup=yes ; Enable DNS SRV lookups on outbound calls
;------------------------------------------------------------------------------ ;------------------------------------------------------------------------------
; DEVICE CONFIGURATION ; DEVICE CONFIGURATION
; ;
; The SIP channel has two types of devices, the friend and the peer. ; SIP entities have a 'type' which determines their roles within Asterisk.
; * The type=friend is a device type that accepts both incoming and outbound calls, ; * For entities with 'type=peer':
; where Asterisk match on the From: username on incoming calls. ; Peers handle both inbound and outbound calls and are matched by ip/port, so for
; (A synonym for friend is "user"). This is a type you use for your local ; The case of incoming calls from the peer, the IP address must match in order for
; SIP phones. ; The invitation to work. This means calls made from either direction won't work if
; * The type=peer also handles both incoming and outbound calls. On inbound calls, ; The peer is unregistered while host=dynamic or if the host is otherise not set to
; Asterisk only matches on IP/port, not on names. This is mostly used for SIP ; the correct IP of the sender.
; trunks. ; * For entities with 'type=user':
; ; Asterisk users handle inbound calls only (meaning they call Asterisk, Asterisk can't
; call them) and are matched by their authorization information (authname and secret).
; Asterisk doesn't rely on their IP and will accept calls regardless of the host setting
; as long as the incoming SIP invite authorizes successfully.
; * For entities with 'type=friend':
; Asterisk will create the entity as both a friend and a peer. Asterisk will accept
; calls from friends like it would for users, requiring only that the authorization
; matches rather than the IP address. Since it is also a peer, a friend entity can
; be called as long as its IP is known to Asterisk. In the case of host=dynamic,
; this means it is necessary for the entity to register before Asterisk can call it.
;
; Use remotesecret for outbound authentication, and secret for authenticating ; Use remotesecret for outbound authentication, and secret for authenticating
; inbound requests. For historical reasons, if no remotesecret is supplied for an ; inbound requests. For historical reasons, if no remotesecret is supplied for an
; outbound registration or call, the secret will be used. ; outbound registration or call, the secret will be used.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment