<div dir="ltr">Hi,<div><br></div><div>just seeing if anyone had any ideas?</div><div><br></div><div>thanks</div><div>Matt</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 22 October 2014 08:42, matt <span dir="ltr">&lt;<a href="mailto:matt@supportedbusiness.com" target="_blank">matt@supportedbusiness.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div><br></div><div>I was looking for some guidance on using the load balancer in a NAT environment.</div><div><br></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<br></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)<br></div><div>217.0.0.3 routed to 192.168.0.3 (FS2)<br></div><div><br></div><div>I have the load_balancer table with the following details:</div><div><br></div><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><div><br></div><div><br></div><div>The call flow is:</div><div><br></div><div>SIP Provider --&gt; 217.0.0.1 Opensips --&gt; <a href="http://192.168.0.2/3" target="_blank">192.168.0.2/3</a></div><div><br></div><div>The issue is, that when the 200 ok response is sent to the SIP provider, the Freeswitch server&#39;s internal IP is being sent in the SDP connection information (c).  This causes the ACK response from the SIP Provider to fail to be sent correctly.</div><div><br></div><div>With the calls routed directly to the FS servers (removing opensips from the flow), the calls work fine.</div><div><br></div><div>Any help would be much appreciated :)</div><div><br></div><div><br></div><div>thanks</div><span class="HOEnZb"><font color="#888888"><div>Matt</div></font></span></div>
</blockquote></div><br></div>