[SR-Users] Incorrect value when setting number like values in Htable using Kamcmd
Tony - Telecomy
tony at telecomy.net
Tue Sep 5 08:37:33 CEST 2017
Hello,
I'm having an issue setting phone numbers values in htable using kamcmd when
the phone number is above the integer range 2147483647.
Initially I planned to set the values as strings but this is not working as
expected as well.
Please find below some examples:
root at tst:~/tst/test# kamcmd htable.seti tst_sim integer_limit "2147483647"
root at tst:~/tst/test# kamcmd htable.seti tst_sim integer_exceeded_limit
"2147483648"
root at tst:~/tst/test# kamcmd htable.sets tst_sim integer_as_string_valid
"2147483647"
root at tst:~/tst/test# kamcmd htable.sets tst_sim integer_as_string_invalid
"2147483648"
root at tst:~/tst/test# kamcmd htable.dump tst_sim | grep -A 1 integer
name: integer_as_string_valid
value: 2147483647
--
name: integer_limit
value: 2147483647
--
name: integer_as_string_invalid
value: 18446744071562067968
--
name: integer_exceeded_limit
value: -2147483648
my ctl params are as follow:
modparam("ctl", "binrpc", "unix:/var/run/kamailio/kamailio_ctl")
modparam("ctl", "binrpc_max_body_size", 1024)
modparam("ctl", "binrpc_struct_max_body_size", 1024)
Thanks,
Tony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170905/17e71573/attachment.html>
More information about the sr-users
mailing list