<div dir="ltr"><div dir="ltr"><div>Good day Michael,</div><div>I just noticed you are using quotation marks when you pass the second parameter to the function www_challenge().</div><div><br></div><div>Reading the manual on auth.so:<br><a href="https://opensips.org/html/docs/modules/3.0.x/auth.html#func_www_challenge">https://opensips.org/html/docs/modules/3.0.x/auth.html#func_www_challenge</a></div><div><br></div><div>I see that it should be passed without any preceding and following symbols, so clear 0 or 1, see example from module's wiki:<br>www_challenge("<a href="http://siphub.net">siphub.net</a>", 1);</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jan 5, 2021 at 8:35 PM Michael Vale via Users <<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The script wouldn’t load if I specified a auth-int as well as auth.  I removed auth-int entirely and the script runs.<br>
<br>
> On 6 Jan 2021, at 5:26 am, Vlad Patrascu <<a href="mailto:vladp@opensips.org" target="_blank">vladp@opensips.org</a>> wrote:<br>
> <br>
> Hi Michael,<br>
> <br>
> Regarding the qop issue, you should pass for that parameter a string value of "auth", "auth-int", or both separated by ','.<br>
> <br>
> Regards,<br>
> <br>
> -- <br>
> Vlad Patrascu<br>
> OpenSIPS Developer<br>
> <a href="http://www.opensips-solutions.com" rel="noreferrer" target="_blank">http://www.opensips-solutions.com</a><br>
> <br>
> On 05.01.2021 19:50, Michael Vale via Users wrote:<br>
>> Hi,<br>
>> <br>
>> I’m attempting to do auth with AAA,<br>
>> <br>
>> I was met with an error of no Cisco vendor and no SIP-URI-Host Attribute which I added to the dictionaries.<br>
>> <br>
>> Now www_challenge thinks either “0” or “1” is an invalid qop type.                                                                           <br>
>> <br>
>>                                                                               ERROR:auth:fixup_qop: Bad qop type<br>
>> Jan 06 04:42:14 unispy /usr/sbin/opensips[29711]: ERROR:core:fix_cmd: Fixup failed for param [2]<br>
>> Jan 06 04:42:14 unispy /usr/sbin/opensips[29711]: ERROR:core:fix_actions: Failed to fix command <www_challenge><br>
>> Jan 06 04:42:14 unispy /usr/sbin/opensips[29711]: ERROR:core:fix_actions: fixing failed (code=-1) at /etc/opensips/opensips.cfg:216<br>
>> Jan 06 04:42:14 unispy /usr/sbin/opensips[29711]: ERROR:core:main: failed to fix configuration with err code -1<br>
>> Jan 06 04:42:14 unispy /usr/sbin/opensips[29711]: INFO:core:cleanup: cleanup<br>
>> Jan 06 04:42:14 unispy /usr/sbin/opensips[29711]: NOTICE:core:main: Exiting....<br>
>> Jan 06 04:42:14 unispy opensips[29709]: INFO:core:daemonize: pre-daemon proce<br>
>> <br>
>>      if (!aaa_www_authorize("")) {<br>
>>             www_challenge("", "1");<br>
>>          };<br>
>> <br>
>> <br>
>> Could someone please shed some light on the subject?<br>
>> <br>
>> Also it would be nice if there was another approach to handling the SIP-URI-Host and Cisco issue or at least some confirmation that my approach was the best way to deal with it.<br>
>> <br>
>> <br>
>> Regards,<br>
>> <br>
>> Michael.<br>
>> _______________________________________________<br>
>> Users mailing list<br>
>> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
> <br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><br></div><div dir="ltr"><div dir="ltr"><font style="background-color:rgb(255,255,255)" color="#0b5394">Best regards,<br></font></div><div dir="ltr"><font style="background-color:rgb(255,255,255)" color="#0b5394">Donat Zenichev<br><br></font></div></div></div></div></div></div></div></div></div>