<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
is there any other error message before the one from auth module?<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 06/06/14 10:50, Muhammad Shahzad
wrote:<br>
</div>
<blockquote
cite="mid:CAFZQphzBMW9cEp+BSMscE4q8u_xYUAUXMU18uGzkOODhK=sA1w@mail.gmail.com"
type="cite">
<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 moz-do-not-send="true"
href="http://kamailio.org/docs/modules/4.1.x/modules/msrp.html#idp119248">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"> </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 class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
</body>
</html>