<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div><br></div><div>Hello Chirag,<br></div><div><br></div><div>Ad 1.    When making a test call do an ngrep on the kamailio: ngrep -d any -qt -W byline port 5060<br></div><div>             That information can help you to do more troubleshooting.</div><div><br></div><div>Ad 2.    Enable the debug in the kamailion config : #!define WITH_DEBUG<br></div><div><br></div><div>            Then start kamailio again, you will see a lot of information that will show why  kamailio wont start.</div><div><br></div><div>You could also show the config as you have it now, it's hard to provide any guidance with just the info you are providing...<br></div><div>Yes, I know, there are kamailio guru's that have enough on just two words, but there are only a few guru's.<br></div><div><br></div><div>Good luck.<br></div><div><br></div><div>Gertjan<br></div><div><br></div><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>Van: </b>"Chirag Desai" <c.desai@rxhost.co.uk><br><b>Aan: </b>sr-users@lists.sip-router.org<br><b>Verzonden: </b>Maandag 27 januari 2014 20:33:42<br><b>Onderwerp: </b>[SR-Users] Kamailio with Asterisk<br><div><br></div><div dir="ltr"><div><div><div><div><div><div><div><div><div>Hi all,<br><div><br></div></div>I'm wondering if someone can help me get a little unstuck.<br><div><br></div></div>I followed the guide here: <a href="http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb" target="_blank" data-mce-href="http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb">http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb</a><br> <br></div>And I now have kamailio running, but I have two problems.<br><div><br></div>Number 1<br></div>When I do kamctl add user password and make two users, they register fine. But any attempt to call between the users times out.<br> <br></div>Number 2<br></div>Anytime I have my kamailo.cfg file begin as<br><pre class=""><span class="">#!KAMAILIO</span>
 
<span class="">#!define WITH_MYSQL</span>
<span class="">#!define WITH_AUTH</span>
<span class="">#!define WITH_USRLOCDB</span>
<span class="">#!define WITH_ASTERISK<br></span></pre><div><br></div><pre class=""><span class="">I am unable to start kamctl. I get the following error.<br></span></pre>ERROR: PID file /var/run/kamailio.pid does not exist -- Kamailio start failed<br> <br></div>If I run kamailio I get<br>ERROR: bad config file (3 errors)<br><div><br></div></div>The moment I remove the define lines at the start, kamctl starts fine, but I can't authenticate with asterisk.<br><div><br></div></div>Any ideas?<br> <br>Thanks<br><div><br></div>Chirag<br></div><br>_______________________________________________<br>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>sr-users@lists.sip-router.org<br>http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users<br></div><div><br></div></div></body></html>