Hello, have you loaded pua_rpc module?
Cheers, Daniel On 14.11.24 11:57, dries--- via sr-users wrote: > Hi all > > I've installed a (pretty old) presence_dfks module that allows setting the > presence using the following command: > kamctl fifo pua_publish sip:[email protected] 3600 as-feature-event > application/x-as-feature-event+xml . . . "<?xml version='1.0' > encoding='ISO-8859-1'?><ForwardingEvent><device><notKnown/></device><forwardingType>forwardImmediate</forwardingType><forwardStatus>true</forwardStatus><forwardTo>1234</forwardTo></ForwardingEvent>" > > The "pua_mi" module was however removed in Kamailio and jsonrpcs/xmlrpcs are > supposed to be an alternative. > > I've tried both the following calls, but neither does recognize the > pua_publish/pua.publish as a valid method. > > Attempt with jsonrpc: > curl -H "Content-Type: application/json" -X POST -d '{"jsonrpc": "2.0", > "method": "pua.publish", "params": [""], "id":1}' > https://sbctest.tel.redacted.xx:5061/RPC/ > > ERROR: jsonrpcs [jsonrpcs_mod.c:1422]: ki_jsonrpcs_dispatch(): method > callback not found [pua.publish] > > Attempt with xmlrpc: > curl -H "Content-Type: text/xml" -X POST -d '<?xml version="1.0" > ?><methodCall><methodName>pua_publish</methodName><params><param><value><string>sip:[email protected]</string></value></param><param><value><string>7776000</string></value></param><param><value><string>as-feature-event</string></value></param><param><value><string>application/as-feature-event</string></value></param><param><value><string>.</string></value></param><param><value><string>a.1481534683.13958.6.7</string></value></param><param><value><string>sip:127.0.0.1:5080;transport=tcp</string></value></param><param><value><string>P-Flags: > 0</string></value></param><param><value><string>Messages-Waiting: > yesMessage-Account: sip:[email protected]: 2/0 > (0/0)</string></value></param></params></methodCall>' > https://sbctest.tel.redacted.xx:5061/RPC/ > > <?xml version="1.0"?> > <methodResponse> > <fault> > <value> > <struct> > <member> > <name>faultCode</name> > <value><int>500</int></value> > </member> > <member> > <name>faultString</name> > <value><string>Method Not Found</string></value> > </member> > </struct> > </value> > </fault> > > Anyone who had some luck in this matter? > > Best regards, > Dries > __________________________________________________________ > Kamailio - Users Mailing List - Non Commercial Discussions > To unsubscribe send an email to [email protected] > Important: keep the mailing list in the recipients, do not reply only to the > sender! > Edit mailing list options or unsubscribe: -- Daniel-Constantin Mierla (@ asipto.com) twitter.com/miconda -- linkedin.com/in/miconda Kamailio Consultancy, Training and Development Services -- asipto.com __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
