Hello,
maybe you can have a look at the "kamcmd" command sources (you can find them inside the kamailio source tree as well) for some examples. There is also the binrpc.h header file in the ctl module directory, as indicated from the module docs.
Cheers,
Henning
-----Original Message----- From: sadik.oualla.mohamed@gmail.com sadik.oualla.mohamed@gmail.com Sent: Freitag, 10. März 2023 11:15 To: sr-users@lists.kamailio.org Subject: [SR-Users] Re: Increment in number of "200" responses while calling procedures over jsonrpc with http
Dear Henning,
Thank you for your previous message and for pointing me to the "ctl" module documentation. I have successfully configured the module to support both TCP and UDP protocols using the following lines:
`modparam("ctl", "binrpc", unix:/run/kamailio/kamailio_ctl") modparam("ctl", "binrpc", "udp:*:8888") modparam("ctl", "binrpc", "tcp:*:3333")`
However, I am experiencing issues when attempting to send messages to the Kamailio server using a socket script. Specifically, when I send a message to the server using either TCP or UDP, I receive a malformed response containing "bad request" with some other symbols. I suspect that I need to enable some special encoding to allow the Kamailio server to properly understand the procedure being executed.
Could you please provide me with more information on how to properly encode the messages that are being sent to the Kamailio server via the socket script? Any guidance you can provide would be greatly appreciated.
Thank you for your time and assistance.
Best regards, __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: