<div dir="ltr">Thanks for your reply Razvan,<div><br></div><div><br></div><div>I tried using the conference event with application/xml+conf but opensips is replying with these errors:</div><div><br></div><div>
<p class="gmail-p1"><span class="gmail-s1">: ERROR:presence:handle_subscribe: unrecognized value [conference] in Event header</span></p>
<p class="gmail-p1"><span class="gmail-s1">: INFO:presence:handle_subscribe: Missing or unsupported event header field value</span></p><p class="gmail-p1"><span class="gmail-s1"><br></span></p><p class="gmail-p1"><span class="gmail-s1">ERROR:presence:handle_publish: unrecognized value [conference] in Event header</span></p><p class="gmail-p1"><span class="gmail-s1">ERROR:presence:handle_publish: Missing or unsupported event header field value</span></p><p class="gmail-p1"><span class="gmail-s1">
</span></p><p class="gmail-p1"><span class="gmail-s1"> ERROR:presence:handle_publish: #011event=[conference]</span></p><p class="gmail-p1"><span class="gmail-s1"><br></span></p><p class="gmail-p1"><span class="gmail-s1"><br></span></p><p class="gmail-p1"><span class="gmail-s1">When I used the presence events with </span><span style="font-size:12.8px">application/pidf+xml</span> notifies worked but they only carried limited information</p><p class="gmail-p1"><br></p><p class="gmail-p1"><?xml version=\"1.0\"?>\n<presence xmlns=\"urn:ietf:params:xml:ns:pidf\" entity=\"<a href="mailto:sip%3Asjoi4y6@domain.org">sip:sjoi4y6@domain.org</a>\"/>\n<br></p><p class="gmail-p1"><br></p><p class="gmail-p1">reduced from :</p><div style="font-size:12.8px"><?xml version="1.0" encoding="utf-8" ?>.</div><div style="font-size:12.8px"><conference-info xmlns="urn:ietf:params:xml:ns:<wbr>conference-info" entity="sips:<span style="font-size:small">sjoi4y6</span><span style="font-size:12.8px">"state="</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">full" version="1">.</span></div><div style="font-size:12.8px"><users><endpoint entity="99999999">.</div><div style="font-size:12.8px"><status>connected</status>.</div><div style="font-size:12.8px"></endpoint>.</div><div style="font-size:12.8px"></users>.</div><div style="font-size:12.8px"></conference-info>.</div></div><div style="font-size:12.8px"> </div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">which means that the body was dismissed and the entity was taken from the ruri?</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">any idea how to relay this body? or modify it to carry my users tag with state and endpoint enitity?</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thanks,</div><div style="font-size:12.8px">Tito</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 20, 2016 at 2:49 AM, Răzvan Crainea <span dir="ltr"><<a 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>
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><span class="">
<pre class="m_-7697766869749512822moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a class="m_-7697766869749512822moz-txt-link-abbreviated" href="http://www.opensips-solutions.com" target="_blank">www.opensips-solutions.com</a></pre>
</span><div><div class="h5"><div class="m_-7697766869749512822moz-cite-prefix">On 12/20/2016 11:37 AM, Tito Cumpen
wrote:<br>
</div>
<blockquote 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="m_-7697766869749512822gmail-p1">application/pidf+xml</p>
<p class="m_-7697766869749512822gmail-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 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 class="m_-7697766869749512822m_-3240700751397085079moz-txt-link-freetext" href="http://www.utilities-online.info/xmltojson/?save=5a6721b1-55f9-46c2-8bda-cf21e15e38b3-xmltojson" target="_blank">http://www.utilities-online.in<wbr>fo/xmltojson/?save=5a6721b1-55<wbr>f9-46c2-8bda-cf21e15e38b3-xmlt<wbr>ojson</a><br>
[2]
<a class="m_-7697766869749512822m_-3240700751397085079moz-txt-link-freetext" href="http://www.utilities-online.info/xmltojson/?save=320f586b-c2eb-4e73-b564-3f73f0120662-xmltojson" target="_blank">http://www.utilities-online.in<wbr>fo/xmltojson/?save=320f586b-c2<wbr>eb-4e73-b564-3f73f0120662-xmlt<wbr>ojson</a><br>
<br>
Best regards,<br>
</tt>
<pre class="m_-7697766869749512822m_-3240700751397085079moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a class="m_-7697766869749512822m_-3240700751397085079moz-txt-link-abbreviated" href="http://www.opensips-solutions.com" target="_blank">www.opensips-solutions.com</a></pre>
<div>
<div class="m_-7697766869749512822h5">
<div class="m_-7697766869749512822m_-3240700751397085079moz-cite-prefix">On
12/20/2016 01:38 AM, Tito Cumpen wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div class="m_-7697766869749512822h5">
<div dir="ltr">I want to implement something similar
to
<div><br>
</div>
<div><a href="https://tools.ietf.org/html/rfc4579" target="_blank">https://tools.ietf.org/html/rf<wbr>c4579</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<a class="m_-7697766869749512822m_-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 href="mailto:sip%3Addrummondahblh@blah.org" target="_blank">sip:ddrummondahblh@blah.org</a>>;<wbr>tag=62944280_a75dd11f_3a41c2f1<wbr>_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=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 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="5<wbr>85857390000212cd09ec487455386e<wbr>318963e82d972f333",uri="<a 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_-7697766869749512822m_-3240700751397085079mimeAttachmentHeader"></fieldset>
<br>
</div>
</div>
<pre>______________________________<wbr>_________________
Users mailing list
<a class="m_-7697766869749512822m_-3240700751397085079moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a class="m_-7697766869749512822m_-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 href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a 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="m_-7697766869749512822mimeAttachmentHeader"></fieldset>
<pre>______________________________<wbr>_________________
Users mailing list
<a class="m_-7697766869749512822moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a class="m_-7697766869749512822moz-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></div></div><br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a 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><br>
<br></blockquote></div><br></div>