Soporte & Consultoria

Soporte Remoto y Consultoria skype : ambiorixg12.
Nota no se brinda ningun tipo de consulta o soporte fuera del blog de forma gratuita

jueves, 13 de octubre de 2016

type peer vs friend


This is always a confusing part of the chan_sip SIP channel driver.

Rather than try to dig into any history, here is the current
documentation (from sip.conf.sample in the Asterisk source of
1.8,11,12) that you should base your decision to use a particular
"type" on:

"; SIP entities have a 'type' which determines their roles within Asterisk.
; * For entities with 'type=peer':
;   Peers handle both inbound and outbound calls and are matched by
ip/port, so for
;   The case of incoming calls from the peer, the IP address must
match in order for
;   The invitation to work. This means calls made from either
direction won't work if
;   The peer is unregistered while host=dynamic or if the host is
otherise not set to
;   the correct IP of the sender.
; * 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
;   this means it is necessary for the entity to register before
Asterisk can call it."

Most new work for SIP support in Asterisk is happening around
res_pjsip[1][2]. I don't know that there is any plans to deprecate
type=user going forward in chan_sip.

> Is that still correct?  Will type=user be phased out, and should even new
> installs of older asterisk versions (eg: 1.6) use type=peer only?

New installs of older Asterisk versions? That doesn't sound wise,
seeing as the 1.6 branch doesn't have any support, even for security
issues... A new install of Asterisk should be on a version of Asterisk
supported by the developers.[3] Right now, that would be the latest of
the 1.8,11, or 12 branches. That being said, 12 is rather new and has
many significant changes that should be considered.[3]


Hope that helps, thanks!

Rusty Newton
Digium, Inc. | Community Support Manager
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
direct: +1 256 428 6200

Check us out at: &

No hay comentarios:

Publicar un comentario