i just noticed that my sip-proxy_ctl (alias kamailio_ctl) command has stopped working. it now adds an extra _ctl to the socket file name:
# sip-proxy_ctl ERROR: connect_unix_sock: connect(/tmp/sip-proxy_ctl_ctl): No such file or directory [2]
any idea where that comes from or it is only me, who has this problem? i have not changed anything the command used to work fine earlier.
-- juha
Juha Heinanen writes:
any idea where that comes from or it is only me, who has this problem? i have not changed anything the command used to work fine earlier.
the reason is this change to modules/ctl/ctl_defaults.h done in october:
-#define DEFAULT_CTL_SOCKET "unixs:/tmp/ser_ctl" +#define DEFAULT_CTL_SOCKET "unixs:/tmp/" NAME "_ctl"
i have sip-proxy_ctl as NAME and i have defined in cfg:
modparam("ctl", "binrpc", "unix:/tmp/sip-proxy_ctl")
looks like sercmd.c uses DEFAULT_CTL_SOCKET and if binrpc param defines a new name, there is a conflict between the command and the module.
-- juha
Hi Juha,
hopefully this is fixed by a recent commit, which is in master only for the moment:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=1b58b26b...
The idea was to be able to have the name of ctl file reflecting the name of SIP server flavour. But the sercmd overwrites the NAME define -- the fix handles differently now the sip server name and sercmd tool name.
The plan is to backport it as soon I would have time to test it a bit. If you do it before, feel free to cherry-pick it to 3.2.
Cheers, Daniel
On 11/2/11 2:55 PM, Juha Heinanen wrote:
Juha Heinanen writes:
any idea where that comes from or it is only me, who has this problem? i have not changed anything the command used to work fine earlier.
the reason is this change to modules/ctl/ctl_defaults.h done in october:
-#define DEFAULT_CTL_SOCKET "unixs:/tmp/ser_ctl" +#define DEFAULT_CTL_SOCKET "unixs:/tmp/" NAME "_ctl"
i have sip-proxy_ctl as NAME and i have defined in cfg:
modparam("ctl", "binrpc", "unix:/tmp/sip-proxy_ctl")
looks like sercmd.c uses DEFAULT_CTL_SOCKET and if binrpc param defines a new name, there is a conflict between the command and the module.
-- juha
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
Hello,
On 11/3/11 8:01 AM, Juha Heinanen wrote:
Daniel-Constantin Mierla writes:
hopefully this is fixed by a recent commit, which is in master only for the moment:
daniel,
i tested and, yes, the commit to master fixed the problem. i'll cherry pick it to 3.2.
I cherry-picked another one, since I forgot about the patch committed to ctl module to take in consideration SRNAME when building sercmd -- sercmd includes a .h file from ctl module. Now all should be in 3.2 related to this update.
Cheers, Daniel