<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>Hi, Tito!<br>
      <br>
      The Content-Type indicates how to read and parse the Message body.
      This is a mandatory header, and without it the client can't know
      how to interpret the body.<br>
      The Event header is used by opensips (and clients) to figure out
      the event that happened.<br>
      The idea is that the clients will subscribe for a particular event
      (presence, or conference in your case) and when that event
      happens, OpenSIPS will send notifies only to those clients
      registered for that event.<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 11:37 AM, Tito Cumpen
      wrote:<br>
    </div>
    <blockquote
cite="mid:CANZPVB7rgSfMZOKeTKs89zNawCt-k=X6CO8sJ0PSEB+HAdoq-g@mail.gmail.com"
      type="cite">
      <div dir="ltr">Razvan,
        <div><br>
        </div>
        <div><br>
          Thanks for pointing that out. Will my subscribers get this xml
          via notify regardless of the content type? say :</div>
        <div><br>
        </div>
        <div>application/xml+conf"<br>
        </div>
        <div><br>
        </div>
        <div>or </div>
        <div>
          <p class="gmail-p1">application/pidf+xml</p>
          <p class="gmail-p1">does the application header or
            Event:presence header mean anything to opensips?</p>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Tue, Dec 20, 2016 at 12:04 AM,
          Răzvan Crainea <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div 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 moz-do-not-send="true"
                  class="m_-3240700751397085079moz-txt-link-freetext"
href="http://www.utilities-online.info/xmltojson/?save=5a6721b1-55f9-46c2-8bda-cf21e15e38b3-xmltojson"
                  target="_blank">http://www.utilities-online.<wbr>info/xmltojson/?save=5a6721b1-<wbr>55f9-46c2-8bda-cf21e15e38b3-<wbr>xmltojson</a><br>
                [2]
                <a moz-do-not-send="true"
                  class="m_-3240700751397085079moz-txt-link-freetext"
href="http://www.utilities-online.info/xmltojson/?save=320f586b-c2eb-4e73-b564-3f73f0120662-xmltojson"
                  target="_blank">http://www.utilities-online.<wbr>info/xmltojson/?save=320f586b-<wbr>c2eb-4e73-b564-3f73f0120662-<wbr>xmltojson</a><br>
                <br>
                Best regards,<br>
              </tt>
              <pre class="m_-3240700751397085079moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a moz-do-not-send="true" class="m_-3240700751397085079moz-txt-link-abbreviated" href="http://www.opensips-solutions.com" target="_blank">www.opensips-solutions.com</a></pre>
              <div>
                <div class="h5">
                  <div class="m_-3240700751397085079moz-cite-prefix">On
                    12/20/2016 01:38 AM, Tito Cumpen wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">
                    <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"
                          target="_blank">https://tools.ietf.org/html/<wbr>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<a
                                  moz-do-not-send="true"
                                  class="m_-3240700751397085079moz-txt-link-abbreviated"
                                  href="mailto:0a@x.x.x.x.x.x"
                                  target="_blank"><wbr>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_3a41c2f1<wbr>_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=z9<wbr>hG4bKa8e175ca_3a41c2f1_7d6e0f5<wbr>b-7595-4432-849e-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="5<wbr>85857390000212cd09ec487455386e<wbr>318963e82d972f333",uri="<a
                                  moz-do-not-send="true"
                                  href="mailto:sip%3Aap5badj@blah.org"
                                  target="_blank">sip:ap<wbr>5badj@blah.org</a>",response="670c<wbr>0336b89491900c284014c12b62ac".</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="fu<wbr>ll"
                                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_ha<wbr>ndl:
                                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="m_-3240700751397085079mimeAttachmentHeader"></fieldset>
                    <br>
                  </div>
                </div>
                <pre>______________________________<wbr>_________________
Users mailing list
<a moz-do-not-send="true" class="m_-3240700751397085079moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" class="m_-3240700751397085079moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    

  </div>


______________________________<wbr>_________________

Users mailing list

<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>

<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>


</blockquote></div>
</div>


<fieldset class="mimeAttachmentHeader"></fieldset>
<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>
</body></html>