[OpenSIPS-Users] presence xpidf

Stas Kobzar stas.kobzar at modulis.ca
Mon Jan 4 17:49:33 CET 2016


Hello all and Happy New Year!

I have a problem with publishing application/xpidf+xml (Xpidf) presence
info with OpenSIPS mi (ver11).
It seems like it is not supported.

The xpidf xml body is something like this:

<?xml version="1.0"?>
<!DOCTYPE presence PUBLIC "-//IETF//DTD RFCxxxx XPIDF 1.0//EN" "xpidf.dtd">
<presence>
  <presentity uri="sip:244 at 199.182.134.149;method=SUBSCRIBE" />
  <atom id="*45244*600">
    <address uri="sip:*45244*600 at 199.182.134.149;user=ip"
priority="0.800000">
      <status status="open" />
      <msnsubstatus substatus="online" />
    </address>
  </atom>
</presence>

After browsing around the source I think there are two problems:
1. (in modules/pua/add_events.c:pres_process_body) function from
libxml2 xmlParseMemory returns NULL when finds the line <!DOCTYPE presence
PUBLIC "-//IETF//DTD RFCxxxx XPIDF 1.0//EN" "xpidf.dtd">

2. Another problem: when I remove the line above from body there is a call
to another function that is looking for "<tuple>" node in xml (in
modules/pua/add_events.c:pres_process_body):
node= xmlDocGetNodeByName(doc, "tuple", NULL);

But there is no "tuple" in xpidf document. So it returns error.

3. As an experiment, I added "<tuple>" inside my presence body and it
crashed OpenSIPS with:
CRITICAL:core:receive_fd: EOF on 18

Question:
Is there a way to make xpidf presence content type work with pua_mi module?

Thank you,

-- 

Stas Kobzar

Developeur VoIP / VoIP Developer


Modulis­.ca Inc.

# Bureau / Office: 514-284-2020 x 246

Email: s <http://firstname.lastname>tas.kobzar at modulis.ca

https://www.modulis.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160104/ae80a69f/attachment-0001.htm>


More information about the Users mailing list