<div dir="ltr">I want to implement something similar to <div><br></div><div><a href="https://tools.ietf.org/html/rfc4579">https://tools.ietf.org/html/rfc4579</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 19, 2016 at 1:58 PM, Tito Cumpen <span dir="ltr"><<a href="mailto:tito@xsvoce.com" target="_blank">tito@xsvoce.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Group or Devs,<div><br></div><div>Is there any way to allow custom bodies during a presence publish?</div><div><br></div><div>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:</div><div><br></div><div><div>PUBLISH <a href="mailto:sip%3Aap5badj@blah.org" target="_blank">sip:ap5badj@blah.org</a> SIP/2.0.</div><div>Call-ID: 861f3c86868d8a4b00276064d1205e<wbr>0a@x.x.x.x.x.x.</div><div>CSeq: 2 PUBLISH.</div><div>From: "Dave Drummond" <<a href="mailto:sip%3Addrummondahblh@blah.org" target="_blank">sip:ddrummondahblh@blah.org</a>>;<wbr>tag=62944280_a75dd11f_<wbr>3a41c2f1_a8e175ca.</div><div>To: <<a href="mailto:sip%3Aap5badj@nurseliveconnect.org" target="_blank">sip:ap5badj@nurseliveconnect.<wbr>org</a>>.</div><div>Max-Forwards: 70.</div><div>User-Agent: Mobicents Sip Servlets 3.0.0-SNAPSHOT.</div><div>Event: presence.</div><div>Via: SIP/2.0/TCP 192.237.207.220:5080;branch=<wbr>z9hG4bKa8e175ca_3a41c2f1_<wbr>7d6e0f5b-7595-4432-849e-<wbr>500f6d4fe940.</div><div>Content-Type: application/pidf+xml.</div><div>Proxy-Authorization: Digest username="<a href="mailto:ddrummond.blah@blah.org" target="_blank">ddrummond.blah@blah.<wbr>org</a>",realm="<a href="http://blah.org" target="_blank">blah.org</a>",nonce="<wbr>585857390000212cd09ec487455386<wbr>e318963e82d972f333",uri="<a href="mailto:sip%3Aap5badj@blah.org" target="_blank">sip:<wbr>ap5badj@blah.org</a>",response="<wbr>670c0336b89491900c284014c12b62<wbr>ac".</div><div>Content-Length: 263.</div><div>.</div><div><?xml version="1.0" encoding="utf-8" ?>.</div><div><conference-info xmlns="urn:ietf:params:xml:ns:<wbr>conference-info" entity="sips:ap5badj"state="<wbr>full" version="1">.</div><div><users><endpoint entity="99999999">.</div><div><status>connected</status>.</div><div></endpoint>.</div><div></users>.</div><div></conference-info>.</div></div><div><br></div><div><br></div><div>but I get a 415 unsupported media type</div><div><br></div><div><div>Dec 19 21:53:15 cloud-server-06 /sbin/opensips[31135]: ERROR:presence_xml:xml_publ_<wbr>handl: bad body format</div><div>Dec 19 21:53:15 cloud-server-06 /sbin/opensips[31135]: ERROR:presence:handle_publish: in event specific publish handling</div></div><div><br></div><div><br></div><div>Can someone tell me how I can modify the body to make this work?</div><div><br></div><div><br></div><div>Thanks,</div><div>Tito</div></div>
</blockquote></div><br></div>