Works like a charm :) 

thank you. 

W dniu 2017-07-05 10:41, Daniel-Constantin Mierla napisał(a): 

> 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
>> [email protected]
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users [1]
> 
> -- 
> Daniel-Constantin Mierla
> www.twitter.com/miconda [2] -- www.linkedin.com/in/miconda [3]
> Kamailio Advanced Training - www.asipto.com [4]
> Kamailio World Conference - www.kamailioworld.com [5]

 

Links:
------
[1] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
[2] http://www.twitter.com/miconda
[3] http://www.linkedin.com/in/miconda
[4] http://www.asipto.com
[5] http://www.kamailioworld.com
_______________________________________________
Kamailio (SER) - Users Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to