[OpenSIPS-Users] pu_subsribe MI

Barnaby Ritchley barnyritchley at hotmail.com
Thu Nov 5 10:16:41 EST 2020


Hi all,

Im encountering an issue when trying to invoke a presence subscription using pua and pua_mi, eg:

opensips-cli -x mi pua_subscribe sip:opensips at 192.168.0.1 sip:2000 at 10.10.10.1 presence 3600

Returns:
ERROR: command 'pua_subscribe' returned: -32000: Server error

Running opensips in debug doesn’t throw anything in the logs, but Ive tried using jsonrpc which gives me a slightly different result:

curl -X POST \
    --header 'Content-Type: application/json' \
    --header 'Accept: application/json' \
    -d '{"jsonrpc": "2.0", "method": "pua_subscribe", "params": {"presentity_uri": "sip:opensips at 192.168.0.1", "watcher_uri": "sip:2000 at 10.10.10.1", "event": "presence", "expires": "3600" }, "id": 10}' http://127.0.0.1:8888/json/pua <http://127.0.0.1:8888/json/pua>

Returns:
{"jsonrpc":"2.0","error":{"code":-32602,"message":"Invalid params"},"id":10}

And the console shows:
DBG:mi_http:mi_http_run_mi_cmd: got command=pua_subscribe
ERROR:core:handle_mi_request: Invalid parameters



Any hints or help would be really appreciated as I cant work out what isn’t right


Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20201105/2709c79b/attachment.html>


More information about the Users mailing list