<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
run kamailio with debug=3 in kamailio.cfg, you should see more
details about what happens during authorization time.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 06/03/16 19:35, Cockhootec Yahrabee
wrote:<br>
</div>
<blockquote
cite="mid:CAJetf72FGv8yncrXYpSw8rB4oEhFvAT+uwsJeFnrDCgb_SXerQ@mail.gmail.com"
type="cite">
<div dir="ltr">Hi everyone,
<div><br>
</div>
<div>I am trying to forward registration from one kamailio
instance to another one eg.</div>
<div><br>
</div>
<div><font face="monospace, monospace">UA1 <---> kamailioB
<------> kamailioA</font></div>
<div><br>
</div>
<div><br>
</div>
<div>I am trying to register on `kamailioA` with UA1. I have UA1
registered on kamailioA. I am routing SIP messages by adding
this to `request_route` block:<br>
<br>
<div><font face="monospace, monospace"> if (uri !=
myself)</font></div>
<div><font face="monospace, monospace"> {</font></div>
<div><font face="monospace, monospace">
forward(otherKamailioIP, 5060);</font></div>
<div><font face="monospace, monospace"> }</font></div>
</div>
<div><br>
</div>
<div>Where I am using as `otherKamilioIP on kamailioA the
kamailioB IP address and vice versa.</div>
<div><br>
</div>
<div>I can clearly see in Wireshark, that the SIP messages are
routed correctly but I am getting 401 Unauthorized which is
sent from kamailioA to kamailioB and then from kamailioB to
UA1.</div>
<div><br>
</div>
<div><br>
</div>
<div>I printed value of `auth_check` following this <a
moz-do-not-send="true"
href="http://lists.sip-router.org/pipermail/sr-users/2014-November/085851.html"><a class="moz-txt-link-freetext" href="http://lists.sip-router.org/pipermail/sr-users/2014-November/085851.html">http://lists.sip-router.org/pipermail/sr-users/2014-November/085851.html</a></a>
and I am getting return code of `-1` which is according to the
documentation <a moz-do-not-send="true"
href="http://kamailio.org/docs/modules/4.2.x/modules/auth_db.html#auth_db.f.www_authenticate">http://kamailio.org/docs/modules/4.2.x/modules/auth_db.html#auth_db.f.www_authenticate</a>
the GENERIC ERROR.</div>
<div><br>
</div>
<div>I don't know what to do next. Does anyone encounter this
kind of error before?</div>
<div><br>
</div>
<div><br>
</div>
<div>Thanks in advance</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://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 Advanced Training, Berlin, March 7-9, 2016 - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a></pre>
</body>
</html>