I suppose - kamailio crashes. You can run in console on same server:<div>tail -f /var/log/syslog</div><div>or you can tail file where sys logs are stored.</div><div>There - you can see some debugs, and you can check discussion about kamailio crashes and how to get dump file.</div>
<div>This way you will identify problem and then either you will fix your cfg file, or you can report bug.<br><br><div class="gmail_quote">On Thu, Feb 23, 2012 at 6:01 PM, Fatima Chahrour~Vanrise Support <span dir="ltr">&lt;<a href="mailto:fchahrour@vanrise.com">fchahrour@vanrise.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal">Hi,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I am newly experiencing kamailio 3.2. I have installed kamailio and MySQL and tried the test call from 1 PC(x-lite) to another PC(x-lite) and ended successfully.<u></u><u></u></p><p class="MsoNormal">
<u></u> <u></u></p><p class="MsoNormal">Now moving further, I have configured dynamic routing module and applied needed parameters and scripts to finally be able to start kamailio without any issue. Also I set a testing scenario in the related database tables<u></u><u></u></p>
<p class="MsoNormal">BUT my problem is that whenever am trying to call the predefined prefix (961) from x-lite am getting a ‘calling’ message on it and then request timeout where I find that kamailio has stopped running. I kamctrl start again and call 961 then get calling so I wait and kamailio stps again. Below is the script used in the routing logic and database record.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Any help to achieve a successful call is highly appreciated.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">dr_gatways:       3, 1, &#39;192.168.111.15&#39;, 0, &#39;&#39;, &#39;&#39;, 2, &#39;PC1&#39;<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">dr_groups:          2, &#39;.*&#39;, &#39;.*&#39;, 0, &#39;Anyone&#39;<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">dr_gw_lists:       2, &#39;3&#39;, &#39;Test Call&#39;<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">dr_rules:              2, &#39;0&#39;, &#39;961&#39;, &#39;&#39;, 0, &#39;1&#39;, &#39;#2&#39;, &#39;Lebanon Fix&#39;<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal" style="line-height:13.5pt"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">####### Routing Logic ########<u></u><u></u></span></p><p class="MsoNormal" style="line-height:13.5pt">
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"># main request routing logic<u></u><u></u></span></p><p class="MsoNormal" style="line-height:13.5pt"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">route{<u></u><u></u></span></p>
<p class="MsoNormal" style="line-height:13.5pt"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"><u></u> <u></u></span></p><p class="MsoNormal" style="line-height:13.5pt"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">  if (is_method(&quot;INVITE&quot;)) {<u></u><u></u></span></p>
<p class="MsoNormal" style="line-height:13.5pt"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">    setflag(1); # do accounting<u></u><u></u></span></p><p class="MsoNormal" style="line-height:13.5pt"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">    route(4); # Call our dynamic route.<u></u><u></u></span></p>
<p class="MsoNormal" style="line-height:13.5pt"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">  }<u></u><u></u></span></p><p class="MsoNormal" style="line-height:13.5pt"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">}<u></u><u></u></span></p>
<p class="MsoNormal">…<u></u><u></u></p><p class="MsoNormal">…<u></u><u></u></p><p class="MsoNormal">…<u></u><u></u></p><p class="MsoNormal">                <u></u><u></u></p><pre style="line-height:13.5pt"><span style>route[4] {<u></u><u></u></span></pre>
<pre style="line-height:13.5pt"><span style>  if (!do_routing(&quot;0&quot;)) {<u></u><u></u></span></pre><pre style="line-height:13.5pt"><span style>    send_reply(&quot;503&quot;, &quot;No Rules matching the URI&quot;);<u></u><u></u></span></pre>
<pre style="line-height:13.5pt"><span style>    exit;<u></u><u></u></span></pre><pre style="line-height:13.5pt"><span style>  }<u></u><u></u></span></pre><pre style="line-height:13.5pt"><span style>  if (is_method(&quot;INVITE&quot;)) {<u></u><u></u></span></pre>
<pre style="line-height:13.5pt"><span style>    t_on_failure(&quot;4&quot;);<u></u><u></u></span></pre><pre style="line-height:13.5pt"><span style>  }<u></u><u></u></span></pre><pre style="line-height:13.5pt"><span style>route(RELAY);<u></u><u></u></span></pre>
<pre style="line-height:13.5pt"><span style>}<u></u><u></u></span></pre><p class="MsoNormal">..<u></u><u></u></p><p class="MsoNormal">..<u></u><u></u></p><p class="MsoNormal">..<u></u><u></u></p><pre style="line-height:13.5pt">
<span style>failure_route[4] {<u></u><u></u></span></pre><pre style="line-height:13.5pt"><span style>    if (use_next_gw()) {<u></u><u></u></span></pre><pre style="line-height:13.5pt"><span style>        t_relay();<u></u><u></u></span></pre>
<pre style="line-height:13.5pt"><span style>        exit;<u></u><u></u></span></pre><pre style="line-height:13.5pt"><span style>    } else {<u></u><u></u></span></pre><pre style="line-height:13.5pt"><span style>        t_reply (&quot;503&quot;, &quot;Service not available&quot;);<u></u><u></u></span></pre>
<pre style="line-height:13.5pt"><span style>        exit;<u></u><u></u></span></pre><pre style="line-height:13.5pt"><span style>    }<u></u><u></u></span></pre><pre style="line-height:13.5pt"><span style>}<u></u><u></u></span></pre>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thanks in Advance,<u></u><u></u></p><p class="MsoNormal">F.Chahrour<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p></div></div><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>
<br></blockquote></div><br></div>