<div dir="ltr"><a class="gmail_plusreply" id="m_-353062239782443443plusReplyChip-0" href="mailto:hw@skalatan.de" target="_blank">@Henning Westerholt</a> ,<br><div><br></div><div>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.</div><div><br></div><div><img src="cid:ii_l78y0fzu1" alt="image.png" width="562" height="101"><br></div><div><br></div><div>In the Kamailio logs there are no warnings or errors, just some debug messages:</div><div><br></div><div>```</div><div>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<br></div><div>```</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 07:43, Henning Westerholt <<a href="mailto:hw@gilawa.com" target="_blank">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>





<div lang="DE">
<div>
<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">any errors in the log when you execute the command? Maybe its related to fragmentation of the UDP packet?<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> 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:35.4pt"><u></u> <u></u></p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Hello,<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">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:35.4pt"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">command used:<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">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: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">kamailio related config:<u></u><u></u></p>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;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)">)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;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)">)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;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)">)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;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)">)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;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)">)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;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)">)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;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)">)<u></u><u></u></span></p>
</div>
</div>
</div>
</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">output:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><img border="0" width="542" height="413" style="width: 5.6458in; height: 4.302in;" id="gmail-m_-353062239782443443gmail-m_-4358569772333991475Bild_x0020_1" src="cid:182d432577c4cff311"><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>
</div>
</div>

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