Antonio Gómez Soto
2015-Jan-04 22:29 UTC
[asterisk-users] Confused by concepts behind pjsip: endpoint, aor, contact
Hello, I am slightly confused by the difference between chan_sip and pjsip. Especially the new (to me) objects aor and contact. I am having trouble mapping them to the typical SIP configuration settings on a phone. Suppose I have a phone with two line buttons, for two extension numbers. Now, I think that means two 'endpoints' in pjsip right? But what exactly is the difference between aor and contact? So why does aor have a max_contacts value? And where do phone registrations fit in, where are those kept anyway? I hope someone can shed some light for me here. Thanks, Antonio -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150104/df3fb67b/attachment.html>
Joshua Colp
2015-Jan-04 22:40 UTC
[asterisk-users] Confused by concepts behind pjsip: endpoint, aor, contact
Antonio G?mez Soto wrote:> Hello,Kia ora,> I am slightly confused by the difference between chan_sip and pjsip. > Especially the new (to me) objects aor and contact. > > I am having trouble mapping them to the typical SIP configuration > settings on a phone.Have you looked on the wiki[1]? There's examples as well as a conversion script and information about the various things.> Suppose I have a phone with two line buttons, for two extension numbers. > Now, > I think that means two 'endpoints' in pjsip right? But what exactly is > the difference > between aor and contact? So why does aor have a max_contacts value? > And where do phone registrations fit in, where are those kept anyway?Cheers, [1] https://wiki.asterisk.org/wiki/display/AST/Configuring+res_pjsip -- Joshua Colp Digium, Inc. | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at: www.digium.com & www.asterisk.org
George Joseph
2015-Jan-04 22:45 UTC
[asterisk-users] Confused by concepts behind pjsip: endpoint, aor, contact
On Sun, Jan 4, 2015 at 3:29 PM, Antonio G?mez Soto < antonio.gomez.soto at gmail.com> wrote:> Hello, > > I am slightly confused by the difference between chan_sip and pjsip. > Especially the new (to me) objects aor and contact. > > I am having trouble mapping them to the typical SIP configuration settings > on a phone. >There's some info on the wiki here... https://wiki.asterisk.org/wiki/display/AST/Migrating+from+chan_sip+to+res_pjsip> > Suppose I have a phone with two line buttons, for two extension numbers. > Now, > I think that means two 'endpoints' in pjsip right? >Generally correct, if you set up 1 extension to 1 endpoint.> But what exactly is the difference > between aor and contact? >AORs contain contacts. They can be permanent or dynamic. You'd define permanent contacts for trunks or devices where the peer ip address is knon using the 'contact' parameter. If you don't define any contacts, then dynamic is assumed and the aor/endpoint will accept inbound registrations. You'd use dynamic for most phones.> So why does aor have a max_contacts value? >If you're accepting registrations, max contacts defines how many peers will be allowed to register. For most scenarios it's 1 but you COULD have 2 devices register to the same endpoint. When a call is sent to that endpoint, the first available contact will be dialed.> And where do phone registrations fit in, where are those kept anyway? >See above.> I hope someone can shed some light for me here. > > Thanks, > Antonio > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150104/8797ef4c/attachment.html>
Antonio Gómez Soto
2015-Jan-04 23:31 UTC
[asterisk-users] Confused by concepts behind pjsip: endpoint, aor, contact
Thanks for responding, On Sun, Jan 4, 2015 at 5:45 PM, George Joseph <george.joseph at fairview5.com> wrote:> On Sun, Jan 4, 2015 at 3:29 PM, Antonio G?mez Soto < > antonio.gomez.soto at gmail.com> wrote: > >> Hello, >> >> I am slightly confused by the difference between chan_sip and pjsip. >> Especially the new (to me) objects aor and contact. >> >> I am having trouble mapping them to the typical SIP configuration >> settings on a phone. >> > > There's some info on the wiki here... > > https://wiki.asterisk.org/wiki/display/AST/Migrating+from+chan_sip+to+res_pjsip > > >> >> Suppose I have a phone with two line buttons, for two extension numbers. >> Now, >> I think that means two 'endpoints' in pjsip right? >> > > Generally correct, if you set up 1 extension to 1 endpoint. > > >> But what exactly is the difference >> between aor and contact? >> > > AORs contain contacts. They can be permanent or dynamic. You'd define > permanent contacts for trunks or devices where the peer ip address is knon > using the 'contact' parameter. If you don't define any contacts, then > dynamic is assumed and the aor/endpoint will accept inbound registrations. > You'd use dynamic for most phones. >So basically, the 'contact' in the AOR is just an ip address (or 'dynamic', in which case it accepts incoming registrations). So what happens if one endpoint has multiple AOR's which are registered from different ip addresses. And you Dial() that endpoint, will PJSIP send invites to all the ip addresses? Is there any practical use for such a setup? Also I notice, an AOR does seem do be directly correlated with an auth record, so why are they separate in the configuration, why not unify the aor and the auth objects? And, while I'm at it, in the realtime tables, the length of ps_endpoints.aors = 200, and the length of ps_endpoints.auths = 40. This suggests there are scenarios where there are aors, without corresponding auth. Can you mix dynamic and static AORs within one endpoint, and would there be a use case for that? Thanks, Antonio.> > >> So why does aor have a max_contacts value? >> > > If you're accepting registrations, max contacts defines how many peers > will be allowed to register. For most scenarios it's 1 but you COULD have > 2 devices register to the same endpoint. When a call is sent to that > endpoint, the first available contact will be dialed. > > > >> And where do phone registrations fit in, where are those kept anyway? >> > > See above. > > >> I hope someone can shed some light for me here. >> >> Thanks, >> Antonio >> >> >> > > -- > _____________________________________________________________________ > -- 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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150104/427a1e8d/attachment.html>
Possibly Parallel Threads
- Confused by concepts behind pjsip: endpoint, aor, contact
- Confused by concepts behind pjsip: endpoint, aor, contact
- Confused by concepts behind pjsip: endpoint, aor, contact
- PJSIP does not qualify contacts after starting Asterisk
- Confused by concepts behind pjsip: endpoint, aor, contact