<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Great!</p>
<p>Note that kamctl in v5.0 can also do rpc commands via jsonrpcs
module and might be better as the output is JSON format (and can
be parsed easier with some tools), while kamcmd uses ctl module
and the output is not always a valid JSON.</p>
<p>Also, you may want to look at kamcli, if you haven't heard of it
yet, it provides more flexibility in interacting with kamailio:</p>
<p> - <a class="moz-txt-link-freetext" href="https://github.com/kamailio/kamcli">https://github.com/kamailio/kamcli</a></p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 05.07.17 11:28, Arek Łazarczyk
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:a91b8081a33e235a338faf96b7365f4d@lazarczyk.org.pl">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<p>Works like a charm :)</p>
<p>thank you.</p>
<p> </p>
<p>W dniu 2017-07-05 10:41, Daniel-Constantin Mierla napisał(a):</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left:
#1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<p>Hello,</p>
<p>indeed, it makes auto-conversion to integer. You have to
prefix with s:, like:</p>
<p><span>kamcmd dlg.profile_get_size caller s:004</span></p>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 05.07.17 10:04, Arek Łazarczyk
wrote:</div>
<blockquote type="cite" style="padding: 0 0.4em; border-left:
#1010ff 2px solid; margin: 0">
<p>Hi,</p>
<p>I have a problem with kamcmd, for now i use kamctl fifo
profile_get_size to get dialogs count to pass to nrpe and
futher to nagios.</p>
<p>Since fifo is deprecated, and i want to migrate to kamailio
v5.0, i must change my method of counting dialogs to kamcmd
dlg.profile_get_size.</p>
<p>Problem is that i have dialog profiles values starting with
0, so <span>kamctl fifo profile_get_size caller 004 returns
correct vaule, but kamcmd dlg.profile_get_size caller 004
returns 0, i think that kamcmd converts 004 to just 4 on
fly. </span></p>
<p><span>Is there any way to prevent such behavior ? </span></p>
<p> </p>
<p><span>Thx4help in advance.</span></p>
<p><span>Best regards,</span></p>
<p><span>AŁ.</span></p>
<p> </p>
<div> </div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre>_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org" moz-do-not-send="true">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature">--
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" moz-do-not-send="true">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com" moz-do-not-send="true">www.asipto.com</a>
Kamailio World Conference - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com" moz-do-not-send="true">www.kamailioworld.com</a></pre>
</blockquote>
<p> </p>
<div> </div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</body>
</html>