<div dir="ltr">Hi Bogdan,<div><br></div><div>I do not think the DOCTYPE is the problem here. What I see is that when I use MI to publish this application/xpidf doc, OpenSIPS does not want to parse the document, and if I understand correct, this is because this type of document does not have <tuple> XML branch.</div><div><br></div><div>You are right, about end-to-end, and if I configure OpenSIPS just to relay SUBSCRIBE/NOTIFY, it should work fine.</div><div>But I want use OpenSIPS to be in the middle because I have a logic in my application when it is me who change the status (for example with web-interface)</div><div><br></div><div>So basically my question is, is it going to be supported by OpenSIPS (application/xpidf)? Or as you mentioned, it is basically the work for UA and it is not supposed to be in OpenSIPS?</div><div><br></div><div>Thank you,</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 13, 2016 at 7:56 AM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@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 bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Stas,</tt><tt><br>
      <br>
      You say you see the DOCTYPE line in NOTIFY packets and this is
      supported by OpenSIPS ?<br>
      <br>
      Now, on Polycom extension - if it is something end-2-end, it means
      it does not require a presence server and everything should be
      between end points by using SUBSCRIBE and NOTIFY (no PUBLISH, as
      this is specific to the presence agent/server model). Am I wrong
      with this ?<br>
      <br>
    </tt><span class=""><tt></tt><tt>Best regards</tt>,<br>
    <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
    </span><div><div class="h5"><div>On 12.01.2016 17:10, Stas Kobzar wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">Hello Bogdan,
        <div><br>
        </div>
        <div>Thank you for your response.</div>
        <div>The DOCTYPE within XML is seems to be Microsoft presence
          format: </div>
        <div><a href="https://msdn.microsoft.com/en-ca/library/cc246193.aspx" target="_blank">https://msdn.microsoft.com/en-ca/library/cc246193.aspx</a><br>
        </div>
        <div><br>
        </div>
        <div>I am not sure if it can be used with PUBLISH though. For
          now I saw it only in NOTIFY packets.<br>
        </div>
        <div><br>
        </div>
        <div>Polycom UA is using this type of presence for end-to-end
          presence between phones.</div>
        <div>I would like to publish this with MI to change presence
          status on Polycom phones.<br>
        </div>
        <div><br>
        </div>
        <div>Thank you,</div>
        <div>Stas</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Mon, Jan 11, 2016 at 4:59 AM,
          Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@opensips.org" target="_blank"></a><a href="mailto:bogdan@opensips.org" target="_blank">bogdan@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 bgcolor="#FFFFFF" text="#000000"> <tt>Hi Stas,<br>
                <br>
                I checked with couple of SIP UACs and I found none using
                the "DOCTYPE" line the published presence XML. So, I
                guess you should simply drop such a line in your
                testing.<br>
                <br>
                The "tuple" node is replacing your "atom" node (at least
                this is what I noticed while trying other UACs). Here is
                an example of a PUBLISH xml generated by Zoiper:<br>
                <br>
                <?xml version="1.0" encoding="UTF-8"?><br>
                    <presence xmlns="urn:ietf:params:xml:ns:pidf"
                entity=<a href="mailto:sip:bogdan@opensips.org;transport=UDP" target="_blank">"sip:bogdan@opensips.org;transport=UDP"</a>><br>
                        <tuple id="bogdan" ><br>
                           
                <status><basic>open</basic><br>
                            </status><br>
                            <note>Busy</note><br>
                        </tuple><br>
                    </presence><br>
                <br>
                In regards to the crash, even if the XML is not properly
                formated, it should not crash - can you send me the
                actual MI command + content to try to reproduce the
                crash and have it fixed ?<br>
                <br>
                Best regards,<br>
              </tt>
              <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
              <div>
                <div>
                  <div>On 04.01.2016 18:49, Stas Kobzar wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div>
                    <div dir="ltr">Hello all and Happy New Year!<br>
                      <br>
                      I have a problem with publishing
                      application/xpidf+xml (Xpidf) presence info with
                      OpenSIPS mi (ver11). <br>
                      It seems like it is not supported.<br>
                      <br>
                      The xpidf xml body is something like this:<br>
                      <br>
                      <?xml version="1.0"?><br>
                      <!DOCTYPE presence PUBLIC "-//IETF//DTD RFCxxxx
                      XPIDF 1.0//EN" "xpidf.dtd"><br>
                      <presence><br>
                        <presentity uri="<a href="mailto:sip%3A244@199.182.134.149" target="_blank">sip:244@199.182.134.149</a>;method=SUBSCRIBE"
                      />  <br>
                        <atom id="*45244*600"><br>
                          <address uri="sip:*45244*<a href="mailto:600@199.182.134.149" target="_blank"></a><a href="mailto:600@199.182.134.149" target="_blank">600@199.182.134.149</a>;user=ip"
                      priority="0.800000"><br>
                            <status status="open" />  <br>
                            <msnsubstatus substatus="online" /><br>
                          </address><br>
                        </atom><br>
                      </presence><br>
                      <div><br>
                      </div>
                      <div>After browsing around the source I think
                        there are two problems:</div>
                      <div>1. (in
                        modules/pua/add_events.c:pres_process_body)
                        function from libxml2 xmlParseMemory returns
                        NULL when finds the line <!DOCTYPE presence
                        PUBLIC "-//IETF//DTD RFCxxxx XPIDF 1.0//EN"
                        "xpidf.dtd"></div>
                      <div><br>
                      </div>
                      <div>2. Another problem: when I remove the line
                        above from body there is a call to another
                        function that is looking for "<tuple>"
                        node in xml (in
                        modules/pua/add_events.c:pres_process_body):</div>
                      <div>
                        <div>node= xmlDocGetNodeByName(doc, "tuple",
                          NULL);</div>
                        <div><br>
                        </div>
                      </div>
                      <div>But there is no "tuple" in xpidf document. So
                        it returns error.</div>
                      <div><br>
                      </div>
                      <div>3. As an experiment, I added "<tuple>"
                        inside my presence body and it crashed OpenSIPS
                        with:</div>
                      <div>CRITICAL:core:receive_fd: EOF on 18<br>
                      </div>
                      <div><br>
                      </div>
                      <div>Question:<br>
                      </div>
                      <div>Is there a way to make xpidf presence content
                        type work with pua_mi module?<br>
                      </div>
                      <div><br>
                      </div>
                      <div>Thank you, </div>
                      <div>
                        <div><br>
                        </div>
                        -- <br>
                        <div>
                          <div dir="ltr">
                            <div>
                              <div dir="ltr">
                                <div dir="ltr">
                                  <div dir="ltr">
                                    <div dir="ltr">
                                      <div dir="ltr">
                                        <div dir="ltr"><span>
                                            <p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:Arial;color:rgb(0,112,192);font-weight:bold;vertical-align:baseline;white-space:pre-wrap;background-color:transparent">Stas Kobzar</span></p>
                                            <p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:12px;font-family:Arial;color:rgb(166,166,166);vertical-align:baseline;white-space:pre-wrap;background-color:transparent">Developeur VoIP / VoIP Developer</span></p>
                                            <p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><br>
                                            </p>
                                          </span>
                                          <p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-family:Arial;color:rgb(0,112,192);font-weight:bold;vertical-align:baseline;white-space:pre-wrap;background-color:transparent">Modulis.ca Inc.</span></p>
                                          <p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:12px;font-family:Arial;color:rgb(0,0,0);font-weight:bold;vertical-align:baseline;white-space:pre-wrap;background-color:transparent"># Bureau / Office: <a href="tel:514-284-2020%20x%20246" value="+15142842020" target="_blank">514-284-2020 x 246</a></span></p>
                                          <p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11px;font-family:Arial;color:rgb(0,0,0);font-weight:bold;vertical-align:baseline;white-space:pre-wrap;background-color:transparent">Email</span><span style="font-size:11px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap;background-color:transparent">: </span><span style="text-decoration:underline;font-size:11px;font-family:Arial;color:rgb(17,85,204);vertical-align:baseline;white-space:pre-wrap;background-color:transparent"><a href="http://firstname.lastname" style="text-decoration:none" target="_blank">s</a>tas.kobzar</span><a style="text-decoration:none"><span style="font-size:11px;font-family:Arial;color:rgb(17,85,204);text-decoration:underline;vertical-align:baseline;white-space:pre-wrap;background-color:transparent">@modulis.ca</span></a></p>
                                          <p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap;background-color:transparent"> </span></p>
                                          <p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="text-decoration:underline;font-size:11px;font-family:Arial;color:rgb(17,85,204);vertical-align:baseline;white-space:pre-wrap;background-color:transparent"><a href="https://www.modulis.com/" style="text-decoration:none" target="_blank">https://www.modulis.com</a></span></p>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                    <br>
                    <fieldset></fieldset>
                    <br>
                  </div>
                </div>
                <pre>_______________________________________________
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" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
              </blockquote>
              <br>
            </div>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div>
          <div dir="ltr">
            <div>
              <div dir="ltr">
                <div dir="ltr">
                  <div dir="ltr">
                    <div dir="ltr">
                      <div dir="ltr">
                        <div dir="ltr"><span>
                            <p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:Arial;color:rgb(0,112,192);font-weight:bold;vertical-align:baseline;white-space:pre-wrap;background-color:transparent">Stas Kobzar</span></p>
                            <p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:12px;font-family:Arial;color:rgb(166,166,166);vertical-align:baseline;white-space:pre-wrap;background-color:transparent">Developeur VoIP / VoIP Developer</span></p>
                            <p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><br>
                            </p>
                          </span>
                          <p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-family:Arial;color:rgb(0,112,192);font-weight:bold;vertical-align:baseline;white-space:pre-wrap;background-color:transparent">Modulis.ca Inc.</span></p>
                          <p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:12px;font-family:Arial;color:rgb(0,0,0);font-weight:bold;vertical-align:baseline;white-space:pre-wrap;background-color:transparent"># Bureau / Office: <a href="tel:514-284-2020%20x%20246" value="+15142842020" target="_blank">514-284-2020 x 246</a></span></p>
                          <p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11px;font-family:Arial;color:rgb(0,0,0);font-weight:bold;vertical-align:baseline;white-space:pre-wrap;background-color:transparent">Email</span><span style="font-size:11px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap;background-color:transparent">: </span><span style="text-decoration:underline;font-size:11px;font-family:Arial;color:rgb(17,85,204);vertical-align:baseline;white-space:pre-wrap;background-color:transparent"><a href="http://firstname.lastname" style="text-decoration:none" target="_blank">s</a>tas.kobzar</span><a style="text-decoration:none"><span style="font-size:11px;font-family:Arial;color:rgb(17,85,204);text-decoration:underline;vertical-align:baseline;white-space:pre-wrap;background-color:transparent">@modulis.ca</span></a></p>
                          <p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap;background-color:transparent"> </span></p>
                          <p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="text-decoration:underline;font-size:11px;font-family:Arial;color:rgb(17,85,204);vertical-align:baseline;white-space:pre-wrap;background-color:transparent"><a href="https://www.modulis.com/" style="text-decoration:none" target="_blank">https://www.modulis.com</a></span></p>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><span><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:15px;font-family:Arial;color:rgb(0,112,192);font-weight:bold;vertical-align:baseline;white-space:pre-wrap;background-color:transparent">Stas Kobzar</span></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:12px;font-family:Arial;color:rgb(166,166,166);vertical-align:baseline;white-space:pre-wrap;background-color:transparent">Developeur VoIP / VoIP Developer</span></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><br></p></span><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-family:Arial;color:rgb(0,112,192);font-weight:bold;vertical-align:baseline;white-space:pre-wrap;background-color:transparent">Modulis.ca Inc.</span></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:12px;font-family:Arial;color:rgb(0,0,0);font-weight:bold;vertical-align:baseline;white-space:pre-wrap;background-color:transparent"># Bureau / Office: 514-284-2020 x 246</span></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11px;font-family:Arial;color:rgb(0,0,0);font-weight:bold;vertical-align:baseline;white-space:pre-wrap;background-color:transparent">Email</span><span style="font-size:11px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap;background-color:transparent">: </span><span style="text-decoration:underline;font-size:11px;font-family:Arial;color:rgb(17,85,204);vertical-align:baseline;white-space:pre-wrap;background-color:transparent"><a href="http://firstname.lastname" style="text-decoration:none" target="_blank">s</a>tas.kobzar</span><a style="text-decoration:none"><span style="font-size:11px;font-family:Arial;color:rgb(17,85,204);text-decoration:underline;vertical-align:baseline;white-space:pre-wrap;background-color:transparent">@modulis.ca</span></a></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap;background-color:transparent"> </span></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="text-decoration:underline;font-size:11px;font-family:Arial;color:rgb(17,85,204);vertical-align:baseline;white-space:pre-wrap;background-color:transparent"><a href="https://www.modulis.com/" style="text-decoration:none" target="_blank">https://www.modulis.com</a></span></p></div></div></div></div></div></div></div></div></div>
</div>