<div dir="ltr">Hi Kenny,<div><br></div><div>thanks for the reply. For some reason this is only just showing in my email so sorry for the delayed response.</div><div><br></div><div>Could you explain how you would do this is asterisk please? This may help in me solving the issue :) </div><div><br></div><div><br></div><div><br></div><div>thanks</div><div>Matt</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 23 October 2014 21:40, Kenny Watson <span dir="ltr"><<a href="mailto:KWatson@geniusppt.com" target="_blank">KWatson@geniusppt.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">Hi Matt,
<div><br>
The SDP is being generated by freeswitch and you would need to make it think that when its sending to kamailio, that kamailio is an external host so freeswitch uses its public IP address in the SDP that it is then forwarded on directly to the carrier.</div>
<div><br>
</div>
<div>I've never used freeswitch but thats roughly what you'd do with asterisk.</div>
<div><br>
Thanks</div>
<div>Kenny Watson</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div style="font-family:Times New Roman;color:#000000;font-size:16px">
<hr>
<div style="direction:ltr"><font face="Tahoma" color="#000000"><b>From:</b> <a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a> [<a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a>] on behalf of matt [<a href="mailto:matt@supportedbusiness.com" target="_blank">matt@supportedbusiness.com</a>]<br>
<b>Sent:</b> 22 October 2014 08:42<br>
<b>To:</b> <a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a><br>
<b>Subject:</b> [OpenSIPS-Users] Load balancer setup<br>
</font><br>
</div><div><div class="h5">
<div></div>
<div>
<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 & 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>'1', | '1', | 'sip:<a href="http://192.168.0.2:5080" target="_blank">192.168.0.2:5080</a>', | 'pstn=10', | '2', | 'FS1'</div>
<div>'2', | '1', | 'sip:<a href="http://192.168.0.3:5080" target="_blank">192.168.0.3:5080</a>', | 'vm=1', | '2', | 'FS2'</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>The call flow is:</div>
<div><br>
</div>
<div>SIP Provider --> 217.0.0.1 Opensips --> <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'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>
<div>Matt</div>
</div>
</div>
</div></div></div>
</div>
</div>
</div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>