<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Nate,<br>
      <br>
      I missed this update from you - you did what I just asked in my
      last email :).<br>
      <br>
      Could you share (off-line if needed) the pcap for SUBSCRIBE+NOTIFY
      and the opensips logs in debug level ?<br>
      <br>
      Regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>
</pre>
    <div class="moz-cite-prefix">On 11/20/2017 08:57 PM, Nathan Baker
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CADwrbY27Cd0Xun4sE5Rm8ZKWLwC-8eUf9Mp9KjDn1cTjN324Yw@mail.gmail.com">
      <div dir="ltr">I just wanted to follow up on this one more time
        with some additional details.  In the topology hiding tutorial (<a
href="http://www.opensips.org/Documentation/Tutorials-Topology-Hiding"
          moz-do-not-send="true">http://www.opensips.org/Documentation/Tutorials-Topology-Hiding</a>)
        it mentions that presence dialogs should be supported on top of
        the TM module:
        <div><br>
        </div>
        <blockquote style="margin:0px 0px 0px
          40px;border:none;padding:0px">
          <div><span
              style="color:rgb(102,102,102);font-family:"Trebuchet
              MS",sans-serif,Verdana,Arial;font-size:13.008px">"When
              running strictly on top of the TM module, the topology
              hiding SIP messages will be bigger when compared to the
              initial requests ( since OpenSIPS will encode all the
              needed information in a parameter of the Contact header ),
              but all type of SIP requests and dialogs will be supported
              ( INVITE dialogs, Presence dialogs, SIP MESSAGE, etc )."</span></div>
        </blockquote>
        <div><span
            style="color:rgb(102,102,102);font-family:"Trebuchet
            MS",sans-serif,Verdana,Arial;font-size:13.008px"><br>
          </span></div>
        <div>When I attempt to do this, the SUBSCRIBE works fine, but
          when the NOTIFY comes back from the server I get errors when
          it does the topology_hiding_match(), usually something like:</div>
        <div><br>
        </div>
        <div>ERROR:core:parse_params: invalid character, ; expected,
          found o<br>
        </div>
        <div>ERROR:core:do_parse_rr_body: failed to parse params<br>
        </div>
        <div>ERROR:core:do_parse_rr_body: failed to parse RR headers<br>
        </div>
        <div>ERROR:topology_hiding:topo_no_dlg_seq_handling: failed
          parsing route set<br>
        </div>
        <div><br>
        </div>
        <div>I can see the th_contact_encode_param value in the request
          URI, but there is no route set in the NOTIFY message.  Is it
          expecting that there is one?  I guess I need to turn on
          debugging or dig into the topology hiding module code to see
          what's causing the errors.  Any help would be greatly
          appreciated!</div>
        <div><br>
        </div>
        <div>Thanks,</div>
        <div>Nate</div>
        <div><br>
        </div>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Fri, Nov 17, 2017 at 8:57 AM,
            Nathan Baker <span dir="ltr"><<a
                href="mailto:bakern@gmail.com" target="_blank"
                moz-do-not-send="true">bakern@gmail.com</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">
              <div dir="auto">
                <div>Hi Bogdan,
                  <div dir="auto"><br>
                  </div>
                  <div dir="auto">Yes, I think that's correct, although
                    I didn't see any module that would implement a
                    mid-presence agent.  I don't so much need to hide
                    IPs, but I do need to change the Contact header, so
                    I started using topology_hiding for that since it
                    has it built in.  I originally tried to use
                    mid_registrar but stopped for now because it doesn't
                    store locations in the database and doesn't support
                    presence (yet).  Any insight or suggestions would be
                    greatly appreciated, I would basically be fine with
                    a B2BUA if there was one that did forward
                    registrations and presence.</div>
                  <div dir="auto"><br>
                  </div>
                  <div dir="auto">Thanks,</div>
                  <div dir="auto">Nate</div>
                  <div>
                    <div class="gmail-h5"><br>
                      <div class="gmail_extra"><br>
                        <div class="gmail_quote">On Nov 17, 2017 4:28
                          AM, "Bogdan-Andrei Iancu" <<a
                            href="mailto:bogdan@opensips.org"
                            target="_blank" moz-do-not-send="true">bogdan@opensips.org</a>>
                          wrote:<br type="attribution">
                          <blockquote
                            class="gmail-m_-6112483514607466067quote"
                            style="margin:0px 0px 0px
                            0.8ex;border-left:1px solid
                            rgb(204,204,204);padding-left:1ex">
                            <div bgcolor="#FFFFFF"> <tt>Hi Nathan,<br>
                                <br>
                                Based on your description you do not
                                want topology-hiding (to simply hide IPs
                                from the end-points), but a mid-presence
                                agent, right ?<br>
                                <br>
                                Regards,<br>
                              </tt>
                              <pre class="gmail-m_-6112483514607466067m_-720671168802559003moz-signature" cols="72">Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  <a class="gmail-m_-6112483514607466067m_-720671168802559003moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank" moz-do-not-send="true">http://www.opensips-solutions.<wbr>com</a>
</pre>
                              <div
                                class="gmail-m_-6112483514607466067elided-text">
                                <div
                                  class="gmail-m_-6112483514607466067m_-720671168802559003moz-cite-prefix">On
                                  11/17/2017 08:13 AM, Nathan Baker
                                  wrote:<br>
                                </div>
                              </div>
                              <blockquote type="cite">
                                <div
                                  class="gmail-m_-6112483514607466067elided-text">
                                  <div dir="ltr">Hello,
                                    <div><br>
                                    </div>
                                    <div>I have been looking for some
                                      examples on how to use the
                                      topology hiding module and
                                      proxying presence (SUBSCRIBE,
                                      NOTIFY, etc.) together, similar to
                                      how the mid_registrar module would
                                      handle registrations.  Does anyone
                                      have any examples or suggestions
                                      on how to do this?</div>
                                    <div><br>
                                    </div>
                                    <div>I have the clients subscribing
                                      to the server (through OpenSIPS
                                      proxy to another presence server),
                                      but I'm not sure how to store the
                                      subscriptions and how to route the
                                      presence messages.  For
                                      registrations you can just do
                                      save("location"), but is there an
                                      equivalent for
                                      subscriptions/presence?  It seems
                                      like the handle_subscribe()
                                      function from the presence module
                                      wouldn't apply because it's part
                                      of a presence server, or can you
                                      just use it for storing
                                      subscriptions but never publish
                                      anything?  I don't see a function
                                      to look up these stored
                                      subscriptions.</div>
                                    <div><br>
                                    </div>
                                    <div>Would it be better to just
                                      assume that the subscriptions are
                                      valid and relay the messages?  If
                                      so, what is the best way to handle
                                      the routing?</div>
                                    <div><br>
                                    </div>
                                    <div>Any help or insight would be
                                      greatly appreciated!</div>
                                    <div><br>
                                    </div>
                                    <div>Thanks,</div>
                                    <div>Nate</div>
                                  </div>
                                  <br>
                                  <fieldset
class="gmail-m_-6112483514607466067m_-720671168802559003mimeAttachmentHeader"></fieldset>
                                  <br>
                                </div>
                                <pre>______________________________<wbr>_________________
Users mailing list
<a class="gmail-m_-6112483514607466067m_-720671168802559003moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank" moz-do-not-send="true">Users@lists.opensips.org</a>
<a class="gmail-m_-6112483514607466067m_-720671168802559003moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank" moz-do-not-send="true">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>
</pre>
                              </blockquote>
                              <br>
                            </div>
                          </blockquote>
                        </div>
                        <br>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>