[SR-Users] kamailio and presence_xml parse error
Daniel-Constantin Mierla
miconda at gmail.com
Wed May 5 11:10:25 CEST 2010
Hello,
at the first sight seems the size of the xml doc is bigger that it
should be. I will look deeper at it, just some busy days here currently.
Cheers,
Daniel
On 5/3/10 3:54 PM, Francesco wrote:
> 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...)
>
>
> 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 at ocs.ita.wtbts.net
> <mailto:sip%3Aamusso at 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 at ocs.ita.wtbts.net
> <mailto:sip%3Afcolista at 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 at ocs.ita.wtbts.net
> <mailto:sip%3Aamusso at 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 at ocs.ita.wtbts.net
> <mailto:sip%3Aamusso at 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
> <http://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 at gmail.com
> <mailto:francesco.colista at gmail.com>
> :: Jabber: francesco at jabber.org <mailto:francesco at jabber.org>
>
>
>
>
>
>
>
>
> 2010/4/30 Daniel-Constantin Mierla <miconda at gmail.com
> <mailto:miconda at gmail.com>>
>
> Hello,
>
> can you get the xml doc for that case and paste it here?
>
> I attached a patch that should be print the xml doc.
>
> Thanks,
> Daniel
>
>
>
>
> On 4/29/10 4:52 PM, Francesco wrote:
>> Hi to all.
>> I'm new here.
>> I'm getting crazy with presence_xml error.
>> I'm using kamailio 1.5.4 notls with xlite 3.0 (winXP client)
>> softphone and postgresql 8.4 as db backend.
>>
>> Seems that presence works, but i have error in parsing xml:
>>
>> those are the relevant log:
>>
>> Apr 29 16:42:54 ocs /usr/sbin/kamailio[2462]:
>> INFO:presence:send_notify_request: NOTIFY
>> sip:user1 at ocs.ita.domain.net
>> <mailto:sip%3Auser1 at ocs.ita.domain.net> via
>> sip:user1 at 10.44.17.145:24258
>> <http://sip:user1@10.44.17.145:24258> on behalf of
>> sip:user2 at ocs.ita.domain.net
>> <mailto:sip%3Auser2 at ocs.ita.domain.net> for event presence
>> Apr 29 16:42:54 ocs /usr/sbin/kamailio[2463]:
>> ERROR:presence_xml:agregate_xmls: while parsing xml body message
>> Apr 29 16:42:54 ocs /usr/sbin/kamailio[2463]:
>> ERROR:presence_xml:pres_agg_nbody: while aggregating body
>>
>> When i login on kamailio, the users are not immediatly notified
>> to my presence...but, when there's a change of status, the client
>> are notified and on softphone the status change.
>>
>> Other that, if the client close softphone, i can watch this on
>> the log:
>>
>> Apr 29 16:42:41 ocs /usr/sbin/kamailio[2461]:
>> ERROR:presence_xml:offline_nbody: while parsing xml memory
>> Apr 29 16:42:41 ocs /usr/sbin/kamailio[2461]:
>> ERROR:presence_xml:pres_agg_nbody: while constructing offline body
>> Apr 29 16:42:41 ocs /usr/sbin/kamailio[2461]:
>> INFO:presence:send_notify_request: NOTIFY
>> sip:user1 at ocs.ita.domain.net
>> <mailto:sip%3Auser1 at ocs.ita.domain.net> via
>> sip:user1 at 10.44.17.145:24258
>> <http://sip:user1@10.44.17.145:24258> on behalf of
>> sip:user3 at ocs.ita.domain.net
>> <mailto:sip%3Auser3 at ocs.ita.domain.net> for event presence
>>
>> And the client, on the other softphone, results on line, rather
>> then offline.
>>
>> I'm thinking about encoding database, i've tryied with SQL ASCII
>> and UTF-8 too. Same behaviour.
>> I try different releases (1.5.3 no tls) on different distribution
>> (debian, lucid, alpine linux). Same behaviour.
>>
>> Obiouvsly, the softphone are right configured (presence agent is
>> enabled).
>>
>> Any hints?
>>
>> Thanks for you kind attention.
>>
>>
>> :: Francesco Colista
>> :: Email : francesco.colista at gmail.com
>> <mailto:francesco.colista at gmail.com>
>> :: Jabber: francesco at jabber.org <mailto:francesco at jabber.org>
>>
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users at lists.sip-router.org <mailto:sr-users at lists.sip-router.org>
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>
> --
> Daniel-Constantin Mierla
> *http://www.asipto.com/
> *http://twitter.com/miconda
> *http://www.linkedin.com/in/danielconstantinmierla
>
>
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
--
Daniel-Constantin Mierla
* http://www.asipto.com/
* http://twitter.com/miconda
* http://www.linkedin.com/in/danielconstantinmierla
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20100505/06cc9838/attachment-0001.htm>
More information about the sr-users
mailing list