<div dir="ltr">Hi Rumen,<div style><br></div><div style>Can you tell how are you creating users in your &quot;sip&quot; table? Are you sure that the passwords are calculated using the real/domain part of the SIP User definition? </div>
<div style><br></div><div style>Also ensure that your auth_db module has multidomain(use-domain) modparam enabled and if you&#39;re using your own table coloumn to store user&#39;s domain part then edit the modparam to use that particular coloumn (domain_coloumn)</div>
<div style><br></div><div style>Thanks,</div><div style>Sammy</div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jan 29, 2013 at 2:52 AM, Rumen Mihailov <span dir="ltr">&lt;<a href="mailto:zealas1662@gmail.com" target="_blank">zealas1662@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi guys,<br>
<br>
I&#39;ve baning my head for the last 6 7 days with something that have to<br>
be universally simple but obviously for me it is not, so please do<br>
help.<br>
<br>
I have the following setup.<br>
<br>
xx.xx.xx.xx (real IP 1:1 NAT) -&gt; 10.2.47.201<br>
<br>
Kamailio listens on 10.2.47.201<br>
I have setup a domain <a href="http://xxx.itradebg.com" target="_blank">xxx.itradebg.com</a> and I&#39;ve made the appropriate<br>
records in the DNS.<br>
I have inserted the domain <a href="http://xxx.itradebg.com" target="_blank">xxx.itradebg.com</a> in the domain table in the<br>
database and kamctl domain show shows the correct thing.<br>
<br>
Now when I try to register <a href="mailto:999@xxx.itradebg.com">999@xxx.itradebg.com</a> I get Request timed out<br>
<br>
I have this in my config:<br>
        if (is_method(&quot;REGISTER&quot;) || from_uri==myself)<br>
        {<br>
                if (!auth_check(&quot;$fd&quot;, &quot;sip&quot;, &quot;1&quot;)) {<br>
                        auth_challenge(&quot;$fd&quot;, &quot;0&quot;);<br>
                        exit;<br>
                }<br>
        }<br>
        if (from_uri!=myself &amp;&amp; uri!=myself)<br>
        {<br>
<br>
                if(lookup_domain(&quot;$fd&quot;, &quot;@from.uri.host&quot;)){<br>
                        xlog(&quot;LOCAL DOMAIN -&gt; REGISTER&quot;);<br>
                        exit;<br>
                }<br>
                else{<br>
                        xlog(&quot;L_WARN&quot;,&quot;FROM NOT LOCAL&quot;);<br>
                        sl_send_reply(&quot;403&quot;,&quot;Sorry mate not relaying&quot;);<br>
                        exit;<br>
                }<br>
        }<br>
<br>
By the time of writing this I realised that this should be all<br>
rewritten to this only, as the second check is useless:<br>
<br>
        if (is_method(&quot;REGISTER&quot;) || from_uri==myself)<br>
        {<br>
                if (!auth_check(&quot;$fd&quot;, &quot;sip&quot;, &quot;1&quot;)) {<br>
                        auth_challenge(&quot;$fd&quot;, &quot;0&quot;);<br>
                        exit;<br>
                }<br>
        }<br>
<br>
However I get 401 Unauthorized. The previous setup was giving me 408 -<br>
Request Timed out...<br>
<br>
I am pretty sure I have the passwords correct.<br>
<br>
What I cannot understand is why authentication fails ?!<br>
<br>
Also, how do I set kamailio to print debug output ?<br>
debug=9<br>
log_stderror=no<br>
<br>
This is what I have in the .conf file. /var/log/messages seems to only<br>
have what I have printed with xlog... (think)<br>
<br>
I am really out of ideas... perhaps I need some sleep.<br>
<br>
Anyway any input is helpful guys.<br>
<br>
Thanks,<br>
Rumen<br>
<a href="http://itradebg.com" target="_blank">http://itradebg.com</a><br>
<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>
</blockquote></div><br></div>