<div dir="ltr">Hi Bogdan,<div><br></div><div>thanks for the reply.</div><div>The issue was that the Opensips box could not contact the FS box using the FS external IP address. I have solved the issue by making some changes to the firewall.  I have added a loop back (?) so that the Opensips box can contact the FS box using it&#39;s external IP address, and all works fine now.  I didn&#39;t post an update just incase someone had an alternative/better solution.<br></div><div><br></div><div>thanks</div><div>Matt</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 29 June 2015 at 10:34, Bogdan-Andrei Iancu <span dir="ltr">&lt;<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div 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 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 class="h5">
    <div>On 24.06.2015 17:40, Matt Broad wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      <div dir="ltr"><span style="font-size:12.8000001907349px">Hi,</span>
        <div style="font-size:12.8000001907349px"><br>
        </div>
        <span>
          <div>
            <div>I have the following setup (the IP addresses
              are made up but should give an indication):</div>
            <div><br>
            </div>
            <div>1 x opensips server with load balancer module
              - IP 192.168.0.1</div>
            <div>2 x freeswitch servers - IP 192.168.0.2 &amp;
              192.168.0.3</div>
            <div><br>
            </div>
            <div>All 3 servers have seperate external IP
              address routing to their internal IP via our firewall:</div>
            <div>217.0.0.1 routed to 192.168.0.1 (Opensips)</div>
            <div>217.0.0.2 routed to 192.168.0.2 (FS1)</div>
            <div>217.0.0.3 routed to 192.168.0.3 (FS2)</div>
            <div><br>
            </div>
            <div>I have the load_balancer table with the
              following details:</div>
            <div><br>
            </div>
            <div>id,  | group_id, |                  dst_uri,  
                       | resources,  | probe_mode, | description</div>
            <div>&#39;1&#39;,  |      &#39;1&#39;,     |  &#39;sip:<a href="http://192.168.0.2:5080" target="_blank">192.168.0.2:5080</a>&#39;,
               |   &#39;pstn=10&#39;, |          &#39;2&#39;,       |          &#39;FS1&#39;</div>
            <div>&#39;2&#39;,  |      &#39;1&#39;,     |  &#39;sip:<a href="http://192.168.0.3:5080" target="_blank">192.168.0.3:5080</a>&#39;,
               |   &#39;vm=1&#39;,     |         &#39;2&#39;,       |          &#39;FS2&#39;</div>
            <div><br>
            </div>
            <div><br>
            </div>
            <div>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>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></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></div>