<div dir="ltr">Hi again,<div style><br></div><div style>If you&#39;re usng another table then user with plain password can get registered given then domain coloumn is mentioned in the auth_db modparam. Also turn on the use_domain param for usrloc module as well so it saves the users with their domain part in AOR. </div>
<div style><br></div><div style>I don&#39;t know (or found any) the logs you&#39;re talking about. </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 1:06 PM, 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">
Hello Sammy,<br>
<br>
thank you for your input.<br>
<br>
sip table is in another database and I use asterisk database as per<br>
the example here:<br>
<a href="http://kb.asipto.com/asterisk:realtime:kamailio-3.3.x-asterisk-10.7.0-astdb" target="_blank">http://kb.asipto.com/asterisk:realtime:kamailio-3.3.x-asterisk-10.7.0-astdb</a><br>
<div class="im"><br>
&gt; Are you sure<br>
&gt; that the passwords are calculated using the real/domain part of the SIP User<br>
&gt; definition?<br>
<br>
</div>This however I have no clue how to check.<br>
<br>
Indeed the option use_domain was not enabled. I will check later today.<br>
<br>
Sammy, what about the debug logging ? do you have any clue about that ?<br>
<br>
Regards,<br>
Rumen<br>
<div class="HOEnZb"><div class="h5"><br>
On 29 January 2013 08:20, SamyGo &lt;<a href="mailto:govoiper@gmail.com">govoiper@gmail.com</a>&gt; wrote:<br>
&gt; Hi Rumen,<br>
&gt;<br>
&gt; Can you tell how are you creating users in your &quot;sip&quot; table? Are you sure<br>
&gt; that the passwords are calculated using the real/domain part of the SIP User<br>
&gt; definition?<br>
&gt;<br>
&gt; Also ensure that your auth_db module has multidomain(use-domain) modparam<br>
&gt; enabled and if you&#39;re using your own table coloumn to store user&#39;s domain<br>
&gt; part then edit the modparam to use that particular coloumn (domain_coloumn)<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Sammy<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Jan 29, 2013 at 2:52 AM, Rumen Mihailov &lt;<a href="mailto:zealas1662@gmail.com">zealas1662@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi guys,<br>
&gt;&gt;<br>
&gt;&gt; I&#39;ve baning my head for the last 6 7 days with something that have to<br>
&gt;&gt; be universally simple but obviously for me it is not, so please do<br>
&gt;&gt; help.<br>
&gt;&gt;<br>
&gt;&gt; I have the following setup.<br>
&gt;&gt;<br>
&gt;&gt; xx.xx.xx.xx (real IP 1:1 NAT) -&gt; 10.2.47.201<br>
&gt;&gt;<br>
&gt;&gt; Kamailio listens on 10.2.47.201<br>
&gt;&gt; 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>
&gt;&gt; records in the DNS.<br>
&gt;&gt; I have inserted the domain <a href="http://xxx.itradebg.com" target="_blank">xxx.itradebg.com</a> in the domain table in the<br>
&gt;&gt; database and kamctl domain show shows the correct thing.<br>
&gt;&gt;<br>
&gt;&gt; Now when I try to register <a href="mailto:999@xxx.itradebg.com">999@xxx.itradebg.com</a> I get Request timed out<br>
&gt;&gt;<br>
&gt;&gt; I have this in my config:<br>
&gt;&gt;         if (is_method(&quot;REGISTER&quot;) || from_uri==myself)<br>
&gt;&gt;         {<br>
&gt;&gt;                 if (!auth_check(&quot;$fd&quot;, &quot;sip&quot;, &quot;1&quot;)) {<br>
&gt;&gt;                         auth_challenge(&quot;$fd&quot;, &quot;0&quot;);<br>
&gt;&gt;                         exit;<br>
&gt;&gt;                 }<br>
&gt;&gt;         }<br>
&gt;&gt;         if (from_uri!=myself &amp;&amp; uri!=myself)<br>
&gt;&gt;         {<br>
&gt;&gt;<br>
&gt;&gt;                 if(lookup_domain(&quot;$fd&quot;, &quot;@from.uri.host&quot;)){<br>
&gt;&gt;                         xlog(&quot;LOCAL DOMAIN -&gt; REGISTER&quot;);<br>
&gt;&gt;                         exit;<br>
&gt;&gt;                 }<br>
&gt;&gt;                 else{<br>
&gt;&gt;                         xlog(&quot;L_WARN&quot;,&quot;FROM NOT LOCAL&quot;);<br>
&gt;&gt;                         sl_send_reply(&quot;403&quot;,&quot;Sorry mate not relaying&quot;);<br>
&gt;&gt;                         exit;<br>
&gt;&gt;                 }<br>
&gt;&gt;         }<br>
&gt;&gt;<br>
&gt;&gt; By the time of writing this I realised that this should be all<br>
&gt;&gt; rewritten to this only, as the second check is useless:<br>
&gt;&gt;<br>
&gt;&gt;         if (is_method(&quot;REGISTER&quot;) || from_uri==myself)<br>
&gt;&gt;         {<br>
&gt;&gt;                 if (!auth_check(&quot;$fd&quot;, &quot;sip&quot;, &quot;1&quot;)) {<br>
&gt;&gt;                         auth_challenge(&quot;$fd&quot;, &quot;0&quot;);<br>
&gt;&gt;                         exit;<br>
&gt;&gt;                 }<br>
&gt;&gt;         }<br>
&gt;&gt;<br>
&gt;&gt; However I get 401 Unauthorized. The previous setup was giving me 408 -<br>
&gt;&gt; Request Timed out...<br>
&gt;&gt;<br>
&gt;&gt; I am pretty sure I have the passwords correct.<br>
&gt;&gt;<br>
&gt;&gt; What I cannot understand is why authentication fails ?!<br>
&gt;&gt;<br>
&gt;&gt; Also, how do I set kamailio to print debug output ?<br>
&gt;&gt; debug=9<br>
&gt;&gt; log_stderror=no<br>
&gt;&gt;<br>
&gt;&gt; This is what I have in the .conf file. /var/log/messages seems to only<br>
&gt;&gt; have what I have printed with xlog... (think)<br>
&gt;&gt;<br>
&gt;&gt; I am really out of ideas... perhaps I need some sleep.<br>
&gt;&gt;<br>
&gt;&gt; Anyway any input is helpful guys.<br>
&gt;&gt;<br>
&gt;&gt; Thanks,<br>
&gt;&gt; Rumen<br>
&gt;&gt; <a href="http://itradebg.com" target="_blank">http://itradebg.com</a><br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
&gt;&gt; <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
&gt;&gt; <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>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
&gt; <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
&gt; <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>
&gt;<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>
</div></div></blockquote></div><br></div>