<div dir="ltr"><div dir="ltr">On Fri, Feb 14, 2020 at 3:04 PM Dan Cropp <<a href="mailto:dan@amtelco.com">dan@amtelco.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="EN-US">
<div class="gmail-m_-5553703054610606978WordSection1">
<p class="MsoNormal">I have the following configuration…<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">[aor3]<u></u><u></u></p>
<p class="MsoNormal">type = aor<u></u><u></u></p>
<p class="MsoNormal">max_contacts = 1<u></u><u></u></p>
<p class="MsoNormal">remove_existing = yes<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">[auth3]<u></u><u></u></p>
<p class="MsoNormal">type = auth<u></u><u></u></p>
<p class="MsoNormal">username = 1004<u></u><u></u></p>
<p class="MsoNormal">password = SuperSecretProbation<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">[1004]<u></u><u></u></p>
<p class="MsoNormal">type = endpoint<u></u><u></u></p>
<p class="MsoNormal">context = IS<u></u><u></u></p>
<p class="MsoNormal">transport = transport1<u></u><u></u></p>
<p class="MsoNormal">auth = auth3<u></u><u></u></p>
<p class="MsoNormal">aors = aor3<u></u><u></u></p>
<p class="MsoNormal">accountcode = 3<u></u><u></u></p>
<p class="MsoNormal">dtmf_mode = rfc4733<u></u><u></u></p>
<p class="MsoNormal">device_state_busy_at = 2<u></u><u></u></p>
<p class="MsoNormal">force_rport = no<u></u><u></u></p>
<p class="MsoNormal">moh_passthrough = yes<u></u><u></u></p>
<p class="MsoNormal">disallow = all<u></u><u></u></p>
<p class="MsoNormal">allow = ulaw<u></u><u></u></p>
<p class="MsoNormal">acl = acl1<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">When a register attempt is received, asterisk outputs…<u></u><u></u></p>
<p class="MsoNormal">[02/14 12:53:29.870] WARNING[7883] res_pjsip_registrar.c: AOR '1004' not found for endpoint '1004'<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">If I change the aor3 to be 1004, everything works. As in [aor3] becomes [1004] and in the endpoint change aors = aor3 to be aors = 1004<br>
Is there a setting I’m missing to allow the endpoint named 1004 to use an auth that doesn’t have the same 1004 name?<br></p></div></div></blockquote><div><br></div><div>There isn't a configuration option. AOR is a SIP concept, and in fact when you send a REGISTER you state which AOR you are registering to. Your REGISTER is therefore saying "add me to AOR 1004". Since it's not saying "add me to aor3" it doesn't work. Some devices allow you to specify while others just assume that everything uses your username.</div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:tahoma,sans-serif"><font color="#073763">Joshua C. Colp</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Asterisk Technical Lead</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Sangoma Technologies</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Check us out at <a href="http://www.sangoma.com" target="_blank">www.sangoma.com</a> and <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a></font><br></div></div></div></div></div></div></div></div></div></div></div>