[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sr-users
Subject:    Re: [SR-Users] Kamailio with Asterisk
From:       davy <davy.van.de.moere () gmail ! com>
Date:       2014-01-28 13:53:10
Message-ID: F1A7AA8E-96C5-438F-9089-044A9DC3ADDC () gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


If you have your kamailio.cfg in /etc/kamailio/ you could get a closer reason why \
kamailio isn’t starting by:

kamailio -cf /etc/kamailio/kamailio.cfg

and do a tail -n100 /var/log/syslog 



Op 28-jan.-2014, om 14:49 heeft Gertjan Wolzak <g.wolzak@foize.com> het volgende \
geschreven:

> 
> Hello Chirag,
> 
> Ad 1.    When making a test call do an ngrep on the kamailio: ngrep -d any -qt -W \
> byline port 5060 That information can help you to do more troubleshooting.
> 
> Ad 2.    Enable the debug in the kamailion config : #!define WITH_DEBUG
> 
> Then start kamailio again, you will see a lot of information that will show why  \
> kamailio wont start. 
> 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... Yes, I know, there are kamailio \
> guru's that have enough on just two words, but there are only a few guru's. 
> Good luck.
> 
> Gertjan
> 
> Van: "Chirag Desai" <c.desai@rxhost.co.uk>
> Aan: sr-users@lists.sip-router.org
> Verzonden: Maandag 27 januari 2014 20:33:42
> Onderwerp: [SR-Users] Kamailio with Asterisk
> 
> Hi all,
> 
> I'm wondering if someone can help me get a little unstuck.
> 
> I followed the guide here: \
> http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb 
> And I now have kamailio running, but I have two problems.
> 
> Number 1
> When I do kamctl add user password and make two users, they register fine. But any \
> attempt to call between the users times out. 
> Number 2
> Anytime I have my kamailo.cfg file begin as
> #!KAMAILIO
> 
> #!define WITH_MYSQL
> #!define WITH_AUTH
> #!define WITH_USRLOCDB
> #!define WITH_ASTERISK
> 
> I am unable to start kamctl. I get the following error.
> ERROR: PID file /var/run/kamailio.pid does not exist -- Kamailio start failed
> 
> If I run kamailio I get
> ERROR: bad config file (3 errors)
> 
> The moment I remove the define lines at the start, kamctl starts fine, but I can't \
> authenticate with asterisk. 
> Any ideas?
> 
> Thanks
> 
> Chirag
> 
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
> 
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[Attachment #5 (unknown)]

<html><head><meta http-equiv="Content-Type" content="text/html \
charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: \
space; -webkit-line-break: after-white-space;">If you have your kamailio.cfg in \
/etc/kamailio/ you could get a closer reason why kamailio isn’t starting \
by:<div><br></div><div>kamailio -cf \
/etc/kamailio/kamailio.cfg</div><div><br></div><div>and do a tail -n100 \
/var/log/syslog&nbsp;</div><div><br></div><div><br></div><div><br><div><div>Op \
28-jan.-2014, om 14:49 heeft Gertjan Wolzak &lt;<a \
href="mailto:g.wolzak@foize.com">g.wolzak@foize.com</a>&gt; het volgende \
geschreven:</div><br class="Apple-interchange-newline"><blockquote \
type="cite"><div><div style="font-family: 'times new roman', 'new york', times, \
serif; font-size: 12pt;"><div><br></div><div>Hello \
Chirag,<br></div><div><br></div><div>Ad 1.&nbsp;&nbsp;&nbsp;&nbsp;When making a test \
call do an ngrep on the kamailio: ngrep -d any -qt -W byline port \
5060<br></div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
That information can help you to do more troubleshooting.</div><div><br></div><div>Ad \
2.&nbsp;&nbsp;&nbsp; Enable the debug in the kamailion config : #!define \
WITH_DEBUG<br></div><div><br></div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
Then start kamailio again, you will see a lot of information that will show why&nbsp; \
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="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" &lt;<a \
href="mailto:c.desai@rxhost.co.uk">c.desai@rxhost.co.uk</a>&gt;<br><b>Aan: </b><a \
href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><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-a \
sterisk-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> &nbsp;
<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/l \
istinfo/sr-users<br></div><div><br></div></div></div>_______________________________________________<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>http: \
//lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users<br></blockquote></div><br></div></body></html>




_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic