<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Tue, Sep 3, 2013 at 12:20 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">George Joseph 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">
Trying out Asterisk 12 and the new pjsip module...<br>
<br>
When I create an registration object that links to an auth object, the<br>
registration fails with "res_pjsip_outbound_<u></u>authenticator_digest.c:90<br>
digest_create_request_with_<u></u>auth: Failed to create new request with<br>
authentication credentials" unless the auth object has it's realm set<br>
exactly to the realm returned in the 401 response from the remote server.<br>
<br>
Shouldn't the auth object automatically be using the realm from the<br>
incoming 401? Otherwise I have to create an auth object for each remote<br>
server even if the only thing different is the realm (the scenario is a<br>
provider with multiple servers where the realm is the server name) . It<br>
also means I have to actually look at the incoming 401 packets to get<br>
the realm.<br>
<br>
Bug, feature or my misunderstanding?<br>
</blockquote>
<br>
This is currently logged as the following issue:<br>
<br>
<a href="https://issues.asterisk.org/jira/browse/ASTERISK-22386" target="_blank">https://issues.asterisk.org/<u></u>jira/browse/ASTERISK-22386</a><br>
<br>
Despite there being no current progress on it keep checking back or add yourself as a watcher.<br>
<br>
Cheers,<br>
<br>
-- <br>
Joshua Colp<br>
Digium, Inc. | Senior Software Developer<br>
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA<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></blockquote><div><br></div><div>Ah, I should have checked jira first. If you want to go with the approach in Rusty's third bullet, "...<span style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17px">or should we be responding using the realm in the challenge if we don't define it specifically in config?" I can work on that and submit a patch.</span></div>
<div><span style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17px"><br>
</span></div></div></div></div>