<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<br>
<div class="moz-cite-prefix">On 07/03/16 21:43, Cockhootec Yahrabee
wrote:<br>
</div>
<blockquote
cite="mid:CAJetf71OrXVg+DD0mp1JQJpqMCad+VD9YSkiLVtQm6AHNhPCPA@mail.gmail.com"
type="cite">
<div dir="ltr">The problem was in invalid nonce value as you can
see from the debug message<br>
<br>
<div style="font-size:12.8px"><font face="monospace, monospace"> 0(3411)
DEBUG: auth [api.c:136]: auth_check_hdr_md5():
auth:pre_auth: Invalid nonce value received (ret 2)</font></div>
<div><font face="monospace, monospace"><br>
</font></div>
<br>
I was debugging for a while and I was also analyzing pcap dump
when I realized that kamailioB was forwarding and both replying
for the REGISTER message eg. UA answered first for 401
Unauthorized from kamailioB with it's nonce which was of course
on both kamailio's invalid (kamailioB does not have UA
registered and kamailioA was expecting different nonce). This
was happening over and over and it was unable to sync the
nonce's so I was getting 401 Unauthorized over and over.
<div><br>
</div>
<div><br>
</div>
<div>After that i just simply add <font face="monospace,
monospace">exit()</font> after the <font face="monospace,
monospace">forward()</font>, kamailioB stopped responsing
for the REGISTER and everything started to work.</div>
<div><br>
</div>
<div><br>
</div>
<div>I hope that this response will help in the future someone
who forget to exit after forwarding the request :-)</div>
</div>
</blockquote>
Good it was found and solved -- following up with the solution is
very much appreciated, as you already said, it is a building a
valuable knowledge base on mailing list archive that can be searched
by people with similar problems.<br>
<br>
Cheers,<br>
Daniel<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>
Kamailio World Conference, Berlin, May 18-20, 2016 - <a class="moz-txt-link-freetext" href="http://www.kamailioworld.com">http://www.kamailioworld.com</a></pre>
</body>
</html>