<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jan 4, 2015 at 8:48 PM, Joshua Colp <span dir="ltr"><<a href="mailto:jcolp@digium.com" target="_blank">jcolp@digium.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Antonio Gómez Soto wrote:<br>
<br>
<snip><span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
I did not mean they are the same, I meant that there seems to be a<br>
one-to-one relationship.<br>
<br>
So I am wondering, since the auth does seem useless without an aor, but<br>
an aor<br>
can exist without an auth, why was the auth object created in the first<br>
place,<br>
instead of extending the aor object with username/password/etc fields?<br>
</blockquote>
<br></span>
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.<br>
<br></blockquote><div><br></div><div>Ok, thank you. One final question:</div><div><br></div><div>I see that it's possible to have multiple auth's in an endpoint. For incoming traffic to be</div><div>authenticated, how does pjsip know which auth to consider? By looking at the From: address</div><div>in the SIP header, and matching that up with the auth id?</div>For example if the From: header is <<a href="mailto:10000@10.172.0.2">10000@10.172.0.2</a>>, will it find the AOR from the IP</div><div class="gmail_quote">address, and the auth from the '10000' ?<br><div><br></div><div>Antonio</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="im">
<br></span><div class=""><div class="h5">
-- <br>
Joshua Colp<br>
Digium, Inc. | Senior Software Developer<br>
445 Jan Davis Drive NW - Huntsville, AL 35806 - US<br>
Check us out at: <a href="http://www.digium.com" target="_blank">www.digium.com</a> & <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a><br>
<br>
-- <br>
______________________________<u></u>______________________________<u></u>_________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
              <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
  <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/<u></u>mailman/listinfo/asterisk-<u></u>users</a></div></div></blockquote></div><br></div></div>