<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><div data-html-editor-font-wrapper="true" style="font-family: arial, sans-serif; font-size: 13px;"><p>Hello,<br><br>what is your operating system and shell program?<br><br>I tested on macos/bsd, the logs (with kamailio -E -ddd ...) are:<br><br>"""<br># ./utils/kamctl/kamctl ping sip:10.10.10.10:5060<br><br>28(49832) DEBUG: jsonrpcs [jsonrpcs_fifo.c:457]: jsonrpc_fifo_server(): preparing to execute fifo jsonrpc [{"jsonrpc": "2.0", "method": "tm.t_uac_start", "params": ["OPTIONS", "sip:10.10.10.10:5060", ".", ".", "From:sip:daemon@Thunders-MacBook-Air.fritz.box<br>To:<sip:10.10.10.10:5060><br>Contact:sip:daemon@Thunders-MacBook-Air.fritz.box<br>"], "reply_name": "kamailio_receiver_49915", "id": 49915}]<br>28(49832) DEBUG: <core> [core/parser/parse_hname2.c:294]: parse_sip_header_name(): parsed header name [From] type 4<br>28(49832) DEBUG: <core> [core/parser/parse_hname2.c:294]: parse_sip_header_name(): parsed header name [To] type 3<br>28(49832) DEBUG: <core> [core/parser/parse_addr_spec.c:864]: parse_addr_spec(): end of header reached, state=10<br>28(49832) DEBUG: <core> [core/parser/msg_parser.c:173]: get_hdr_field(): <To> [24]; uri=[sip:10.10.10.10:5060]<br>28(49832) DEBUG: <core> [core/parser/msg_parser.c:176]: get_hdr_field(): to body (24)[<sip:10.10.10.10:5060><br>], to tag (0)[]<br>28(49832) DEBUG: <core> [core/parser/parse_hname2.c:294]: parse_sip_header_name(): parsed header name [Contact] type 7<br>28(49832) DEBUG: <core> [core/parser/parse_addr_spec.c:864]: parse_addr_spec(): end of header reached, state=9<br>28(49832) DEBUG: tm [rpc_uac.c:209]: get_hfblock(): one more hf processed<br>28(49832) DEBUG: tm [uac.c:455]: t_uac_prepare(): next_hop=<sip:10.10.10.10:5060><br>28(49832) DEBUG: tm [uac.c:158]: dlg2hash(): hashid 23931<br>28(49832) DEBUG: tm [uac.c:683]: send_prepared_request_impl(): uac: 0x104f4af10 branch: 0 to 10.10.10.10:5060<br>28(49832) DEBUG: <core> [core/onsend.c:50]: run_onsend(): required parameters are not available - ignoring<br>28(49832) DEBUG: jsonrpcs [jsonrpcs_mod.c:423]: jsonrpc_send(): sending response with body: 0x0 - 200 OK<br>28(49832) DEBUG: jsonrpcs [jsonrpcs_fifo.c:469]: jsonrpc_fifo_server(): command executed - result: [kamailio_receiver_49915] [200] [0x7f9018f042c0] [{<br> "jsonrpc": "2.0",<br> "result": {<br> },<br> "id": 49915<br>}]<br>{<br> "jsonrpc": "2.0",<br> "result": {<br> },<br> "id": 49915<br>}<br>"""<br><br>All seems ok.<br><br>Cheers,<br>Daniel<br><br>January 18, 2021 2:49 PM, "Julia Bo" <<a target="_blank" tabindex="-1" href="mailto:%22Julia%20Bo%22%20<juliabo@gmail.com>">juliabo@gmail.com</a>> wrote:</p><blockquote><div><div><div dir="ltr">Hello,<div>I sent files from the master branch.</div><div>After "kamctl ping sip:<a target="_blank" rel="external nofollow noopener noreferrer" tabindex="-1" href="http://10.10.10.10:5060">10.10.10.10:5060</a>" i have received:</div><div></div><div><pre style='font-family: "Courier New",Courier,monospace,arial,sans-serif;margin-top: 0px;margin-bottom: 0px;white-space: pre-wrap;color: rgb(0,0,0);font-size: 14px'>/usr/local/lib64/kamailio//kamctl/kamctl.rpcfifo: line 149: syntax error near unexpected token `}' /usr/local/lib64/kamailio//kamctl/kamctl.rpcfifo: line 149: `}' /usr/local/sbin/kamctl: line 261: =: command not found</pre><pre style='font-family: "Courier New",Courier,monospace,arial,sans-serif;margin-top: 0px;margin-bottom: 0px;white-space: pre-wrap;color: rgb(0,0,0);font-size: 14px'> </pre><pre style="margin-top: 0px;margin-bottom: 0px;white-space: pre-wrap;color: rgb(0,0,0)"><font face="arial, sans-serif" style>Thank you,</font></pre><pre style="margin-top: 0px;margin-bottom: 0px;white-space: pre-wrap;color: rgb(0,0,0)"><font face="arial, sans-serif" style>Julia</font></pre></div></div> <div><div dir="ltr">On Mon, Jan 18, 2021 at 11:42 AM Daniel-Constantin Mierla <<a target="_blank" rel="external nofollow noopener noreferrer" tabindex="-1" href="mailto:miconda@gmail.com">miconda@gmail.com</a>> wrote:</div> <blockquote style="margin: 0px 0px 0px 0.8ex;border-left: 1px solid rgb(204,204,204);padding-left: 1ex"><div dir="ltr">Hello,<div></div><div>can you try with the current master branch or with the patch from the next commit?</div><div></div><div>* <a target="_blank" rel="external nofollow noopener noreferrer" tabindex="-1" href="https://github.com/kamailio/kamailio/commit/1c66f6a1a5d04c33f1912609a36729b06b6eebd7">https://github.com/kamailio/kamailio/commit/1c66f6a1a5d04c33f1912609a36729b06b6eebd7</a></div><div></div><div>If it works fine, then I will backport.</div><div></div><div>Cheers,<br>Daniel</div></div> <div><div dir="ltr">On Mon, Jan 18, 2021 at 8:23 AM Daniel-Constantin Mierla <<a target="_blank" rel="external nofollow noopener noreferrer" tabindex="-1" href="mailto:daniel@kamailio.org">daniel@kamailio.org</a>> wrote:</div><blockquote style="margin: 0px 0px 0px 0.8ex;border-left: 1px solid rgb(204,204,204);padding-left: 1ex"><div><div style="font-family: arial,sans-serif;font-size: 13px"><p>Hello,<br><br>Indeed, it seems broken, as the new lines at the end of headers break input in new parameters of a shell function inside the kamcli tool.<br><br>I will try to look into it.<br><br>Cheers,<br>Daniel<br><br>January 17, 2021 7:24 PM, "Julia Bo" <<a target="_blank" rel="external nofollow noopener noreferrer" tabindex="-1" href="mailto:%22Julia%20Bo%22%20%3Cjuliabo@gmail.com%3E">juliabo@gmail.com</a>> wrote:</p><blockquote><div><div><div dir="ltr">Hello,<div><div>Kamailio 5.4.3 has been installed from source.</div><div>"kamctl ping sip:<a rel="external nofollow noopener noreferrer" target="_blank" tabindex="-1" href="http://10.10.10.10:5060">10.10.10.10:5060</a>" is sent from the command line.</div><div></div><div>Errors:</div><div>Jan 12 15:59:24 KAM-TEST /usr/local/kam/kamailio[66587]: ERROR: jsonrpcs [jsonrpcs_mod.c:1352]: jsonrpc_exec_ex(): invalid json doc [[{"jsonrpc": "2.0", "method": "tm.t_uac", "], "reply_name": "kamailio_receiver_85791", "id": 85791}]].", "From:sip:daemon@KAM-TEST</div><div>Jan 12 15:59:24 KAM-TEST /usr/local/kam/kamailio[66587]: ERROR: jsonrpcs [jsonrpcs_fifo.c:461]: jsonrpc_fifo_server(): failed to execute the json document from fifo stream</div></div><div></div><div>This command is working in 4.4.</div><div>Has anyone tried using kamctl ping in 5.4?</div><div>Is it a bug in 5.4.3 ?</div><div></div><div>Thank you,</div><div>Julia.</div></div></div></div></blockquote><br><br>--<br>Daniel-Constantin Mierla<br><a target="_blank" rel="external nofollow noopener noreferrer" tabindex="-1" href="http://www.kamailio.org">www.kamailio.org</a> -- <a target="_blank" rel="external nofollow noopener noreferrer" tabindex="-1" href="http://www.asipto.com">www.asipto.com</a></div></div>_______________________________________________<br>Kamailio (SER) - Users Mailing List<br><a target="_blank" rel="external nofollow noopener noreferrer" tabindex="-1" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br><a rel="external nofollow noopener noreferrer" target="_blank" tabindex="-1" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a></blockquote></div> <div></div>--<div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Daniel-Constantin Mierla - <a target="_blank" rel="external nofollow noopener noreferrer" tabindex="-1" href="https://www.asipto.com">https://www.asipto.com</a></div><div><a target="_blank" rel="external nofollow noopener noreferrer" tabindex="-1" href="https://twitter.com/miconda">https://twitter.com/miconda</a> - <a target="_blank" rel="external nofollow noopener noreferrer" tabindex="-1" href="https://www.linkedin.com/in/miconda">https://www.linkedin.com/in/miconda</a></div><div>Kamailio Advanced Training - <a target="_blank" rel="external nofollow noopener noreferrer" tabindex="-1" href="https://www.asipto.com/u/kat">https://www.asipto.com/u/kat</a></div></div></div></div></div></div></div> _______________________________________________<br>Kamailio (SER) - Users Mailing List<br><a target="_blank" rel="external nofollow noopener noreferrer" tabindex="-1" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br><a rel="external nofollow noopener noreferrer" target="_blank" tabindex="-1" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a></blockquote></div></div></div></blockquote><signature><br><br>--<br>Daniel-Constantin Mierla<br>www.kamailio.org -- www.asipto.com</signature></div></body></html>