Hello, rpc funcions: reg_info,reg_enable,reg_disable not work if l_uuid is number and size > than 10,
for 1234567890 is O.K. and for 12345678901 try to find 18446744073170328629.
kamcmd uac.reg_enable l_uuid 1234567890 -- found kamcmd uac.reg_enable l_uuid 12345678901 -- not found
and if number start with zero then zero is cut. kamcmd uac.reg_enable l_uuid 0034567890 -- 34567890
I add debug to uac_reg.c 1615 LM_ERR("START %.*s,%.*s\n", attr.len,attr.s,val.len, val.s);
Thaks
Hello,
this looks like kamcmd auto-convert -- if you give a parameter that is number and you want to be considered string, then prefix it with s: - like:
kamcmd uac.reg_enable l_uuid s:0034567890
See also 'kamcmd -h'.
Cheers, Daniel
On 11/02/15 14:06, kovarik@odorik.cz wrote:
Hello, rpc funcions: reg_info,reg_enable,reg_disable not work if l_uuid is number and size > than 10,
for 1234567890 is O.K. and for 12345678901 try to find 18446744073170328629.
kamcmd uac.reg_enable l_uuid 1234567890 -- found kamcmd uac.reg_enable l_uuid 12345678901 -- not found
and if number start with zero then zero is cut. kamcmd uac.reg_enable l_uuid 0034567890 -- 34567890
I add debug to uac_reg.c 1615 LM_ERR("START %.*s,%.*s\n", attr.len,attr.s,val.len, val.s);
Thaks
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users