Hi,<br><br>Someone know if already was created in module_k mi_fifo some protection about this problem?<br><br>Best Regards<br><br><br><div class="gmail_quote">2011/7/19 Daniel-Constantin Mierla <span dir="ltr">&lt;<a href="mailto:miconda@gmail.com" target="_blank">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">Hello,<div><div class="h5"><br>
<br>
On 7/8/11 2:46 PM, Bruno Bresciani wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
Kamailio is running fine, but when I try run again by command line without killing the previous, the kamailio_fifo is removed and functions fifo in kamctl doen&#39;t work anymore. Why when I try running kamailio when already exist one, it remove de file kamailio_fifo?<br>

<br>
I can&#39;t find the part of source code  that file kamailio_fifo is removed... Someone knows?<br>
</blockquote></div></div>
the fifo file is removed in modules_k/mi_fifo/mi_fifo.c - in mod_init() or destroy() function.<br>
<br>
The other day I added a safety check for the case when kamailio is run with -c (config check), as it could have deleted the file as well in case of errors.<br>
<br>
Probably we can code in C some checking whether there is another instance running, by checking the existence of the PID file and the see if that pid is in process table.<br>
<br>
Quick solution is to make the test in init.d script or the script you use to start kamailio.<br>
<br>
Cheers,<br>
Daniel<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
Kamailio Advanced Training, Oct 10-13, Berlin: <a href="http://asipto.com/u/kat" target="_blank">http://asipto.com/u/kat</a><br>
<a href="http://linkedin.com/in/miconda" target="_blank">http://linkedin.com/in/miconda</a> -- <a href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a><br>
<br>
</font></span></blockquote></div><br>