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@tst:~/tst/test# kamcmd htable.seti tst_sim integer_limit "2147483647"

root@tst:~/tst/test# kamcmd htable.seti tst_sim integer_exceeded_limit "2147483648"

root@tst:~/tst/test# kamcmd htable.sets tst_sim integer_as_string_valid "2147483647"

root@tst:~/tst/test# kamcmd htable.sets tst_sim integer_as_string_invalid "2147483648"

root@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