Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] type=peer vs type=user (depricated?)


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
mdupuis at ocg.ca
Guest





PostPosted: Wed Jan 22, 2014 6:56 pm    Post subject: [asterisk-users] type=peer vs type=user (depricated?) Reply with quote

I'm looking at setting type=peer vs type=user (in both IAX and SIP conf entries), and I found a comment attributed to digium (http://www.voip-info.org/wiki/view/Asterisk+SIP+user+vs+peer) in 2005 that type=user is depricated and that we should only use type=peer

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?

Are people still using type=user for phone sets? (and type=peer for upstream/trunks only)
Back to top
rnewton at digium.com
Guest





PostPosted: Thu Jan 23, 2014 8:00 pm    Post subject: [asterisk-users] type=peer vs type=user (depricated?) Reply with quote

On Wed, Jan 22, 2014 at 5:56 PM, Michelle Dupuis <mdupuis@ocg.ca> wrote:
Quote:
I'm looking at setting type=peer vs type=user (in both IAX and SIP conf
entries), and I found a comment attributed to digium
(http://www.voip-info.org/wiki/view/Asterisk+SIP+user+vs+peer) in 2005 that
type=user is depricated and that we should only use type=peer

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?

Are people still using type=user for phone sets? (and type=peer for
upstream/trunks only)

Howdy!

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
host=dynamic,
; 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.

Quote:
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]

[1]: https://wiki.asterisk.org/wiki/display/AST/New+in+12
[2]: https://wiki.asterisk.org/wiki/display/AST/Configuring+res_pjsip
[3]: https://wiki.asterisk.org/wiki/display/AST/Asterisk+Versions

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: http://digium.com & http://asterisk.org

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
rnewton at digium.com
Guest





PostPosted: Thu Jan 23, 2014 8:03 pm    Post subject: [asterisk-users] type=peer vs type=user (depricated?) Reply with quote

On Thu, Jan 23, 2014 at 7:01 PM, Rusty Newton <rnewton@digium.com> wrote:
<snip>
Quote:
the 1.8,11, or 12 branches. That being said, 12 is rather new and has
many significant changes that should be considered.[3]

I meant to reference link [1] of course. Smile

--
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: http://digium.com & http://asterisk.org

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services