<div dir="ltr">Hello,<div><br></div><div>No, in Wireshark I also see just a part of the output, which is not the full JSON object, so the problem is somewhere in Kamailio.</div><div>You can try to replicate this by yourself when will have a chance. The version I'm using is: version: kamailio 5.6.0 (x86_64/linux) b552a2</div><div><br></div><div>Thanks.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 25 Aug 2022 at 14:13, Henning Westerholt <<a href="mailto:hw@gilawa.com">hw@gilawa.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail-msg-7394459642840428267">





<div lang="DE" style="overflow-wrap: break-word;">
<div class="gmail-m_-7394459642840428267WordSection1">
<p class="MsoNormal"><span>Hello,<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">if you see in wireshark that all data gets delivered from Kamailio, maybe it’s a problem with the “nc” client?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Cheers,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Henning<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">-- <u></u>
<u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Henning Westerholt –
</span><span><a href="https://skalatan.de/blog/" target="_blank"><span lang="EN-GB" style="color:rgb(5,99,193)">https://skalatan.de/blog/</span></a></span><span lang="EN-GB"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Kamailio services –
</span><span><a href="https://gilawa.com/" target="_blank"><span lang="EN-GB" style="color:rgb(5,99,193)">https://gilawa.com</span></a></span><span lang="EN-GB"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm">
<p class="MsoNormal" style="margin-left:35.4pt"><b>From:</b> Ilie Soltanici <<a href="mailto:iliusha.md@gmail.com" target="_blank">iliusha.md@gmail.com</a>>
<br>
<b>Sent:</b> Thursday, August 25, 2022 1:12 PM<br>
<b>To:</b> Henning Westerholt <<a href="mailto:hw@gilawa.com" target="_blank">hw@gilawa.com</a>>; Henning Westerholt <<a href="mailto:hw@gilawa.com" target="_blank">hw@gilawa.com</a>><br>
<b>Cc:</b> Kamailio (SER) - Users Mailing List <<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>><br>
<b>Subject:</b> Re: [SR-Users] JSON-RPC dgram_socket just part of the output<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-left:35.4pt"><u></u> <u></u></p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><a href="mailto:hw@skalatan.de" target="_blank">@Henning Westerholt</a> ,<u></u><u></u></p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Not sure that it's related to the UDP fragmentation because in Wireshark I can see some packets coming from the server, yes they are fragmented but I can't understand why just part of them arrive at the client.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><img border="0" width="562" height="101" style="width: 5.8541in; height: 1.052in;" id="gmail-m_-7394459642840428267Bild_x0020_1" src="cid:182d53f70ec4cff311"><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">In the Kamailio logs there are no warnings or errors, just some debug messages:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">```<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Aug 25 09:48:49 svr[25699]: DEBUG: ctl [io_listener.c:518]: handle_stream_read(): bytes processed: 40<br>
Aug 25 09:48:49 svr[25699]: DEBUG: ctl [io_listener.c:495]: handle_stream_read(): handle_stream read: eof on /var/run/kamailio/kamailio_ctl<br>
Aug 25 09:48:49 svr[25699]: DEBUG: ctl [../../core/io_wait.h:600]: io_watch_del(): DBG: io_watch_del (0x7f0a6b972340, 22, -1, 0x10) fd_no=4 called<br>
Aug 25 09:48:50 svr[25699]: DEBUG: ctl [../../core/io_wait.h:375]: io_watch_add(): processing io_watch_add(0x7f0a6b972340, 22, 3, 0x1f0f350) - fd_no=3<br>
Aug 25 09:48:50 svr[25699]: DEBUG: ctl [io_listener.c:442]: handle_new_connect(): handle_stream read: new connection (1) on /var/run/kamailio/kamailio_ctl<br>
Aug 25 09:48:50 svr[25699]: DEBUG: ctl [io_listener.c:498]: handle_stream_read(): bytes read: 18<br>
Aug 25 09:48:50 svr[25699]: DEBUG: ctl [io_listener.c:518]: handle_stream_read(): bytes processed: 18<br>
Aug 25 09:48:50 svr[25699]: DEBUG: ctl [io_listener.c:498]: handle_stream_read(): bytes read: 18<br>
Aug 25 09:48:50 svr[25699]: DEBUG: ctl [io_listener.c:518]: handle_stream_read(): bytes processed: 18<br>
Aug 25 09:48:50 svr[25699]: DEBUG: ctl [io_listener.c:498]: handle_stream_read(): bytes read: 21<br>
Aug 25 09:48:50 svr[25699]: DEBUG: ctl [io_listener.c:518]: handle_stream_read(): bytes processed: 21<br>
Aug 25 09:48:50 svr[25699]: DEBUG: ctl [io_listener.c:498]: handle_stream_read(): bytes read: 21<br>
Aug 25 09:48:50 svr[25699]: DEBUG: ctl [io_listener.c:518]: handle_stream_read(): bytes processed: 21<br>
Aug 25 09:48:50 svr[25699]: DEBUG: ctl [io_listener.c:498]: handle_stream_read(): bytes read: 25<br>
Aug 25 09:48:50 svr[25699]: DEBUG: ctl [io_listener.c:518]: handle_stream_read(): bytes processed: 25<br>
Aug 25 09:48:50 svr[25699]: DEBUG: ctl [io_listener.c:495]: handle_stream_read(): handle_stream read: eof on /var/run/kamailio/kamailio_ctl<br>
Aug 25 09:48:50 svr[25699]: DEBUG: ctl [../../core/io_wait.h:600]: io_watch_del(): DBG: io_watch_del (0x7f0a6b972340, 22, -1, 0x10) fd_no=4 called<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">```<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Thanks.<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:35.4pt"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">On Thu, 25 Aug 2022 at 07:43, Henning Westerholt <<a href="mailto:hw@gilawa.com" target="_blank">hw@gilawa.com</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
Hello,<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:35.4pt">
 <u></u><u></u></p>
<p class="MsoNormal" style="margin-left:35.4pt">
<span lang="EN-GB">any errors in the log when you execute the command? Maybe its related to fragmentation of the UDP packet?</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:35.4pt">
<span lang="EN-GB"> </span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:35.4pt">
<span lang="EN-GB">Cheers,</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:35.4pt">
<span lang="EN-GB"> </span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:35.4pt">
<span lang="EN-GB">Henning</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:35.4pt">
<span lang="EN-GB"> </span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:35.4pt">
<span lang="EN-GB">-- </span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:35.4pt">
<span lang="EN-GB">Henning Westerholt – </span><a href="https://skalatan.de/blog/" target="_blank"><span lang="EN-GB" style="color:rgb(5,99,193)">https://skalatan.de/blog/</span></a><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:35.4pt">
<span lang="EN-GB">Kamailio services – </span><a href="https://gilawa.com/" target="_blank"><span lang="EN-GB" style="color:rgb(5,99,193)">https://gilawa.com</span></a><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:35.4pt">
<span lang="EN-GB"> </span><u></u><u></u></p>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm">
<p class="MsoNormal" style="margin-left:70.8pt">
<b>From:</b> sr-users <<a href="mailto:sr-users-bounces@lists.kamailio.org" target="_blank">sr-users-bounces@lists.kamailio.org</a>>
<b>On Behalf Of </b>Ilie Soltanici<br>
<b>Sent:</b> Thursday, August 25, 2022 2:13 AM<br>
<b>To:</b> Kamailio (SER) - Users Mailing List <<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>><br>
<b>Subject:</b> [SR-Users] JSON-RPC dgram_socket just part of the output<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-left:70.8pt">
 <u></u><u></u></p>
<div>
<p class="MsoNormal" style="margin-left:70.8pt">
Hello,<u></u><u></u></p>
<div>
<p class="MsoNormal" style="margin-left:70.8pt">
 <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:70.8pt">
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?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:70.8pt">
 <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:70.8pt">
command used:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:70.8pt">
```<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:70.8pt">
echo '{"jsonrpc": "2.0", "method": "dispatcher.list", "reply_name": "kamailio_reply_fifo", "id": 1}' | nc -u 192.168.1.1 8090<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:70.8pt">
```<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:70.8pt">
 <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:70.8pt">
kamailio related config:<u></u><u></u></p>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-left:70.8pt;line-height:14.25pt;background:rgb(37,37,38)">
<span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(199,146,234)">modparam</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(238,255,255)">(</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(195,232,141)">"jsonrpcs"</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(137,221,255)">,</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(238,255,255)">
</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(195,232,141)">"fifo_name"</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(137,221,255)">,</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(238,255,255)">
</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(195,232,141)">"/tmp/kamailio_request.fifo"</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(238,255,255)">)</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:70.8pt;line-height:14.25pt;background:rgb(37,37,38)">
<span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(199,146,234)">modparam</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(238,255,255)">(</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(195,232,141)">"jsonrpcs"</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(137,221,255)">,</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(238,255,255)">
</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(195,232,141)">"transport"</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(137,221,255)">,</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(238,255,255)">
</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(247,140,108)">6</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(238,255,255)">)</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:70.8pt;line-height:14.25pt;background:rgb(37,37,38)">
<span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(199,146,234)">modparam</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(238,255,255)">(</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(195,232,141)">"jsonrpcs"</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(137,221,255)">,</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(238,255,255)">
</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(195,232,141)">"fifo_mode"</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(137,221,255)">,</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(238,255,255)">
</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(247,140,108)">0600</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(238,255,255)">)</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:70.8pt;line-height:14.25pt;background:rgb(37,37,38)">
<span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(199,146,234)">modparam</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(238,255,255)">(</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(195,232,141)">"jsonrpcs"</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(137,221,255)">,</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(238,255,255)">
</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(195,232,141)">"fifo_user"</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(137,221,255)">,</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(238,255,255)">
</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(195,232,141)">"kamailio"</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(238,255,255)">)</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:70.8pt;line-height:14.25pt;background:rgb(37,37,38)">
<span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(199,146,234)">modparam</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(238,255,255)">(</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(195,232,141)">"jsonrpcs"</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(137,221,255)">,</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(238,255,255)">
</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(195,232,141)">"dgram_socket"</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(137,221,255)">,</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(238,255,255)">
</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(195,232,141)">"udp:MY_INTERNAL_IP_ADDR:8090"</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(238,255,255)">)</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:70.8pt;line-height:14.25pt;background:rgb(37,37,38)">
<span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(199,146,234)">modparam</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(238,255,255)">(</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(195,232,141)">"jsonrpcs"</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(137,221,255)">,</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(238,255,255)">
</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(195,232,141)">"dgram_timeout"</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(137,221,255)">,</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(238,255,255)">
</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(247,140,108)">2000</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(238,255,255)">)</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:70.8pt;line-height:14.25pt;background:rgb(37,37,38)">
<span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(199,146,234)">modparam</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(238,255,255)">(</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(195,232,141)">"jsonrpcs"</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(137,221,255)">,</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(238,255,255)">
</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(195,232,141)">"pretty_format"</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(137,221,255)">,</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(238,255,255)">
</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(247,140,108)">1</span><span style="font-size:10.5pt;font-family:"Fira Code";color:rgb(238,255,255)">)</span><u></u><u></u></p>
</div>
</div>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-left:70.8pt">
 <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:70.8pt">
output:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:70.8pt">
<img border="0" width="542" height="413" style="width: 5.6458in; height: 4.302in;" id="gmail-m_-7394459642840428267gmail-m_-353062239782443443gmail-m_-4358569772333991475Bild_x0020_1" src="cid:182d53f70ec5b16b22"><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:70.8pt">
 <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:70.8pt">
Thanks<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>

</div></blockquote></div>