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:1000@10.10.99.254 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:jh@sbctest.tel.redacted.xx</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:jh@sbctest.tel.redacted.xxVoice-Message: 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