[asterisk-users] Confused by concepts behind pjsip: endpoint, aor, contact

Antonio Gómez Soto antonio.gomez.soto at gmail.com
Sun Jan 4 20:27:42 CST 2015


On Sun, Jan 4, 2015 at 8:48 PM, Joshua Colp <jcolp at digium.com> wrote:

> Antonio Gómez Soto wrote:
>
> <snip>
>
>
>> I did not mean they are the same, I meant that there seems to be a
>> one-to-one relationship.
>>
>> So I am wondering, since the auth does seem useless without an aor, but
>> an aor
>> can exist without an auth, why was the auth object created in the first
>> place,
>> instead of extending the aor object with username/password/etc fields?
>>
>
> Auth is useless on its own but is used by many things - in fact it's not
> even used directly by an AOR. It's configured on an endpoint to do
> authentication of inbound traffic from that endpoint. It's also used by
> outbound registration and outbound publish in response to challenges.
>
>
Ok, thank you. One final question:

I see that it's possible to have multiple auth's in an endpoint. For
incoming traffic to be
authenticated, how does pjsip know which auth to consider? By looking at
the From: address
in the SIP header, and matching that up with the auth id?
For example if the From: header is <10000 at 10.172.0.2>, will it find the AOR
from the IP
address, and the auth from the '10000' ?

Antonio



> --
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150104/9b94413a/attachment.html>


More information about the asterisk-users mailing list