<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Fira Code";}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.E-MailFormatvorlage18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Hello,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">any errors in the log when you execute the command? Maybe its related to fragmentation of the UDP packet?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">Cheers,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">Henning<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">-- <o:p>
</o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">Henning Westerholt –
</span><span style="mso-fareast-language:EN-US"><a href="https://skalatan.de/blog/"><span lang="EN-GB" style="color:#0563C1">https://skalatan.de/blog/</span></a></span><span lang="EN-GB" style="mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">Kamailio services –
</span><span style="mso-fareast-language:EN-US"><a href="https://gilawa.com/"><span lang="EN-GB" style="color:#0563C1">https://gilawa.com</span></a></span><span lang="EN-GB" style="mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-left:35.4pt"><b>From:</b> sr-users <sr-users-bounces@lists.kamailio.org>
<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 <sr-users@lists.kamailio.org><br>
<b>Subject:</b> [SR-Users] JSON-RPC dgram_socket just part of the output<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Hello,<o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></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?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">command used:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">```<o:p></o:p></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<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">```<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">kamailio related config:<o:p></o:p></p>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:#252526">
<span style="font-size:10.5pt;font-family:"Fira Code";color:#C792EA">modparam</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#EEFFFF">(</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#C3E88D">"jsonrpcs"</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#89DDFF">,</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#EEFFFF">
</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#C3E88D">"fifo_name"</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#89DDFF">,</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#EEFFFF">
</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#C3E88D">"/tmp/kamailio_request.fifo"</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#EEFFFF">)<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:#252526">
<span style="font-size:10.5pt;font-family:"Fira Code";color:#C792EA">modparam</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#EEFFFF">(</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#C3E88D">"jsonrpcs"</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#89DDFF">,</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#EEFFFF">
</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#C3E88D">"transport"</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#89DDFF">,</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#EEFFFF">
</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#F78C6C">6</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#EEFFFF">)<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:#252526">
<span style="font-size:10.5pt;font-family:"Fira Code";color:#C792EA">modparam</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#EEFFFF">(</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#C3E88D">"jsonrpcs"</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#89DDFF">,</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#EEFFFF">
</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#C3E88D">"fifo_mode"</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#89DDFF">,</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#EEFFFF">
</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#F78C6C">0600</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#EEFFFF">)<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:#252526">
<span style="font-size:10.5pt;font-family:"Fira Code";color:#C792EA">modparam</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#EEFFFF">(</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#C3E88D">"jsonrpcs"</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#89DDFF">,</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#EEFFFF">
</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#C3E88D">"fifo_user"</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#89DDFF">,</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#EEFFFF">
</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#C3E88D">"kamailio"</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#EEFFFF">)<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:#252526">
<span style="font-size:10.5pt;font-family:"Fira Code";color:#C792EA">modparam</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#EEFFFF">(</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#C3E88D">"jsonrpcs"</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#89DDFF">,</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#EEFFFF">
</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#C3E88D">"dgram_socket"</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#89DDFF">,</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#EEFFFF">
</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#C3E88D">"udp:MY_INTERNAL_IP_ADDR:8090"</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#EEFFFF">)<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:#252526">
<span style="font-size:10.5pt;font-family:"Fira Code";color:#C792EA">modparam</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#EEFFFF">(</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#C3E88D">"jsonrpcs"</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#89DDFF">,</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#EEFFFF">
</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#C3E88D">"dgram_timeout"</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#89DDFF">,</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#EEFFFF">
</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#F78C6C">2000</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#EEFFFF">)<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt;line-height:14.25pt;background:#252526">
<span style="font-size:10.5pt;font-family:"Fira Code";color:#C792EA">modparam</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#EEFFFF">(</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#C3E88D">"jsonrpcs"</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#89DDFF">,</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#EEFFFF">
</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#C3E88D">"pretty_format"</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#89DDFF">,</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#EEFFFF">
</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#F78C6C">1</span><span style="font-size:10.5pt;font-family:"Fira Code";color:#EEFFFF">)<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">output:<o:p></o:p></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="Bild_x0020_1" src="cid:image001.png@01D8B85E.AB953A70"><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Thanks<o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>