<div dir="ltr">Nope, just WS handshake message,<div><br></div><div>INFO: <script>: WS handshake successful for '/' from 'x.x.x.x:49509' to null.<br></div><div><br></div><div>No warning or error before this for last 100 lines of logs.</div>
<div><br></div><div>Thank you.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 6, 2014 at 11:01 AM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
is there any other error message before the one from auth module?<br>
<br>
Cheers,<br>
Daniel<div><div class="h5"><br>
<br>
<div>On 06/06/14 10:50, Muhammad Shahzad
wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<div dir="ltr">Hi,
<div><br>
</div>
<div>I am trying to authentication MSRP connection using the
example code of msrp event route in module documentation here,</div>
<div><br>
</div>
<div><a href="http://kamailio.org/docs/modules/4.1.x/modules/msrp.html#idp119248" target="_blank">http://kamailio.org/docs/modules/4.1.x/modules/msrp.html#idp119248</a><br>
</div>
<div><br>
</div>
<div>--</div>
<div>...</div>
<div>Â }<span style="white-space:pre-wrap">Â </span>else if
($msrp(method)=="AUTH") {</div>
<div>...</div>
<div>Â Â Â Â if (!pv_www_authenticate("WEBRTC_SIP_REALM",
"$var(passwd)", "0", "$msrp(method)"))</div>
<div>Â Â Â Â {</div>
<div>
<div>Â Â Â Â Â Â if
(auth_get_www_authenticate("WEBRTC_SIP_REALM", "0",
"$var(wauth)"))</div>
<div>Â Â Â Â Â Â {</div>
<div>Â Â Â Â Â Â Â Â xlog("L_INFO", "Generated www
authenticate header for MSRP is [$var(wauth)] \n");</div>
<div>Â Â Â Â Â Â Â Â msrp_reply("401", "Unauthorized",
"$var(wauth)");</div>
<div>Â Â Â Â Â Â } else {<br>
</div>
<div>Â Â Â Â Â Â Â Â msrp_reply("500", "Internal Server
Error");</div>
<div>Â Â Â Â Â Â };</div>
<div>Â Â Â Â Â Â exit;</div>
<div>Â Â Â Â };</div>
</div>
<div>...</div>
<div>--</div>
<div><br>
</div>
<div>However i see in logs following error message and
authentication fails,</div>
<div><br>
</div>
<div>
--</div>
<div>ERROR: auth [auth_mod.c:690]: pv_www_authenticate2():
failed to get method value<br>
</div>
<div>--</div>
<div><br>
</div>
<div>Which is indicates that value of $msrp(method) is null.
However, as you can see in example code in URL provided above
we have an IF condition which explicitly checks $msrp(method)
== "AUTH".</div>
<div><br>
</div>
<div>For the sake of testing i even replaced the variable with
actual string value, and still get the same error. So i am
guessing it is a bug. </div>
<div><br>
</div>
<div>What do you guys suggest?</div>
<div>
<br>
</div>
<div>Kamailio: v4.1.3 (i386/linux) 236326<br>
</div>
<div>MSRP Lib:Â Crocodile MSRP - v1.0.0</div>
<div><br>
</div>
<div>Thank you.</div>
<div><br>
</div>
<div><br>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><span class="HOEnZb"><font color="#888888">
</font></span></pre><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<pre cols="72">--
Daniel-Constantin Mierla - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></pre>
</font></span></div>
<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>