[OpenSIPS-Users] custom presence bodies

Tito Cumpen tito at xsvoce.com
Mon Dec 19 16:58:14 EST 2016

Group or Devs,

Is there any way to allow custom bodies during a presence publish?

I am trying to implement presence notifies for a conferencing scenario to
allow participants of a conference to subscribe to the conference events.
The events will send information about who connected to and disconnected
with the intention of syncing the UI. I am trying to publish the following:

PUBLISH sip:ap5badj at blah.org SIP/2.0.
Call-ID: 861f3c86868d8a4b00276064d1205e0a at x.x.x.x.x.x.
From: "Dave Drummond" <sip:ddrummondahblh at blah.org
To: <sip:ap5badj at nurseliveconnect.org>.
Max-Forwards: 70.
User-Agent: Mobicents Sip Servlets 3.0.0-SNAPSHOT.
Event: presence.
Via: SIP/2.0/TCP
Content-Type: application/pidf+xml.
Proxy-Authorization: Digest username="ddrummond.blah at blah.org",realm="
sip:ap5badj at blah.org",response="670c0336b89491900c284014c12b62ac".
Content-Length: 263.
<?xml version="1.0" encoding="utf-8" ?>.
<conference-info xmlns="urn:ietf:params:xml:ns:conference-info"
entity="sips:ap5badj"state="full" version="1">.
<users><endpoint entity="99999999">.

but I get a 415 unsupported media type

Dec 19 21:53:15 cloud-server-06 /sbin/opensips[31135]:
ERROR:presence_xml:xml_publ_handl: bad body format
Dec 19 21:53:15 cloud-server-06 /sbin/opensips[31135]:
ERROR:presence:handle_publish: in event specific publish handling

Can someone tell me how I can modify the body to make this work?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20161219/e1a28945/attachment.html>

More information about the Users mailing list