Hi All,
I am having difficulty getting pua_publish to issue a NOTIFY when I send
an XMLRPC command to generate a PUBLISH into the presence server.
I have been reading the pua_mi module docs, but I cannot see where I am
going wrong with the following xmlrpc command, please would someone
point me in the correct direction.
I have an XML file which is the basis of the XMLRPC request via curl, I
have attached it to this email for you to view, please would you take a
look and let me know where I am going wrong, I suspect it is my message
body as the pua module complains about the message body being NULL:
Jul 10 17:27:40 reg01 /usr/sbin/kamailio[7736]: ERROR: pua
[add_events.c:125]: pres_process_body(): while parsing xml memory
Jul 10 17:27:40 reg01 /usr/sbin/kamailio[7736]: ERROR: pua
[send_publish.c:650]: send_publish(): while processing body
Jul 10 17:27:40 reg01 /usr/sbin/kamailio[7736]: ERROR: pua
[send_publish.c:652]: send_publish(): NULL body
Jul 10 17:27:40 reg01 /usr/sbin/kamailio[7736]: ERROR: pua_mi
[mi_func.c:290]: mi_pua_publish(): sending publish failed
Kamailio verion is "version: kamailio 4.3.0 (x86_64/linux) c6aa95"
I can issue other XMLRPC commands, urloc lookups method lists and those
work, I just cant see where I am going wrong with this one.
Any pointers would be greatly appreciated.
Thanks
<?xml version='1.0'?>
<methodCall>
<methodName>mi_xmlrpc</methodName>
<params>
<param>
<value>
<string>pua_publish</string>
</value>
</param>
<param>
<value>
<string>sip:subscriber_name@subscriber_domain</string>
</value>
</param>
<param>
<value>
<string>3600</string>
</value>
</param>
<param>
<value>
<string>presence</string>
</value>
</param>
<param>
<value>
<string>application/simple-message-summary</string>
</value>
</param>
<param>
<value>
<string>.</string>
</value>
</param>
<param>
<value>
<string>.</string>
</value>
</param>
<param>
<value>
<string>.</string>
</value>
</param>
<param>
<value>
<string>Messages-Waiting: yes\r\nMessage-Account: subscriber_name@subscriber_domain\r\nVoice-Messages: 4/8 (1/2)</string>
</value>
</param>
</params>
</methodCall>
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users