Hi, Someone know if already was created in module_k mi_fifo some protection about this problem?
Best Regards 2011/7/19 Daniel-Constantin Mierla <mico...@gmail.com> > Hello, > > > On 7/8/11 2:46 PM, Bruno Bresciani wrote: > >> Hi, >> >> 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 > destroy() function. > > 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. > > 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. > > Cheers, > Daniel > > -- > Daniel-Constantin Mierla -- http://www.asipto.com > Kamailio Advanced Training, Oct 10-13, Berlin: http://asipto.com/u/kat > http://linkedin.com/in/miconda -- http://twitter.com/miconda > >
_______________________________________________ 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