<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<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:<br>
</div>
<blockquote type="cite"
cite="mid:92cd4dce9dbba2cd574bce0c36bc009e@lazarczyk.org.pl">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<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 wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</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>