[OpenSIPS-Users] sql cacher reload via mi http
sagar malam
sagarmalam at gmail.com
Tue Dec 29 13:05:13 EST 2020
Hello All,
I am trying to reload sql cacher via mi http but i am not able to get
syntax right. I tried this
Request
curl -H "Content-Type: application/json" -X POST -d
'{"jsonrpc":"2.0","method":"sql_cacher_reload","params":[["push_subscription_cache","54b2e840197c8824"]],"id":10}'
http://127.0.0.1:43000/opensips_mi
Response :
{"jsonrpc":"2.0","error":{"code":-32602,"message":"Invalid params"},"id":10}
and this
Request :
curl -H "Content-Type: application/json" -X POST -d
'{"jsonrpc":"2.0","method":"sql_cacher_reload push_subscription_cache
54b2e840197c8824","id":10}' http://127.0.0.1:43000/opensips_mi
Response :
{"jsonrpc":"2.0","error":{"code":-32601,"message":"Method not
found"},"id":10}
but none is working for me.
Here push_subscription_cache is id and 54b2e840197c8824 is key
Please help me on this
https://opensips.org/docs/modules/3.0.x/sql_cacher.html#mi_sql_cacher_reload
--
Thanks,
Sagar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20201229/92f05a2f/attachment.html>
More information about the Users
mailing list