[SR-Users] Using a number as htable key name

Jan Hazenberg jenus at cyberchaos.nl
Thu Aug 3 10:39:17 CEST 2017


Hello,

I'm trying to use a htable to reroute some numbers but when i'm trying 
to use kamcmd to add a entry where the element name is a number instead 
of a string i get a 500 error


kamcmd htable.seti force_number 1234 1
error: 500 - Not enough parameters (htable name, key name and value)

Also with quotes i get the 500 error:
kamcmd htable.seti force_number "1234" 1
error: 500 - Not enough parameters (htable name, key name and value)

But this works:
kamcmd htable.seti force_number a1234 1


Is there a way to escape this so i can use a number as element name?

Regards,

Jan Hazenberg



More information about the sr-users mailing list