Hi,
I entered the command "kamailio -v" instead of "kamailio -V". It looks like it starts kamailio again even that it was running.... the problem is that the kamctl_fifo and kamctl_ctl file are gone now. how do i create the files again without restarting kamailio?
Thanks, Uri
Hello,
even if you create it, it is not going to work, because the file descriptor in kamailio points to a different address, the solution is to restart kamailio.
Perhaps the -v has to be replaced with something else, it seems to be a common issue.
Cheers, Daniel
On 12/16/12 2:47 PM, Uri Shacked wrote:
Hi, I entered the command "kamailio -v" instead of "kamailio -V". It looks like it starts kamailio again even that it was running.... the problem is that the kamctl_fifo and kamctl_ctl file are gone now. how do i create the files again without restarting kamailio? Thanks, Uri
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
Am 18.12.2012 09:48, schrieb Daniel-Constantin Mierla:
Hello,
even if you create it, it is not going to work, because the file descriptor in kamailio points to a different address, the solution is to restart kamailio.
Perhaps the -v has to be replaced with something else, it seems to be a common issue.
What about changing Kamailio to first check if the FIFO already exists, and if yes, if it is used by another process (like the 'fuser' utility). If another process already uses the FIFO, Kamailio should exit without touching the FIFO.
regards Klaus
Am 16.12.2012 14:47, schrieb Uri Shacked:
Hi, I entered the command "kamailio -v" instead of "kamailio -V". It looks like it starts kamailio again even that it was running.... the problem is that the kamctl_fifo and kamctl_ctl file are gone now. how do i create the files again without restarting kamailio?
You can not create it (At least I don ot know a workaround).
If you need to access the FIFO you can use the /proc directory to get the file descriptor until Kamailio is restarted.
eg:
1. get the PID of Kamailio and the FD of the FIFO:
# lsof|grep kamailio_fifo kamailio 6505 kamailio 6r FIFO 202,2 0t0 131110 /tmp/kamailio_fifo (deleted) kamailio 6505 kamailio 10w FIFO 202,2 0t0 131110 /tmp/kamailio_fifo (deleted)
2. use FD 6 or 10 of Kamailio's FDs OSER_FIFO=/proc/6505/fd/6 kamctl ......
regards Klaus
thanks, hope to try it soon.
On Wed, Jan 2, 2013 at 8:05 PM, Klaus Darilion <klaus.mailinglists@pernau.at
wrote:
Am 16.12.2012 14:47, schrieb Uri Shacked:
Hi,
I entered the command "kamailio -v" instead of "kamailio -V". It looks like it starts kamailio again even that it was running.... the problem is that the kamctl_fifo and kamctl_ctl file are gone now. how do i create the files again without restarting kamailio?
You can not create it (At least I don ot know a workaround).
If you need to access the FIFO you can use the /proc directory to get the file descriptor until Kamailio is restarted.
eg:
- get the PID of Kamailio and the FD of the FIFO:
# lsof|grep kamailio_fifo kamailio 6505 kamailio 6r FIFO 202,2 0t0 131110 /tmp/kamailio_fifo (deleted) kamailio 6505 kamailio 10w FIFO 202,2 0t0 131110 /tmp/kamailio_fifo (deleted)
- use FD 6 or 10 of Kamailio's FDs
OSER_FIFO=/proc/6505/fd/6 kamctl ......
regards Klaus