[SR-Users] kamcmd dialogs count

Daniel-Constantin Mierla miconda at gmail.com
Wed Jul 5 10:41:50 CEST 2017


Hello,

indeed, it makes auto-conversion to integer. You have to prefix with s:,
like:

kamcmd dlg.profile_get_size caller s:004

Cheers,
Daniel

On 05.07.17 10:04, Arek Łazarczyk wrote:
>
> Hi,
>
> 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.
>
> 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.
>
> Problem is that i have dialog profiles values starting with 0, so
> 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.
>
> Is there any way to prevent such behavior ? 
>
>  
>
> Thx4help in advance.
>
> Best regards,
>
> AŁ.
>
>  
>
>  
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170705/bb795922/attachment.html>


More information about the sr-users mailing list