Antonio Gómez Soto wrote:
So basically, the 'contact' in the AOR is just an ip address (or 'dynamic', in which case it accepts incoming registrations).
A contact is a SIP term, it's a way of getting to something. (IP address+port)
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?
If you use the PJSIP_DIAL_CONTACTS dialplan function a dial string will be produced which calls everything.
Is there any practical use for such a setup?
It depends. If you don't need them to be individually addressable then it can be useful.
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?
They aren't at all. Auth = Authentication. Used to authenticate incoming calls/registrations/other stuff, or used to authenticate outgoing things. They are NOT the same. AOR is a name for reaching something.
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?
You can mix however you want. -- 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 -- _____________________________________________________________________ -- 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