Thx for reply.
This is what i get with patch applied (is not pretty readable, but what i can see is "^M" char that could be the cause of the problem...or in rpid field the status "unknown")


May  3 15:50:36 ocs /usr/sbin/kamailio[1858]: ERROR:presence_xml:agregate_
xmls: while parsing xml body message [[<?xml version='1.0' encoding='UTF-8'?><presence xmlns='urn:ietf:params:xml:ns:pidf' xmlns:dm='urn:ietf:params:xml:ns:pidf:data-model' xmlns:rpid='urn:ietf:params:xml:ns:pidf:rpid' xmlns:c='urn:ietf:params:xml:ns:pidf:cipid' entity='sip:amusso@ocs.ita.wtbts.net'><tuple id='t7164a248'><status><basic>open</basic></status></tuple><dm:person id='pf31ded47'><rpid:activities><rpid:unknown/></rpid:activities></dm:person></presence>P Server^M Content-Length: 0^M ^M ]]
May  3 15:50:36 ocs /usr/sbin/kamailio[1858]: ERROR:presence_xml:pres_agg_nbody: while aggregating body
May  3 15:51:22 ocs /usr/sbin/kamailio[1855]: ERROR:presence_xml:pres_agg_nbody: while aggregating body
May  3 15:51:22 ocs /usr/sbin/kamailio[1856]: ERROR:presence_xml:offline_nbody: while parsing xml memory
May  3 15:51:22 ocs /usr/sbin/kamailio[1856]: ERROR:presence_xml:pres_agg_nbody: while constructing offline body
May  3 15:51:51 ocs /usr/sbin/kamailio[1857]: ERROR:presence_xml:agregate_xmls: while parsing xml body message [[<?xml version='1.0' encoding='UTF-8'?><presence xmlns='urn:ietf:params:xml:ns:pidf' xmlns:dm='urn:ietf:params:xml:ns:pidf:data-model' xmlns:rpid='urn:ietf:params:xml:ns:pidf:rpid' xmlns:c='urn:ietf:params:xml:ns:pidf:cipid' entity='sip:fcolista@ocs.ita.wtbts.net'><tuple id='tdd57124f'><status><basic>open</basic></status></tuple><dm:person id='pe22c066e'><rpid:activities><rpid:unknown/></rpid:activities></dm:person></presence>resence>]]
May  3 15:51:51 ocs /usr/sbin/kamailio[1857]: ERROR:presence_xml:pres_agg_nbody: while aggregating body
May  3 15:52:32 ocs /usr/sbin/kamailio[1856]: ERROR:presence_xml:agregate_xmls: while parsing xml body message [[<?xml version='1.0' encoding='UTF-8'?><presence xmlns='urn:ietf:params:xml:ns:pidf' xmlns:dm='urn:ietf:params:xml:ns:pidf:data-model' xmlns:rpid='urn:ietf:params:xml:ns:pidf:rpid' xmlns:c='urn:ietf:params:xml:ns:pidf:cipid' entity='sip:amusso@ocs.ita.wtbts.net'><tuple id='t7164a248'><status><basic>open</basic></status></tuple><dm:person id='pf31ded47'><rpid:activities><rpid:unknown/></rpid:activities></dm:person></presence>resence>P Server^M Content-Length: 0^M ^M 74fe7e7c241d"^M Server: AlpineLinux SIP Server^M Content-Length: 0^M ^M ]]
May  3 15:52:32 ocs /usr/sbin/kamailio[1856]: ERROR:presence_xml:pres_agg_nbody: while aggregating body
May  3 15:53:26 ocs /usr/sbin/kamailio[1858]: ERROR:presence_xml:agregate_xmls: while parsing xml body message [[<?xml version='1.0' encoding='UTF-8'?><presence xmlns='urn:ietf:params:xml:ns:pidf' xmlns:dm='urn:ietf:params:xml:ns:pidf:data-model' xmlns:rpid='urn:ietf:params:xml:ns:pidf:rpid' xmlns:c='urn:ietf:params:xml:ns:pidf:cipid' entity='sip:amusso@ocs.ita.wtbts.net'><tuple id='t7164a248'><status><basic>open</basic></status></tuple><dm:person id='pf31ded47'><rpid:activities><rpid:unknown/></rpid:activities></dm:person></presence>e>tbts.net", nonce="4bded515000000284f85e37237864bdc5da8d6836da5a769"^M Server: AlpineLinux SIP Server^M Content-Length: 0^M ^M ]]
May  3 15:53:26 ocs /usr/sbin/kamailio[1858]: ERROR:presence_xml:pres_agg_nbody: while aggregating body





:: Francesco Colista
:: Email : francesco.colista@gmail.com  
:: Jabber: francesco@jabber.org