PJSIP AoR Vs Endpoint

Home » Asterisk Users » PJSIP AoR Vs Endpoint
Asterisk Users 2 Comments

Hi,

I realise this is an old question, but I’m struggling to get my head around it.

The ERD suggests that endpoints can link to multiple AoRs

In what situation would you actually use this? Given that mapping of inbound calls is primary done to the endpoint, it looks to me like most of the scenarios where this might be beneficial are actually not possible?

One example I had envisaged was being able to have multiple distinct auth entries for one endpoint (eg for different devices, such as a WebRTC
device, a TLS device or a UDP device) but the restrictions around device identification seem to make this not achievable as the auth user or user needs to be the endpoint name to actually find the correct endpoint.

The answer is somewhat moot; but as I’m thinking about implementation of some things I’m just trying to make sure I haven’t missed the obvious “yep
– you’d use this here, because it makes X or Y amazing”.

Andrew

2 thoughts on - PJSIP AoR Vs Endpoint

  • Le sam. 18 juil. 2020 à 08:02, Andrew Yager a écrit :

    In my very limited understanding, it seems inbound calls, if properly configured, are targeted to AoRs, not endpoints. This allows for several physical devices to be notified of the same incoming call.

    Following this route, one hurdle to take on is when transferring calls from one device to the other one(s), with the same endpoint.

    Maybe, some with a better understanding or knowledge may correct or confirm the above statements.

  • Incoming and outgoing as concepts get fun when you’re talking about Asterisk and things in general because it changes based on where you are observing things from. Sticking to Asterisk, an AOR is used for outbound calls to a device. It’s a named entity that gets mapped to how to contact it (a statically configured SIP URI, one added by registration). An AOR is also a defined SIP concept and in fact when you REGISTER you are saying
    “add my Contact to this AOR”.

    Having multiple allows you to separate devices some for the same endpoint, but that functionality depends on the device in question. Many simplify everything down to a username/password – so they assume the AOR is the username and can’t be changed. It’s easiest to just stick to 1 unless you have great reason to.