<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>Hi, Tito!<br>
      <br>
      I ran your example in an XML validator, and I noticed that your
      XML has an "error on line 2 at column 86: attributes construct
      error"[1]. If you add a space before the "state" attribute, the
      XML gets parsed properly[2].<br>
      <br>
      [1]
<a class="moz-txt-link-freetext" href="http://www.utilities-online.info/xmltojson/?save=5a6721b1-55f9-46c2-8bda-cf21e15e38b3-xmltojson">http://www.utilities-online.info/xmltojson/?save=5a6721b1-55f9-46c2-8bda-cf21e15e38b3-xmltojson</a><br>
      [2]
<a class="moz-txt-link-freetext" href="http://www.utilities-online.info/xmltojson/?save=320f586b-c2eb-4e73-b564-3f73f0120662-xmltojson">http://www.utilities-online.info/xmltojson/?save=320f586b-c2eb-4e73-b564-3f73f0120662-xmltojson</a><br>
      <br>
      Best regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 12/20/2016 01:38 AM, Tito Cumpen
      wrote:<br>
    </div>
    <blockquote
cite="mid:CANZPVB5Zh3grbXwErBEqG=ZS9zC8_9YY61=2=E0xs_RLqHVvew@mail.gmail.com"
      type="cite">
      <div dir="ltr">I want to implement something similar to 
        <div><br>
        </div>
        <div><a moz-do-not-send="true"
            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 moz-do-not-send="true"
              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 moz-do-not-send="true"
                    href="mailto:sip%3Aap5badj@blah.org" target="_blank">sip:ap5badj@blah.org</a>
                  SIP/2.0.</div>
                <div>Call-ID: 861f3c86868d8a4b00276064d1205e<wbr><a class="moz-txt-link-abbreviated" href="mailto:0a@x.x.x.x.x.x">0a@x.x.x.x.x.x</a>.</div>
                <div>CSeq: 2 PUBLISH.</div>
                <div>From: "Dave Drummond" <<a moz-do-not-send="true"
                    href="mailto:sip%3Addrummondahblh@blah.org"
                    target="_blank">sip:ddrummondahblh@blah.org</a>>;<wbr>tag=62944280_a75dd11f_<wbr>3a41c2f1_a8e175ca.</div>
                <div>To: <<a moz-do-not-send="true"
                    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
                    moz-do-not-send="true"
                    href="mailto:ddrummond.blah@blah.org"
                    target="_blank">ddrummond.blah@blah.<wbr>org</a>",realm="<a
                    moz-do-not-send="true" href="http://blah.org"
                    target="_blank">blah.org</a>",nonce="<wbr>585857390000212cd09ec487455386<wbr>e318963e82d972f333",uri="<a
                    moz-do-not-send="true"
                    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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>