<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>&#39;1&#39;,  |      &#39;1&#39;,     |  &#39;sip:<a href="http://192.168.0.2:5080">192.168.0.2:5080</a>&#39;,  |   &#39;pstn=10&#39;, |          &#39;2&#39;,       |          &#39;FS1&#39;</div><div style>&#39;2&#39;,  |      &#39;1&#39;,     |  &#39;sip:<a href="http://192.168.0.3:5080">192.168.0.3:5080</a>&#39;,  |   &#39;vm=1&#39;,     |         &#39;2&#39;,       |          &#39;FS2&#39;</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 border="0" cellpadding="0" cellspacing="0" width="913" style="border-collapse:collapse;width:686pt"><colgroup><col width="29" style="width:22pt"><col width="70" style="width:53pt"><col width="25" style="width:19pt"><col width="129" span="2" style="width:97pt"><col width="59" style="width:44pt"><col width="49" style="width:37pt"><col width="423" style="width:317pt"></colgroup><tbody><tr height="20" style="height:15pt"><td height="20" width="29" style="height:15pt;width:22pt">No.</td><td width="70" style="width:53pt">Time</td><td width="25" style="width:19pt"></td><td width="129" style="width:97pt">Source</td><td width="129" style="width:97pt">Destination</td><td width="59" style="width:44pt">Protocol</td><td width="49" style="width:37pt">Length</td><td width="423" style="width:317pt">Info</td></tr><tr height="20" style="height:15pt"><td height="20" align="right" style="height:15pt">42</td><td align="right">5.827674</td><td></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 height="20" style="height:15pt"><td height="20" align="right" style="height:15pt">43</td><td align="right">5.828043</td><td></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 height="20" style="height:15pt"><td height="20" align="right" style="height:15pt">44</td><td align="right">5.828159</td><td></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 height="20" style="height:15pt"><td height="20" align="right" style="height:15pt">45</td><td align="right">5.828605</td><td></td><td>Freeswitch Internal</td><td>OpenSips Internal</td><td>SIP</td><td align="right">588</td><td>Status: 100 Trying | </td></tr><tr height="20" style="height:15pt"><td height="20" align="right" style="height:15pt">46</td><td align="right">5.832171</td><td></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 height="20" style="height:15pt"><td height="20" align="right" style="height:15pt">54</td><td align="right">5.833451</td><td></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 height="20" style="height:15pt"><td height="20" align="right" style="height:15pt">55</td><td align="right">5.836739</td><td></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 height="20" style="height:15pt"><td height="20" align="right" style="height:15pt">61</td><td align="right">5.838075</td><td></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 height="20" style="height:15pt"><td height="20" align="right" style="height:15pt">70</td><td align="right">6.33254</td><td></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 height="20" style="height:15pt"><td height="20" align="right" style="height:15pt">71</td><td align="right">6.33265</td><td></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 height="20" style="height:15pt"><td height="20" align="right" style="height:15pt">80</td><td align="right">7.332536</td><td></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 height="20" style="height:15pt"><td height="20" align="right" style="height:15pt">81</td><td align="right">7.332666</td><td></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 height="20" style="height:15pt"><td height="20" align="right" style="height:15pt">86</td><td align="right">9.332576</td><td></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 height="20" style="height:15pt"><td height="20" align="right" style="height:15pt">87</td><td align="right">9.332712</td><td></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 height="20" style="height:15pt"><td height="20" align="right" style="height:15pt">136</td><td align="right">13.331858</td><td></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 height="20" style="height:15pt"><td height="20" align="right" style="height:15pt">152</td><td align="right">16.938621</td><td></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 height="20" style="height:15pt"><td height="20" align="right" style="height:15pt">158</td><td align="right">16.939786</td><td></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 height="20" style="height:15pt"><td height="20" align="right" style="height:15pt">160</td><td align="right">17.33247</td><td></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 height="20" style="height:15pt"><td height="20" align="right" style="height:15pt">161</td><td align="right">17.37482</td><td></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 height="20" style="height:15pt"><td height="20" align="right" style="height:15pt">163</td><td align="right">17.937941</td><td></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 height="20" style="height:15pt"><td height="20" align="right" style="height:15pt">166</td><td align="right">18.375894</td><td></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 height="20" style="height:15pt"><td height="20" align="right" style="height:15pt">170</td><td align="right">18.776373</td><td></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 height="20" style="height:15pt"><td height="20" align="right" style="height:15pt">178</td><td align="right">21.332616</td><td></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 height="20" style="height:15pt"><td height="20" align="right" style="height:15pt">222</td><td align="right">25.333161</td><td></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 height="20" style="height:15pt"><td height="20" align="right" style="height:15pt">257</td><td align="right">29.333884</td><td></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 height="20" style="height:15pt"><td height="20" align="right" style="height:15pt">283</td><td align="right">33.334482</td><td></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 height="20" style="height:15pt"><td height="20" align="right" style="height:15pt">306</td><td align="right">37.335049</td><td></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>