[SR-Users] Kamailio json_rpc isn't reloading htable data from database into memory

José Seabra joseseabra4 at gmail.com
Fri Feb 23 15:46:18 CET 2018

Hello there,
I'm using xHTTP and json_rpc module to receive http instructions to reload
htable's from database to memory.

The way i'm calling the json_rpc in kamailio script is the following:

                $var(json_rpc)='{"jsonrpc": "2.0", "method":
"htable.reload", "id":"htable"}';

The execution of this command doesn't give any errors, but the changes made
on htable database  weren't transmitted to the memory.

I have attached the kamailio log where you can see that there isn't any
erros on json_rpc execution  during reload instructions, the strange thing
here is that the htable module only says:

2018-02-23 14:33:44.968  DEBUG: htable [ht_db.c:96]: ht_db_open_con():
database connection opened successfully

doesn't report if the reload was success or not.

Those logs attached were printed with kamailio debug set to level 4.

The kamailio version is 4.4.2.

Thank you

Best Regards
José Seabra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180223/2462bd95/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kamailio_json_rpc
Type: application/octet-stream
Size: 9852 bytes
Desc: not available
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180223/2462bd95/attachment.obj>

More information about the sr-users mailing list