<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi,<br>
<br>
There is something fishy there :)<br>
<br>
So, you changed the AVP names in the uac_auth modparams and I
guess also in failure route...using 10,11,12 works, but with
realm, uname, passw doesn't ??<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 02/17/2017 11:00 AM, Stefan Carlsson
wrote:<br>
</div>
<blockquote
cite="mid:74b24e7e0590447a97f8063738e6b1da@svab-exchange.vaxeltjanst.local"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;
color:black;}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hi !<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Just found the
problem.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Changed the:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="color:#1F4E79;mso-style-textfill-fill-color:#1F4E79;mso-style-textfill-fill-alpha:100.0%"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="color:#1F4E79;mso-style-textfill-fill-color:#1F4E79;mso-style-textfill-fill-alpha:100.0%"
lang="EN-US"><span style="color:windowtext">modparam("uac_auth","auth_realm_avp","$avp(realm)")
<o:p></o:p></span></span></p>
<p class="MsoNormal"><span
style="color:#1F4E79;mso-style-textfill-fill-color:#1F4E79;mso-style-textfill-fill-alpha:100.0%"
lang="EN-US"><span style="color:windowtext">modparam("uac_auth","auth_username_avp","$avp(uname)")<o:p></o:p></span></span></p>
<p class="MsoNormal"><span
style="color:#1F4E79;mso-style-textfill-fill-color:#1F4E79;mso-style-textfill-fill-alpha:100.0%"
lang="EN-US"><span style="color:windowtext">modparam("uac_auth","auth_password_avp","$avp(passw)")<o:p></o:p></span></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">to:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">modparam("uac_auth","auth_realm_avp","$avp(10)")<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">modparam("uac_auth","auth_username_avp","$avp(11)")<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">modparam("uac_auth","auth_password_avp","$avp(12)")<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">eg.
the avp names. Now it works as expected.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">Is
that hardcoded !!!!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:SV"
lang="EN-US">Kind Regards / Vänligen …<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:SV"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:SV"
lang="EN-US">Stefan Carlsson<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:SV"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:SV"
lang="EN-US">---------------------------------------------------------------------------</span><span
style="color:#1F497D;mso-fareast-language:SV" lang="EN-US"><br>
</span><span style="color:#1F497D;mso-fareast-language:SV"><img
id="Picture_x0020_2"
src="cid:part1.6D1A51A2.CCC1DDAB@opensips.org" alt="SVAB
Logotype 70mm" height="41" width="265"></span><span
style="color:#1F497D;mso-fareast-language:SV" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="color:#1F497D;mso-fareast-language:SV" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:SV"
lang="EN-US">Stefan Carlsson
<br>
Systemdesign Tele/Data<br>
Tele dir. +46 (0)504 697601 Tele off +46 (0)504 697600<br>
Mob. +46 (0)708 267 213<br>
</span><span
style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:SV"><a
moz-do-not-send="true"
href="mailto:stefan.carlsson@vaxeltjanst.se"><span
style="color:blue" lang="EN-US"><a class="moz-txt-link-abbreviated" href="mailto:stefan.carlsson@vaxeltjanst.se">stefan.carlsson@vaxeltjanst.se</a></span></a>
<a moz-do-not-send="true"
href="http://www.vaxeltjanst.se/"><span
style="color:blue" lang="EN-US">www.vaxeltjanst.se</span></a>
<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span
style="color:windowtext;mso-fareast-language:SV"
lang="EN-US">From:</span></b><span
style="color:windowtext;mso-fareast-language:SV"
lang="EN-US"> Bogdan-Andrei Iancu
[<a class="moz-txt-link-freetext" href="mailto:bogdan@opensips.org">mailto:bogdan@opensips.org</a>]
<br>
<b>Sent:</b> den 17 februari 2017 09:56<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>; Stefan Carlsson
<a class="moz-txt-link-rfc2396E" href="mailto:stefan.carlsson@vaxeltjanst.se"><stefan.carlsson@vaxeltjanst.se></a><br>
<b>Subject:</b> Re: [OpenSIPS-Users] uac_auth beahviour
!!!!<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi Stefan,<br>
<br>
Please post your exact content of the failure route and all
the parameters you set for uac_auth module ?<br>
<br>
Regards,<br>
<br>
<span style="font-size:12.0pt;mso-fareast-language:SV"><o:p></o:p></span></p>
<pre>Bogdan-Andrei Iancu<o:p></o:p></pre>
<pre>OpenSIPS Founder and Developer<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a><o:p></o:p></pre>
<div>
<p class="MsoNormal">On 02/16/2017 12:07 PM, Stefan Carlsson
wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Hi !<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">I can’t get the proxy
auth. work to our sip trunk provider. See attached log
snap.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Feb 16 10:54:54
siprouter /usr/sbin/opensips[2336]: DBG:uac:uac_auth:
picked reply is 0x7f64a2fd37c0, code 407</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Feb 16 10:54:54
siprouter /usr/sbin/opensips[2336]:
DBG:core:parse_authenticate_body:
<realm>="sip-corp1.se" state=2</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Feb 16 10:54:54
siprouter /usr/sbin/opensips[2336]:
DBG:core:parse_authenticate_body:
<nonce>="WKV4Glildu6ed43MaV2CRk15poD2iuekTGl3NoA="
state=3</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Feb 16 10:54:54
siprouter /usr/sbin/opensips[2336]: DBG:uac:uac_auth: no
credential for realm "sip-corp1.se"</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Feb 16 10:54:54
siprouter /usr/sbin/opensips[2336]:
DBG:tm:update_cloned_msg_from_msg: new_uri must be copied
old=39, new=39</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">What does the “no
credential for realm” mean if the realm string stored in
is exactly the same.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">And what does the
modparam have for meaning:</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">modparam("uac_auth","credential","username:domain:password")</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">if I did the below:</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">modparam("uac_auth","auth_realm_avp","$avp(realm)")
</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">modparam("uac_auth","auth_username_avp","$avp(uname)")</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">modparam("uac_auth","auth_password_avp","$avp(passw)")</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">code snap …..</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">in my error reply
route:</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> $avp(realm) =
"sip-corp1.se";</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> $avp(username)
= "secret";</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> $avp(passw) =
"J3bX_SUTg";</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">
uac_auth();</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">
t_relay();</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:SV"
lang="EN-US">Kind Regards / Vänligen …</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:SV"
lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:SV"
lang="EN-US">Stefan Carlsson</span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Times New
Roman",serif;mso-fareast-language:SV"><br>
<br>
<br>
<o:p></o:p></span></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>Users mailing list<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Times New
Roman",serif;mso-fareast-language:SV"><o:p> </o:p></span></p>
</div>
</blockquote>
<br>
</body>
</html>