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
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to