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:us...@ocs.ita.domain.net <mailto:sip%3aus...@ocs.ita.domain.net> via sip:us...@10.44.17.145:24258 <http://sip:us...@10.44.17.145:24258> on behalf of sip:us...@ocs.ita.domain.net <mailto:sip%3aus...@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:us...@ocs.ita.domain.net <mailto:sip%3aus...@ocs.ita.domain.net> via sip:us...@10.44.17.145:24258 <http://sip:us...@10.44.17.145:24258> on behalf of sip:us...@ocs.ita.domain.net <mailto:sip%3aus...@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.coli...@gmail.com <mailto:francesco.coli...@gmail.com>
:: Jabber: france...@jabber.org <mailto:france...@jabber.org>







_______________________________________________
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

--
Daniel-Constantin Mierla
* http://www.asipto.com/
* http://twitter.com/miconda
* http://www.linkedin.com/in/danielconstantinmierla

Index: modules/presence_xml/notify_body.c
===================================================================
--- modules/presence_xml/notify_body.c  (revision 6003)
+++ modules/presence_xml/notify_body.c  (working copy)
@@ -512,7 +512,8 @@
                
                if( xml_array[j]== NULL)
                {
-                       LM_ERR("while parsing xml body message\n");
+                       LM_ERR("while parsing xml body message [[%.*s]]\n",
+                                       body_array[i]->len, body_array[i]->s);
                        goto error;
                }
                j++;
_______________________________________________
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

Reply via email to