Someone know if already was created in module_k mi_fifo some protection
about this problem?
2011/7/19 Daniel-Constantin Mierla <miconda(a)gmail.com>
On 7/8/11 2:46 PM, Bruno Bresciani wrote:
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't work anymore. Why when I try running kamailio when
already exist one, it remove de file kamailio_fifo?
I can't find the part of source code that file kamailio_fifo is
removed... Someone knows?
the fifo file is removed in modules_k/mi_fifo/mi_fifo.c - in mod_init() or
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
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.
Quick solution is to make the test in init.d script or the script you use
to start kamailio.
Daniel-Constantin Mierla -- http://www.asipto.com
Kamailio Advanced Training, Oct 10-13, Berlin: http://asipto.com/u/kat