<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>Hi, Milan!<br>
      <br>
      The only SIP method that can refresh a SIP dialog is a re-INIVTE
      (according to RFC 3621 [1]) or an UPDATE (according to RFC 3311
      [2]). A REGISTER message cannot change the Contact of an ongoing
      dialog. Therefore, your application has to send a re-INVITE after
      it connects to a new network.<br>
      However, there is a small limitation in the dialog module that
      doesn't allow you to update the remote-address (Contact), not even
      for re-INVITEs or UPDATEs. But there are some guys that are
      working to fix it, luckily the fix will be out soon.<br>
      <br>
      [1] <a class="moz-txt-link-freetext" href="https://tools.ietf.org/html/rfc3621">https://tools.ietf.org/html/rfc3621</a><br>
      [2] <a class="moz-txt-link-freetext" href="https://tools.ietf.org/html/rfc3311">https://tools.ietf.org/html/rfc3311</a><br>
      <br>
      Best regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Developer
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 09/26/2017 01:32 PM, Milan
      Stanojevic wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAGev3GefAbXvLjoLwk9y9CDZRZ-0LG+6hgrCnaj-Vw8O=6nHHw@mail.gmail.com">
      <div dir="ltr">Hello,
        <div><br>
        </div>
        <div><br>
        </div>
        <div>I'm running into next issue:</div>
        <div><br>
        </div>
        <div>My SIP clients register to Opensips server with Expires
          interval of 3600 seconds and calling/initializing call to
          other SIP client or PSTN network works fine but issue comes
          when my SIP client send re-register during active call (it
          sends re-register 300 seconds after initial REGISTER message
          or in case IP/network on which it is has changed since those
          are mobile SIP clients) . So when calling SIP client
          re-register Contact field for that AOR will be updated to new
          value ( It will change network socket , IP:Port ) and if/when
          called party (either PSTN or other SIP client on my
          network) wants to hangup that call BYE that comes from called
          party is not send to new/updated Contact of caller , rather it
          is trying to send it to "old" Contact which does not exist any
          more.</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Do you have any idea how I could fix this so that BYE goes
          to new/update Contact value ?</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Regards,<br clear="all">
          <div><br>
          </div>
          -- <br>
          <div class="gmail_signature">
            <div dir="ltr">
              <div
                style="display:inline-block;font-size:11px;border-right:2px
                solid rgb(229,229,229);padding:0px
10px;height:46px;vertical-align:middle;color:rgb(0,0,0);font-family:"Open
                Sans",sans-serif"><img
                  src="https://s24.postimg.org/qwzgem2u9/lflogo.png"
                  style="padding-top: 5px;" moz-do-not-send="true"
                  height="38" width="38"></div>
              <span style="color:rgb(0,0,0);font-family:"Open
                Sans",sans-serif;font-size:medium;text-align:center"> </span>
              <div
                style="display:inline-block;font-size:11px;border-right:2px
                solid rgb(229,229,229);padding:0px
10px;height:46px;vertical-align:middle;color:rgb(0,0,0);font-family:"Open
                Sans",sans-serif">
                <div
style="font-size:16px;height:46px;text-align:center;line-height:46px;font-weight:bold">Milan
                  Stanojević</div>
              </div>
              <span style="color:rgb(0,0,0);font-family:"Open
                Sans",sans-serif;font-size:medium;text-align:center"> </span>
              <div
                style="display:inline-block;font-size:11px;border:none;padding:0px
10px;height:46px;vertical-align:middle;color:rgb(0,0,0);font-family:"Open
                Sans",sans-serif"><a
                  href="https://www.facebook.com/LotusFlareGrowth/"
                  style="color:rgb(17,85,204);margin-right:15px"
                  target="_blank" moz-do-not-send="true"><img
                    src="https://s15.postimg.org/ku42n89aj/ponovo3.png"
                    moz-do-not-send="true" height="10" width="10"></a> <a
                  href="https://twitter.com/Lotus_Flare"
                  style="color:rgb(17,85,204);margin-right:15px"
                  target="_blank" moz-do-not-send="true"><img
                    src="https://s15.postimg.org/5iu9mmbyj/ponovo1.png"
                    moz-do-not-send="true" height="10" width="10"></a> <a
                  href="https://www.linkedin.com/company-beta/5270342/"
                  style="color:rgb(17,85,204);margin-right:15px"
                  target="_blank" moz-do-not-send="true"><img
                    src="https://s15.postimg.org/prhn8cb9n/ponovo2.png"
                    moz-do-not-send="true" height="10" width="10"></a>
                <div style="color:rgb(122,121,121)"><a
                    value="+381658806711" style="color:rgb(17,85,204)"
                    moz-do-not-send="true">+381 60 70 28 592</a></div>
                <div style="color:rgb(122,121,121)"><a
                    href="http://www.lotusflare.com/"
                    style="color:rgb(17,85,204)" target="_blank"
                    moz-do-not-send="true">www.lotusflare.com</a></div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <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>
    <br>
  </body>
</html>