<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>Hi Matt,<br>
      <br>
      There is something bogus in your setup. If FS is advertising the
      public IP, why is it not able to receive traffic on that IP (the
      ACK from OpenSIPS). You need to make a consistent setup in there
      in terms of used and routable IPs. <br>
      <br>
      Now, the 200 OK (to INVITE) is sent by FS via the external or
      internal IP ?<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 24.06.2015 17:40, Matt Broad wrote:<br>
    </div>
    <blockquote
cite="mid:CAEeV61gcQSzV=Mvs3ao5ntOJAi9HFVKPhpkwwr+-dYtPvrS8pg@mail.gmail.com"
      type="cite">
      <div dir="ltr"><span style="font-size:12.8000001907349px">Hi,</span>
        <div style="font-size:12.8000001907349px"><br>
        </div>
        <span class="im">
          <div style="">
            <div style="">I have the following setup (the IP addresses
              are made up but should give an indication):</div>
            <div style=""><br>
            </div>
            <div style="">1 x opensips server with load balancer module
              - IP 192.168.0.1</div>
            <div style="">2 x freeswitch servers - IP 192.168.0.2 &amp;
              192.168.0.3</div>
            <div style=""><br>
            </div>
            <div style="">All 3 servers have seperate external IP
              address routing to their internal IP via our firewall:</div>
            <div style="">217.0.0.1 routed to 192.168.0.1 (Opensips)</div>
            <div style="">217.0.0.2 routed to 192.168.0.2 (FS1)</div>
            <div style="">217.0.0.3 routed to 192.168.0.3 (FS2)</div>
            <div style=""><br>
            </div>
            <div style="">I have the load_balancer table with the
              following details:</div>
            <div style=""><br>
            </div>
            <div style="">id,  | group_id, |                  dst_uri,  
                       | resources,  | probe_mode, | description</div>
            <div style="">'1',  |      '1',     |  'sip:<a
                moz-do-not-send="true" href="http://192.168.0.2:5080">192.168.0.2:5080</a>',
               |   'pstn=10', |          '2',       |          'FS1'</div>
            <div style="">'2',  |      '1',     |  'sip:<a
                moz-do-not-send="true" href="http://192.168.0.3:5080">192.168.0.3:5080</a>',
               |   'vm=1',     |         '2',       |          'FS2'</div>
            <div style=""><br>
            </div>
            <div style=""><br>
            </div>
            <div style="">Now the initial invite goes through the usual
              steps, as shown below, but the issue arises when the ACK
              comes back from the SIP provider.  Opensips is trying to
              forward the packet to the Freeswitch external IP address
              rather than the internal IP.  This is due, I think, to the
              Contact details in the 200 response from Freeswitch
              containing the Freeswitch external IP.  </div>
            <div style="">Is there a way of having Opensips take the
              external IP and route to the internal IP instead?  Any
              help/suggestions would be much appreciated. </div>
          </div>
          <div style="font-size:12.8000001907349px"><br>
          </div>
        </span>
        <div style="font-size:12.8000001907349px"><br>
        </div>
        <div style="font-size:12.8000001907349px"><br>
        </div>
        <div style="font-size:12.8000001907349px">
          <table style="border-collapse:collapse;width:686pt"
            width="913" cellpadding="0" cellspacing="0" border="0">
            <colgroup><col style="width:22pt" width="29"><col
                style="width:53pt" width="70"><col style="width:19pt"
                width="25"><col style="width:97pt" span="2" width="129"><col
                style="width:44pt" width="59"><col style="width:37pt"
                width="49"><col style="width:317pt" width="423"></colgroup><tbody>
              <tr style="height:15pt" height="20">
                <td style="height:15pt;width:22pt" height="20"
                  width="29">No.</td>
                <td style="width:53pt" width="70">Time</td>
                <td style="width:19pt" width="25"><br>
                </td>
                <td style="width:97pt" width="129">Source</td>
                <td style="width:97pt" width="129">Destination</td>
                <td style="width:44pt" width="59">Protocol</td>
                <td style="width:37pt" width="49">Length</td>
                <td style="width:317pt" width="423">Info</td>
              </tr>
              <tr style="height:15pt" height="20">
                <td style="height:15pt" height="20" align="right">42</td>
                <td align="right">5.827674</td>
                <td><br>
                </td>
                <td>SIP Provider</td>
                <td>OpenSips Internal</td>
                <td>SIP/SDP</td>
                <td align="right">873</td>
                <td>Request: INVITE sip:test@Opensips External | </td>
              </tr>
              <tr style="height:15pt" height="20">
                <td style="height:15pt" height="20" align="right">43</td>
                <td align="right">5.828043</td>
                <td><br>
                </td>
                <td>OpenSips Internal</td>
                <td>SIP Provider</td>
                <td>SIP</td>
                <td align="right">397</td>
                <td>Status: 100 Giving a try | </td>
              </tr>
              <tr style="height:15pt" height="20">
                <td style="height:15pt" height="20" align="right">44</td>
                <td align="right">5.828159</td>
                <td><br>
                </td>
                <td>OpenSips Internal</td>
                <td>Freeswitch Internal</td>
                <td>SIP/SDP</td>
                <td align="right">1039</td>
                <td>Request: INVITE sip:test@Opensips External | </td>
              </tr>
              <tr style="height:15pt" height="20">
                <td style="height:15pt" height="20" align="right">45</td>
                <td align="right">5.828605</td>
                <td><br>
                </td>
                <td>Freeswitch Internal</td>
                <td>OpenSips Internal</td>
                <td>SIP</td>
                <td align="right">588</td>
                <td>Status: 100 Trying | </td>
              </tr>
              <tr style="height:15pt" height="20">
                <td style="height:15pt" height="20" align="right">46</td>
                <td align="right">5.832171</td>
                <td><br>
                </td>
                <td>Freeswitch Internal</td>
                <td>OpenSips Internal</td>
                <td>SIP/SDP</td>
                <td align="right">1221</td>
                <td>Status: 200 OK | </td>
              </tr>
              <tr style="height:15pt" height="20">
                <td style="height:15pt" height="20" align="right">54</td>
                <td align="right">5.833451</td>
                <td><br>
                </td>
                <td>OpenSips Internal</td>
                <td>SIP Provider</td>
                <td>SIP/SDP</td>
                <td align="right">1132</td>
                <td>Status: 200 OK | </td>
              </tr>
              <tr style="height:15pt" height="20">
                <td style="height:15pt" height="20" align="right">55</td>
                <td align="right">5.836739</td>
                <td><br>
                </td>
                <td>SIP Provider</td>
                <td>OpenSips Internal</td>
                <td>SIP</td>
                <td align="right">522</td>
                <td>Request: ACK sip:test@Freeswitch
                  External:5080;transport=udp | </td>
              </tr>
              <tr style="height:15pt" height="20">
                <td style="height:15pt" height="20" align="right">61</td>
                <td align="right">5.838075</td>
                <td><br>
                </td>
                <td>OpenSips Internal</td>
                <td>Freeswitch External</td>
                <td>SIP</td>
                <td align="right">545</td>
                <td>Request: ACK sip:test@Freeswitch
                  External:5080;transport=udp | </td>
              </tr>
              <tr style="height:15pt" height="20">
                <td style="height:15pt" height="20" align="right">70</td>
                <td align="right">6.33254</td>
                <td><br>
                </td>
                <td>Freeswitch Internal</td>
                <td>OpenSips Internal</td>
                <td>SIP/SDP</td>
                <td align="right">1221</td>
                <td>Status: 200 OK | </td>
              </tr>
              <tr style="height:15pt" height="20">
                <td style="height:15pt" height="20" align="right">71</td>
                <td align="right">6.33265</td>
                <td><br>
                </td>
                <td>OpenSips Internal</td>
                <td>SIP Provider</td>
                <td>SIP/SDP</td>
                <td align="right">1132</td>
                <td>Status: 200 OK | </td>
              </tr>
              <tr style="height:15pt" height="20">
                <td style="height:15pt" height="20" align="right">80</td>
                <td align="right">7.332536</td>
                <td><br>
                </td>
                <td>Freeswitch Internal</td>
                <td>OpenSips Internal</td>
                <td>SIP/SDP</td>
                <td align="right">1221</td>
                <td>Status: 200 OK | </td>
              </tr>
              <tr style="height:15pt" height="20">
                <td style="height:15pt" height="20" align="right">81</td>
                <td align="right">7.332666</td>
                <td><br>
                </td>
                <td>OpenSips Internal</td>
                <td>SIP Provider</td>
                <td>SIP/SDP</td>
                <td align="right">1132</td>
                <td>Status: 200 OK | </td>
              </tr>
              <tr style="height:15pt" height="20">
                <td style="height:15pt" height="20" align="right">86</td>
                <td align="right">9.332576</td>
                <td><br>
                </td>
                <td>Freeswitch Internal</td>
                <td>OpenSips Internal</td>
                <td>SIP/SDP</td>
                <td align="right">1221</td>
                <td>Status: 200 OK | </td>
              </tr>
              <tr style="height:15pt" height="20">
                <td style="height:15pt" height="20" align="right">87</td>
                <td align="right">9.332712</td>
                <td><br>
                </td>
                <td>OpenSips Internal</td>
                <td>SIP Provider</td>
                <td>SIP/SDP</td>
                <td align="right">1132</td>
                <td>Status: 200 OK | </td>
              </tr>
              <tr style="height:15pt" height="20">
                <td style="height:15pt" height="20" align="right">136</td>
                <td align="right">13.331858</td>
                <td><br>
                </td>
                <td>Freeswitch Internal</td>
                <td>OpenSips Internal</td>
                <td>SIP/SDP</td>
                <td align="right">1221</td>
                <td>Status: 200 OK | </td>
              </tr>
              <tr style="height:15pt" height="20">
                <td style="height:15pt" height="20" align="right">152</td>
                <td align="right">16.938621</td>
                <td><br>
                </td>
                <td>SIP Provider</td>
                <td>OpenSips Internal</td>
                <td>SIP</td>
                <td align="right">553</td>
                <td>Request: BYE sip:test@Freeswitch
                  External:5080;transport=udp | </td>
              </tr>
              <tr style="height:15pt" height="20">
                <td style="height:15pt" height="20" align="right">158</td>
                <td align="right">16.939786</td>
                <td><br>
                </td>
                <td>OpenSips Internal</td>
                <td>Freeswitch External</td>
                <td>SIP</td>
                <td align="right">577</td>
                <td>Request: BYE sip:test@Freeswitch
                  External:5080;transport=udp | </td>
              </tr>
              <tr style="height:15pt" height="20">
                <td style="height:15pt" height="20" align="right">160</td>
                <td align="right">17.33247</td>
                <td><br>
                </td>
                <td>Freeswitch Internal</td>
                <td>OpenSips Internal</td>
                <td>SIP/SDP</td>
                <td align="right">1221</td>
                <td>Status: 200 OK | </td>
              </tr>
              <tr style="height:15pt" height="20">
                <td style="height:15pt" height="20" align="right">161</td>
                <td align="right">17.37482</td>
                <td><br>
                </td>
                <td>OpenSips Internal</td>
                <td>Freeswitch External</td>
                <td>SIP</td>
                <td align="right">577</td>
                <td>Request: BYE sip:test@Freeswitch
                  External:5080;transport=udp | </td>
              </tr>
              <tr style="height:15pt" height="20">
                <td style="height:15pt" height="20" align="right">163</td>
                <td align="right">17.937941</td>
                <td><br>
                </td>
                <td>SIP Provider</td>
                <td>OpenSips Internal</td>
                <td>SIP</td>
                <td align="right">553</td>
                <td>Request: BYE sip:test@Freeswitch
                  External:5080;transport=udp | </td>
              </tr>
              <tr style="height:15pt" height="20">
                <td style="height:15pt" height="20" align="right">166</td>
                <td align="right">18.375894</td>
                <td><br>
                </td>
                <td>OpenSips Internal</td>
                <td>Freeswitch External</td>
                <td>SIP</td>
                <td align="right">577</td>
                <td>Request: BYE sip:test@Freeswitch
                  External:5080;transport=udp | </td>
              </tr>
              <tr style="height:15pt" height="20">
                <td style="height:15pt" height="20" align="right">170</td>
                <td align="right">18.776373</td>
                <td><br>
                </td>
                <td>OpenSips Internal</td>
                <td>SIP Provider</td>
                <td>SIP</td>
                <td align="right">415</td>
                <td>Status: 408 Request Timeout | </td>
              </tr>
              <tr style="height:15pt" height="20">
                <td style="height:15pt" height="20" align="right">178</td>
                <td align="right">21.332616</td>
                <td><br>
                </td>
                <td>Freeswitch Internal</td>
                <td>OpenSips Internal</td>
                <td>SIP/SDP</td>
                <td align="right">1221</td>
                <td>Status: 200 OK | </td>
              </tr>
              <tr style="height:15pt" height="20">
                <td style="height:15pt" height="20" align="right">222</td>
                <td align="right">25.333161</td>
                <td><br>
                </td>
                <td>Freeswitch Internal</td>
                <td>OpenSips Internal</td>
                <td>SIP/SDP</td>
                <td align="right">1221</td>
                <td>Status: 200 OK | </td>
              </tr>
              <tr style="height:15pt" height="20">
                <td style="height:15pt" height="20" align="right">257</td>
                <td align="right">29.333884</td>
                <td><br>
                </td>
                <td>Freeswitch Internal</td>
                <td>OpenSips Internal</td>
                <td>SIP/SDP</td>
                <td align="right">1221</td>
                <td>Status: 200 OK | </td>
              </tr>
              <tr style="height:15pt" height="20">
                <td style="height:15pt" height="20" align="right">283</td>
                <td align="right">33.334482</td>
                <td><br>
                </td>
                <td>Freeswitch Internal</td>
                <td>OpenSips Internal</td>
                <td>SIP/SDP</td>
                <td align="right">1221</td>
                <td>Status: 200 OK | </td>
              </tr>
              <tr style="height:15pt" height="20">
                <td style="height:15pt" height="20" align="right">306</td>
                <td align="right">37.335049</td>
                <td><br>
                </td>
                <td>Freeswitch Internal</td>
                <td>OpenSips Internal</td>
                <td>SIP/SDP</td>
                <td align="right">1221</td>
                <td>Status: 200 OK | <br>
                  <br>
                </td>
              </tr>
            </tbody>
          </table>
        </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>