<div dir="ltr"><div><div><div>Hello,<br></div><div><br></div><div>I invoke kamcmd inside Freeswitch Lua Scripts and right now i am getting segmentation fault any time.</div><div>This started to happen after I upgraded kamailio from 4.4 to 5.0.4 .</div><br></div>I tried to analyse the core dump and it give me the next information.<br></div>When I execute on the console, the command works.<br><br><div>Am I doing something wrong?</div><div>There is any alternative or better way to communicate with kamailio?</div><div><br></div><div>Thanks in advance</div><div><br></div><div>Best regards,</div><div>Jose Lopes<br></div><div><div><div><div><br></div><div><br></div><div>Core was generated by `/usr/sbin/kamcmd -s udp:<a href="http://127.0.0.1:2050">127.0.0.1:2050</a> uac.reg_refresh s:29010017'.<br>Program terminated with signal SIGSEGV, Segmentation fault.<br>#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>, <br>    cookie=<error reading variable: Cannot access memory at address 0x7ffec894a608>) at kamcmd.c:591<br>591    kamcmd.c: No such file or directory.<br>(gdb) bt<br>#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>, <br>    cookie=<error reading variable: Cannot access memory at address 0x7ffec894a608>) at kamcmd.c:591<br>#1  0x0000000000403eee in run_binrpc_cmd (s=3, cmd=0x7ffec898a8d0, fmt=0x0) at kamcmd.c:924<br>#2  0x0000000000404499 in run_cmd (s=3, cmd=0x7ffec898a8d0, format=0x0) at kamcmd.c:1068<br>#3  0x00000000004073aa in main (argc=5, argv=0x7ffec898d1e8) at kamcmd.c:2114<br><br></div><div><br></div><div><br></div><div><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-size:12.8px"><div dir="ltr" style="font-size:12.8px"><table style="color:rgb(80,0,80);font-size:12.8px;font-family:Arial,Helvetica,sans-serif;width:600px;border-collapse:collapse"><tbody><tr><td style="font-size:13px;color:black"><table style="color:rgb(34,34,34);font-size:12.7273px;font-family:Arial,Helvetica,sans-serif;width:600px;border-collapse:collapse"><tbody><tr><td style="line-height:15px"><br></td></tr><tr><td style="line-height:15px"><br></td></tr><tr style="display:block;width:600px;margin-top:10px"><td style="width:600px;padding:0px"><br></td></tr></tbody></table></td></tr></tbody></table></div></div><div style="font-size:12.8px"><br></div></div></div></div></div></div></div></div></div>
</div></div></div></div></div>