<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Good to hear it works now, thanks for assistance, testing and
reporting back the results.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 12/06/14 12:10, Muhammad Shahzad
wrote:<br>
</div>
<blockquote
cite="mid:CAFZQphwjHQ_2Qos8rw5mDmHGdES56yiUAvCoPHLGXDC2ML2RfQ@mail.gmail.com"
type="cite">
<div dir="ltr">After applying the git commit <span
style="font-family:arial,sans-serif;font-size:13px">be8fb6fa8a1492259a26abe4825653</span><span
style="font-family:arial,sans-serif;font-size:13px">f1f66ff0d8,
that you just did. It seems to have solve the MSRP
authentication problem.</span>
<div>
<span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px">Please
accept my thanks and appreciation for this hard work from
you and your team in fixing this critical issue.</span><br>
</div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px">Thank
you.</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Thu, Jun 12, 2014 at 4:44 AM,
Muhammad Shahzad <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:shaheryarkh@gmail.com"
target="_blank">shaheryarkh@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 dir="ltr">After upgrade to latest revision of 4.1
branch, now i get this error log,
<div><br>
</div>
<div>--</div>
<div>
ERROR: auth [auth_mod.c:690]: pv_www_authenticate2():
failed to get method value from msg 0xa5813680 var
0xb67c13a0<br>
</div>
<div>--</div>
<div><br>
</div>
<div>Complete debug level 3 logs are sent to your email.</div>
<div><br>
</div>
<div>Thank you.</div>
<div><br>
</div>
<div><br>
</div>
</div>
<div class="HOEnZb">
<div class="h5">
<div class="gmail_extra">
<br>
<br>
<div class="gmail_quote">
On Wed, Jun 11, 2014 at 7:12 PM, Daniel-Constantin
Mierla <span dir="ltr"><<a
moz-do-not-send="true"
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"> I added an
enhancement to print the pointers involved in
retrieving the method. Can you test with latest
master or 4.1 branches from git?<br>
<br>
Cheers,<br>
Daniel
<div>
<div><br>
<br>
<div>On 11/06/14 18:35, Muhammad Shahzad
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Sent logs to private email
of yours. Now there don't seem to be any
parsing error however, method
pv_www_authenticate2 still fails with
same error,
<div><br>
</div>
<div>ERROR: auth [auth_mod.c:690]:
pv_www_authenticate2(): failed to get
method value<br>
</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 Wed, Jun 11,
2014 at 5:55 PM, Daniel-Constantin
Mierla <span dir="ltr"><<a
moz-do-not-send="true"
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"> Are those all the
log messages? Previously there
were parsing errors in the logs
you sent to me.<br>
<br>
Get them with debug=3 in
kamailio.cfg.<br>
<br>
Cheers, Daniel
<div>
<div><br>
<br>
<div>On 11/06/14 17:51,
Muhammad Shahzad wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Many thanks
for your time and help.
<div><br>
</div>
<div>I just tried with
msrp:// scheme, still
get same result,</div>
<div><br>
</div>
<div>--</div>
<div>
<div> MSRP nv755d8c
AUTH</div>
<div>To-Path: msrp://<a
moz-do-not-send="true" href="http://ms11.xyz.com" target="_blank">ms11.xyz.com</a></div>
<div>From-Path:
msrp://xe4a9fqm.invalid:2855/bcuf2gk7co;ws</div>
<div>-------nv755d8c$</div>
<div><br>
</div>
<div><br>
</div>
<div>MSRP nv755d8c 401
Unauthorized</div>
<div>To-Path:
msrp://xe4a9fqm.invalid:2855/bcuf2gk7co;ws</div>
<div>From-Path: msrp://<a
moz-do-not-send="true" href="http://ms11.xyz.com" target="_blank">ms11.xyz.com</a></div>
<div>WWW-Authenticate:
Digest realm="<a
moz-do-not-send="true"
href="http://ms11.xyz.com" target="_blank">ms11.xyz.com</a>",
nonce="U5h6tVOYeYl9e9/eI5iLI40pB4IJ4i+pE1crsYA="</div>
<div>-------nv755d8c$</div>
<div><br>
</div>
<div><br>
</div>
<div>MSRP 5bn8rwst AUTH</div>
<div>To-Path: msrp://<a
moz-do-not-send="true" href="http://ms11.xyz.com" target="_blank">ms11.xyz.com</a></div>
<div>From-Path:
msrp://xe4a9fqm.invalid:2855/bcuf2gk7co;ws</div>
<div>Authorization:
Digest
username="233100001176",
realm="<a
moz-do-not-send="true"
href="http://ms11.xyz.com" target="_blank">ms11.xyz.com</a>",
nonce="U5h6tVOYeYl9e9/eI5iLI40pB4IJ4i+pE1crsYA=",
uri="msrp://<a
moz-do-not-send="true"
href="http://ms11.xyz.com" target="_blank">ms11.xyz.com</a>",
response="2e03beb2c438548e91a4a21fb2b68c19"</div>
<div>-------5bn8rwst$</div>
<div><br>
</div>
<div><br>
</div>
<div>MSRP 5bn8rwst 401
Unauthorized</div>
<div>To-Path:
msrp://xe4a9fqm.invalid:2855/bcuf2gk7co;ws</div>
<div>From-Path: msrp://<a
moz-do-not-send="true" href="http://ms11.xyz.com" target="_blank">ms11.xyz.com</a></div>
<div>WWW-Authenticate:
Digest realm="<a
moz-do-not-send="true"
href="http://ms11.xyz.com" target="_blank">ms11.xyz.com</a>",
nonce="U5h6tVOYeYmtyBVYHDeFOHDsXxftwsG/E1cssoA="</div>
<div>-------5bn8rwst$</div>
</div>
<div><br>
</div>
<div>--</div>
<div><br>
</div>
<div>Here are kamailio
logs,</div>
<div><br>
</div>
<div>--</div>
<div>INFO: <script>:
WS handshake successful
for '/' from
'x.x.x.x:52014' to null<br>
</div>
<div>ERROR: auth
[auth_mod.c:690]:
pv_www_authenticate2():
failed to get method
value<br>
</div>
<div>INFO: <script>:
Generated www
authenticate header for
MSRP is
[WWW-Authenticate:
Digest realm="<a
moz-do-not-send="true"
href="http://ms11.xyz.com" target="_blank">ms11.xyz.com</a>",
nonce="U5h6blOYeULQKGB/8QT4j0beeyTp6uzME1chp4A="#015#012]<br>
</div>
<div>ERROR: auth
[auth_mod.c:690]:
pv_www_authenticate2():
failed to get method
value<br>
</div>
<div>INFO: <script>:
Generated www
authenticate header for
MSRP is
[WWW-Authenticate:
Digest realm="<a
moz-do-not-send="true"
href="http://ms11.xyz.com" target="_blank">ms11.xyz.com</a>",
nonce="U5h6blOYeUI7nPMjnqlOXlFC0PbX5E71E1ciqIA="#015#012]<br>
</div>
<div>INFO: <script>:
WebSocket connection
from x.x.x.x:52014 has
closed<br>
</div>
<div class="gmail_extra">--<br>
<br>
Thank you.</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">
On Wed, Jun 11, 2014
at 5:36 PM,
Daniel-Constantin
Mierla <span
dir="ltr"><<a
moz-do-not-send="true"
href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.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">
<div
bgcolor="#FFFFFF"
text="#000000">
The MSRP request
is brocken, the
value of To-Path
header is missing
msrp:// scheme, it
is like:<br>
<br>
To-Path: <a
moz-do-not-send="true"
href="http://ms11.xyz.com" target="_blank">ms11.xyz.com</a><br>
<br>
Should be like:<br>
<br>
To-Path: msrp://<a
moz-do-not-send="true" href="http://ms11.xyz.com" target="_blank">ms11.xyz.com</a><br>
<br>
See also the
From-Path for
comparison.<br>
<br>
Cheers,<br>
Daniel
<div>
<div><br>
<br>
<div>On
11/06/14
17:16,
Daniel-Constantin
Mierla wrote:<br>
</div>
<blockquote
type="cite">
Caught by
other stuff, I
didn't have
time to
analyze it. On
my way right
now...<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div>On
10/06/14
16:22,
Muhammad
Shahzad wrote:<br>
</div>
<blockquote
type="cite">
<div dir="ltr">Any
update? Do you
need any
additional
info?
<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:29
PM, Muhammad
Shahzad <span
dir="ltr"><<a
moz-do-not-send="true" href="mailto:shaheryarkh@gmail.com"
target="_blank">shaheryarkh@gmail.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">
<div dir="ltr">I
have sent you
logs to your
private email
separately,
did you get
them?
<div><br>
</div>
<div>Thank
you.</div>
<div><br>
</div>
<div><br>
</div>
</div>
<div
class="gmail_extra"><br>
<br>
<div
class="gmail_quote">
<div>On Fri,
Jun 6, 2014 at
3:48 PM,
Muhammad
Shahzad <span
dir="ltr"><<a
moz-do-not-send="true" href="mailto:shaheryarkh@gmail.com"
target="_blank">shaheryarkh@gmail.com</a>></span>
wrote:<br>
</div>
<div>
<div>
<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">
<div dir="ltr">OK
sure. I will
provide it
tonight.
<div><br>
</div>
<div>Thank
you.</div>
<div> <br>
</div>
<div><br>
</div>
</div>
<div>
<div>
<div
class="gmail_extra"><br>
<br>
<div
class="gmail_quote">On
Fri, Jun 6,
2014 at 2:48
PM,
Daniel-Constantin
Mierla <span
dir="ltr"><<a
moz-do-not-send="true" href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.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">
<div
bgcolor="#FFFFFF"
text="#000000">
In the code I
couldn't spot
what can be
wrong at a
quick look.<br>
<br>
Can you send
the log
messages with
debug=3 in
kamailio.cfg?<br>
<br>
Cheers,<br>
Daniel
<div>
<div><br>
<br>
<div>On
06/06/14
11:55,
Muhammad
Shahzad wrote:<br>
</div>
<blockquote
type="cite">
<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
moz-do-not-send="true" href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.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">
<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><br>
<br>
<div>On
06/06/14
10:50,
Muhammad
Shahzad wrote:<br>
</div>
</div>
</div>
<blockquote
type="cite">
<div>
<div>
<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"
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 moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" 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><font color="#888888">
</font></span></pre>
<span><font
color="#888888">
</font></span></blockquote>
<span><font
color="#888888">
<br>
<pre cols="72">--
Daniel-Constantin Mierla - <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" 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
moz-do-not-send="true"
href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a
moz-do-not-send="true"
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>
</blockquote>
<br>
<pre cols="72">--
Daniel-Constantin Mierla - <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></pre>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<pre cols="72">--
Daniel-Constantin Mierla - <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></pre>
</blockquote>
<br>
<pre cols="72">--
Daniel-Constantin Mierla - <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></pre>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
<br>
<pre cols="72">--
Daniel-Constantin Mierla - <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></pre>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<pre cols="72">--
Daniel-Constantin Mierla - <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></pre>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</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>