<font size="2"><font face="tahoma,sans-serif">Thanks Daniel...i appreciate your help, i will let you know if i could solve the problem!<br></font></font><br><div class="gmail_quote">2011/2/3 Daniel-Constantin Mierla <span dir="ltr">&lt;<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">What version of kamailio are you using? If it is 3.1, then load debugger module and enable cfg trace. Then you will see what lines in the configuration file are executed.<br>

<br>
For older versions (also for 3.1), you can add xlog() lines in your config to troubleshoot it.<br>
<br>
Cheers,<br>
Daniel<div><div></div><div class="h5"><br>
<br>
On 2/3/11 3:46 PM, Klaus Darilion wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Restart Kamailio. Make sure that it is it really restarts:<br>
<br>
/etc/init.d/kamailio stop<br>
ps aux|grep kamailio<br>
# if there are some processes left, kill them<br>
killall kamailio<br>
<br>
ps aux|grep kamailio<br>
# if there are still some processes left, kill them harder!<br>
killall -9 kamailio<br>
<br>
/etc/init.d/kamailio start<br>
<br>
<br>
make sure Kamailio is really using your configuration file<br>
<br>
klaus<br>
<br>
<br>
Am 03.02.2011 11:12, schrieb Danny Dias:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello my friends,<br>
<br>
I&#39;m trying to configure authentication on my Kamailio and is not working at<br>
all :(<br>
<br>
I&#39;ve added the following to the script to make it work: (but it doesn&#39;t)<br>
<br>
...<br>
loadmodule &quot;auth.so&quot;<br>
loadmodule &quot;auth_db.so&quot;<br>
...<br>
modparam(&quot;usrloc&quot;, &quot;db_url&quot;,<br>
                         &quot;mysql://kamailio:kamailiorw@localhost/kamailio&quot;)<br>
modparam(&quot;auth_db&quot;, &quot;calculate_ha1&quot;, yes)<br>
modparam(&quot;auth_db&quot;, &quot;password_column&quot;, &quot;password&quot;)<br>
modparam(&quot;auth_db&quot;, &quot;db_url&quot;,<br>
                         &quot;mysql://kamailio:kamailiorw@localhost/kamailio&quot;)<br>
modparam(&quot;auth_db&quot;, &quot;load_credentials&quot;, &quot;&quot;)<br>
...<br>
         if (!(method==&quot;REGISTER&quot;)&amp;&amp;  from_uri==myself) /*no multidomain<br>
version*/<br>
         {<br>
                 if (!proxy_authorize(&quot;&quot;, &quot;subscriber&quot;)) {<br>
                         proxy_challenge(&quot;&quot;, &quot;0&quot;);<br>
                         exit;<br>
                 }<br>
                 if (!db_check_from()) {<br>
                         sl_send_reply(&quot;403&quot;,&quot;Forbidden auth ID&quot;);<br>
                         exit;<br>
                 }<br>
                 consume_credentials();<br>
         }<br>
...<br>
<br>
         if (is_method(&quot;REGISTER&quot;))<br>
         {<br>
                 # authenticate the REGISTER requests (uncomment to enable<br>
auth)<br>
                 if (!www_authorize(&quot;&quot;, &quot;subscriber&quot;))<br>
                 {<br>
                         www_challenge(&quot;&quot;, &quot;0&quot;);<br>
                         exit;<br>
                 }<br>
                 ##<br>
                 if (!db_check_to())<br>
                 {<br>
                         sl_send_reply(&quot;403&quot;,&quot;Forbidden auth ID&quot;);<br>
                         exit;<br>
                 }<br>
                 if (!save(&quot;location&quot;))<br>
                         sl_reply_error();<br>
                 exit;<br>
         }<br>
<br>
<br>
But is not working at all...take a look:<br>
<br>
#<br>
U 2011/02/03 09:31:04.402891 <a href="http://172.30.140.22:48752" target="_blank">172.30.140.22:48752</a> -&gt;  <a href="http://172.30.140.8:5060" target="_blank">172.30.140.8:5060</a><br>
REGISTER sip:172.30.140.8 SIP/2.0<br>
Via: SIP/2.0/UDP <a href="http://172.30.140.22:48752" target="_blank">172.30.140.22:48752</a><br>
;branch=z9hG4bK-d87543-9a54af22967ae417-1--d87543-;rport<br>
Max-Forwards: 70<br>
Contact:&lt;sip:1000@172.30.140.22:48752;rinstance=fcade2df86ce0ab8&gt;<br>
To: &quot;1000&quot;&lt;<a href="mailto:sip%3A1000@172.30.140.8" target="_blank">sip:1000@172.30.140.8</a>&lt;<a href="mailto:sip%253A1000@172.30.140.8" target="_blank">sip%3A1000@172.30.140.8</a>&gt;&gt;<br>
From: &quot;1000&quot;&lt;<a href="mailto:sip%3A1000@172.30.140.8" target="_blank">sip:1000@172.30.140.8</a>&lt;<a href="mailto:sip%253A1000@172.30.140.8" target="_blank">sip%3A1000@172.30.140.8</a>&gt;&gt;;tag=cd3e2323<br>

Call-ID: MmU0YjM1NThiNTg0ZjhiNGM4ODA4ZmU1YWFiYjBmNTc.<br>
CSeq: 1 REGISTER<br>
Expires: 3600<br>
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE,<br>
INFO<br>
User-Agent: X-Lite release 1011s stamp 41150<br>
Content-Length: 0<br>
<br>
#<br>
U 2011/02/03 09:31:04.404039 <a href="http://172.30.140.8:5060" target="_blank">172.30.140.8:5060</a> -&gt;  <a href="http://172.30.140.22:48752" target="_blank">172.30.140.22:48752</a><br>
SIP/2.0 200 OK<br>
Via: SIP/2.0/UDP <a href="http://172.30.140.22:48752" target="_blank">172.30.140.22:48752</a><br>
;branch=z9hG4bK-d87543-9a54af22967ae417-1--d87543-;rport=48752<br>
To: &quot;1000&quot;&lt;<a href="mailto:sip%3A1000@172.30.140.8" target="_blank">sip:1000@172.30.140.8</a>&lt;<a href="mailto:sip%253A1000@172.30.140.8" target="_blank">sip%3A1000@172.30.140.8</a>&gt;<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
;tag=c97b4d1cb1f3d0da549e06a8d482ef63.34dc<br>
</blockquote>
From: &quot;1000&quot;&lt;<a href="mailto:sip%3A1000@172.30.140.8" target="_blank">sip:1000@172.30.140.8</a>&lt;<a href="mailto:sip%253A1000@172.30.140.8" target="_blank">sip%3A1000@172.30.140.8</a>&gt;&gt;;tag=cd3e2323<br>

Call-ID: MmU0YjM1NThiNTg0ZjhiNGM4ODA4ZmU1YWFiYjBmNTc.<br>
CSeq: 1 REGISTER<br>
Contact:&lt;<a href="http://sip:1000@172.30.140.22:48752" target="_blank">sip:1000@172.30.140.22:48752</a><br>
;rinstance=fcade2df86ce0ab8&gt;;expires=3600<br>
Content-Length: 0<br>
<br>
Am i missing something in my configuration?<br>
<br>
Thanks in advance!!!<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">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>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">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>
<br></div></div><font color="#888888">
-- <br>
Daniel-Constantin Mierla<br>
<a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
<br>
</font></blockquote></div><br>