Hello,

I invoke kamcmd inside Freeswitch Lua Scripts and right now i am getting segmentation fault any time.
This started to happen after I upgraded kamailio from 4.4 to 5.0.4 .

I tried to analyse the core dump and it give me the next information.
When I execute on the console, the command works.

Am I doing something wrong?
There is any alternative or better way to communicate with kamailio?

Thanks in advance

Best regards,
Jose Lopes


Core was generated by `/usr/sbin/kamcmd -s udp:127.0.0.1:2050 uac.reg_refresh s:29010017'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x000000000040340d in send_binrpc_cmd (s=<error reading variable: Cannot access memory at address 0x7ffec894a60c>, cmd=<error reading variable: Cannot access memory at address 0x7ffec894a600>,
    cookie=<error reading variable: Cannot access memory at address 0x7ffec894a608>) at kamcmd.c:591
591    kamcmd.c: No such file or directory.
(gdb) bt
#0  0x000000000040340d in send_binrpc_cmd (s=<error reading variable: Cannot access memory at address 0x7ffec894a60c>, cmd=<error reading variable: Cannot access memory at address 0x7ffec894a600>,
    cookie=<error reading variable: Cannot access memory at address 0x7ffec894a608>) at kamcmd.c:591
#1  0x0000000000403eee in run_binrpc_cmd (s=3, cmd=0x7ffec898a8d0, fmt=0x0) at kamcmd.c:924
#2  0x0000000000404499 in run_cmd (s=3, cmd=0x7ffec898a8d0, format=0x0) at kamcmd.c:1068
#3  0x00000000004073aa in main (argc=5, argv=0x7ffec898d1e8) at kamcmd.c:2114