<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Schneur, <br>
      <br>
      There is a bit of a confusion in what you are saying. In your
      original post you mentioned " but on incoming calls the PUBLISH is
      sent to the internal IP address of the subscribers " . Maybe you
      meant NOTIFYes ? these are the only requests sent back by OpenSIPS
      to the subscriber.<br>
      PUBLISH requests are generated by the pua_xxxx (like
      pua_dialoginfo) modules and consumed by the presence module (via
      the handle_publish). And when handling the publish, OpenSIPS is
      generating and sending out the NOTIFYes.<br>
      <br>
      So which ones are you complaining about ?<br>
      <br>
      Just for the fact, the PUBLISHes generated by </tt><tt>pua_dialoginfo
      are sent to the fix destination give by the "presence_server"
      module parameter.<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="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
OpenSIPS Summit 2019
  <a class="moz-txt-link-freetext" href="https://www.opensips.org/events/Summit-2019Amsterdam/">https://www.opensips.org/events/Summit-2019Amsterdam/</a>
</pre>
    <div class="moz-cite-prefix">On 01/03/2019 03:04 PM, Schneur
      Rosenberg wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CANvjR0Ugsn=6-0DePmQoqeGOQ=cVFBTZJy34P=3Q=9GdS7GgMQ@mail.gmail.com">
      <div dir="ltr">
        <div dir="ltr">
          <div dir="auto">The publish goes to the internal address of
            the subscribers, instead of going to itself, it goes nowhere
            and no NOTIFY is ever sent, here is a sample PUBLISH<br>
            <br>
            <div dir="auto">PUBLISH <a
                href="http://sip:mysipuser@192.168.1.2:5060"
                moz-do-not-send="true">sip:mysipuser@192.168.1.2:5060</a>
              SIP/2.0</div>
            <div dir="auto">Via: SIP/2.0/UDP
              81.18.5.78:5060;branch=z9hG4bKf248.d893da14.0</div>
            <div dir="auto">To: <a
                href="http://sip:mysipuser@192.168.1.2:5060"
                moz-do-not-send="true">sip:mysipuser@192.168.1.2:5060</a></div>
            <div dir="auto">From: <<a
                href="http://sip:mysipuser@192.168.1.2:5060"
                moz-do-not-send="true">sip:mysipuser@192.168.1.2:5060</a>>;tag=fcab47ce4481840ab954c8dc7f9d517f-9b26</div>
            <div dir="auto">CSeq: 10 PUBLISH</div>
            <div dir="auto">Call-ID: <a
                href="mailto:68b929aa6f905336-24591@81.18.5.78"
                moz-do-not-send="true">68b929aa6f905336-24591@81.18.5.78</a></div>
            <div dir="auto">Max-Forwards: 70</div>
            <div dir="auto">Content-Length: 592</div>
            <div dir="auto">User-Agent: OpenSIPS (2.4.1 (x86_64/linux))</div>
            <div dir="auto">Event: dialog</div>
            <div dir="auto">Expires: 43201</div>
            <div dir="auto">Content-Type: application/dialog-info+xml</div>
            <div dir="auto"><br>
            </div>
            <div dir="auto"><?xml version="1.0"?></div>
            <div dir="auto"><dialog-info
              xmlns="urn:ietf:params:xml:ns:dialog-info" state="partial"
              entity="<a href="http://sip:mysipuser@192.168.1.2:5060"
                moz-do-not-send="true">sip:mysipuser@192.168.1.2:5060</a>"><dialog
              id="<a
                href="mailto:532c2f370f16667850aa092440c55325@66.36.230.75"
                moz-do-not-send="true">532c2f370f16667850aa092440c55325@66.36.230.75</a></div>
            <div dir="auto">060" call-id="<a
                href="http://532c2f370f16667850aa092440c55325@81.18.5.80:5060"
                moz-do-not-send="true">532c2f370f16667850aa092440c55325@81.18.5.80:5060</a>"
              local-tag="425302105" remote-tag="as4b8896ec"
direction="recipient"><state>early</state><remote><ident</div>
            <div dir="auto">y><a
                href="mailto:sip%3A2125551010@81.18.5.80"
                moz-do-not-send="true">sip:2125551010@81.18.5.80</a></identity><target
              uri="<a href="mailto:sip%3A2125551010@81.18.5.80"
                moz-do-not-send="true">sip:2125551010@81.18.5.80</a>"/></remote><local><identity><a
                href="http://sip:mysipuser@192.168.1.2:5060"
                moz-do-not-send="true">sip:mysipuser@192.168.1.2:5060</a></identity><target
              uri="si</div>
            <div dir="auto"><a href="http://mysipuser@192.168.1.2:5060"
                moz-do-not-send="true">mysipuser@192.168.1.2:5060</a>"/></local></dialog></dialog-info></div>
            <div><br>
            </div>
          </div>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr">On Thu, Jan 3, 2019, 1:58 PM Bogdan-Andrei Iancu
          <<a href="mailto:bogdan@opensips.org" target="_blank"
            moz-do-not-send="true">bogdan@opensips.org</a> wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi
          Schneur,<br>
          <br>
          For the incoming calls, the PUBLISH is sent to the internal IP
          address <br>
          or the NOTIFYes ??<br>
          <br>
          Regards and A Happy New Year,<br>
          <br>
          Bogdan-Andrei Iancu<br>
          <br>
          OpenSIPS Founder and Developer<br>
             <a href="https://www.opensips-solutions.com"
            rel="noreferrer noreferrer" target="_blank"
            moz-do-not-send="true">https://www.opensips-solutions.com</a><br>
          OpenSIPS Summit 2019<br>
             <a
            href="https://www.opensips.org/events/Summit-2019Amsterdam/"
            rel="noreferrer noreferrer" target="_blank"
            moz-do-not-send="true">https://www.opensips.org/events/Summit-2019Amsterdam/</a><br>
          <br>
          On 12/23/2018 08:37 AM, Schneur Rosenberg wrote:<br>
          > HI, my presence was working properly and now I realized
          that its not<br>
          > working anymore for incoming calls, I dont have a
          external presence<br>
          > server, I use the pua_dialoginfo, I did a trace and I saw
          that for<br>
          > outgoing calls the system sends a PUBLISH to itself and
          then properly<br>
          > sends a NOTIFY to the subscribers, but on incoming calls
          the PUBLISH<br>
          > is sent to the internal IP address of the subscribers and
          of course<br>
          > does not get anywhere, what am I doing wrong?<br>
          ><br>
          > _______________________________________________<br>
          > Users mailing list<br>
          > <a href="mailto:Users@lists.opensips.org"
            rel="noreferrer" target="_blank" moz-do-not-send="true">Users@lists.opensips.org</a><br>
          > <a
            href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
            rel="noreferrer noreferrer" target="_blank"
            moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
          <br>
        </blockquote>
      </div>
    </blockquote>
    <br>
  </body>
</html>