[SR-Users] JSON-RPC dgram_socket just part of the output

Henning Westerholt hw at gilawa.com
Thu Aug 25 08:42:57 CEST 2022


Hello,

any errors in the log when you execute the command? Maybe its related to fragmentation of the UDP packet?

Cheers,

Henning

--
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com<https://gilawa.com/>

From: sr-users <sr-users-bounces at lists.kamailio.org> On Behalf Of Ilie Soltanici
Sent: Thursday, August 25, 2022 2:13 AM
To: Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>
Subject: [SR-Users] JSON-RPC dgram_socket just part of the output

Hello,

I'm trying to get the dispatcher status from kamailio through the UDP datagram but for some reason, it is getting just part of the output. Is there any buffer that I have to increase to get the complete output?

command used:
```
echo '{"jsonrpc": "2.0", "method": "dispatcher.list", "reply_name": "kamailio_reply_fifo", "id": 1}' | nc -u 192.168.1.1 8090
```

kamailio related config:
modparam("jsonrpcs", "fifo_name", "/tmp/kamailio_request.fifo")
modparam("jsonrpcs", "transport", 6)
modparam("jsonrpcs", "fifo_mode", 0600)
modparam("jsonrpcs", "fifo_user", "kamailio")
modparam("jsonrpcs", "dgram_socket", "udp:MY_INTERNAL_IP_ADDR:8090")
modparam("jsonrpcs", "dgram_timeout", 2000)
modparam("jsonrpcs", "pretty_format", 1)

output:
[cid:image001.png at 01D8B85E.AB953A70]

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20220825/086ab363/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 131222 bytes
Desc: image001.png
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20220825/086ab363/attachment-0001.png>


More information about the sr-users mailing list