<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi all,<div class=""><br class=""></div><div class="">Im encountering an issue when trying to invoke a presence subscription using pua and pua_mi, eg:</div><div class=""><br class=""></div><div class="">opensips-cli -x mi pua_subscribe <a href="sip:opensips@192.168.0.1" class="">sip:opensips@192.168.0.1</a> <a href="sip:2000@10.10.10.1" class="">sip:2000@10.10.10.1</a> presence 3600</div><div class=""><br class=""></div><div class="">Returns:</div><div class="">ERROR: command 'pua_subscribe' returned: -32000: Server error</div><div class=""><br class=""></div><div class="">Running opensips in debug doesn’t throw anything in the logs, but Ive tried using jsonrpc which gives me a slightly different result:</div><div class=""><br class=""></div><div class=""><div class="">curl -X POST \</div><div class=""> --header 'Content-Type: application/json' \</div><div class=""> --header 'Accept: application/json' \</div><div class=""> -d '{"jsonrpc": "2.0", "method": "pua_subscribe", "params": {"presentity_uri": "<a href="sip:opensips@192.168.0.1" class="">sip:opensips@192.168.0.1</a>", "watcher_uri": "<a href="sip:2000@10.10.10.1" class="">sip:2000@10.10.10.1</a>", "event": "presence", "expires": "3600" }, "id": 10}' <a href="http://127.0.0.1:8888/json/pua" class="">http://127.0.0.1:8888/json/pua</a></div></div><div class=""><br class=""></div><div class="">Returns:</div><div class="">{"jsonrpc":"2.0","error":{"code":-32602,"message":"Invalid params"},"id":10}</div><div class=""><br class=""></div><div class="">And the console shows:</div><div class=""><div class="">DBG:mi_http:mi_http_run_mi_cmd: got command=pua_subscribe</div><div class="">ERROR:core:handle_mi_request: Invalid parameters</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Any hints or help would be really appreciated as I cant work out what isn’t right</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Thanks</div></body></html>