[OpenSIPS-Users] load balancer

Bogdan-Andrei Iancu bogdan at opensips.org
Mon Jan 19 19:28:35 CET 2015


Hello Matt,

In OpenSIPS you need to use the onreply route to get access to those 200 
OK replies (from FreeSwitch). In there use 
fix_nated_sdp("2","FS_public_ip") to rewrite the IP in the SDP:
http://www.opensips.org/html/docs/modules/1.11.x/nathelper.html#id293864

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 19.01.2015 17:54, Matt Broad wrote:
> Hi,
>
>
> I was looking for some guidance on using the load balancer in a NAT 
> environment.
>
> I have the following setup (the IP addresses are made up but should 
> give an indication):
>
> 1 x opensips server with load balancer module - IP 192.168.0.1
> 2 x freeswitch servers - IP 192.168.0.2 & 192.168.0.3
>
> All 3 servers have seperate external IP address routing to their 
> internal IP via our firewall:
> 217.0.0.1 routed to 192.168.0.1 (Opensips)
> 217.0.0.2 routed to 192.168.0.2 (FS1)
> 217.0.0.3 routed to 192.168.0.3 (FS2)
>
> I have the load_balancer table with the following details:
>
> id,  | group_id, |                  dst_uri,            | resources, 
>  | probe_mode, | description
> '1',  |      '1',     |  'sip:192.168.0.2:5080 
> <http://192.168.0.2:5080/>',  |   'pstn=10', |          '2',       |   
>        'FS1'
> '2',  |      '1',     |  'sip:192.168.0.3:5080 
> <http://192.168.0.3:5080/>',  |   'vm=1',     |         '2',       |   
>        'FS2'
>
>
> The call flow is:
>
> SIP Provider --> 217.0.0.1 Opensips --> 192.168.0.2/3 
> <http://192.168.0.2/3>
>
> 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.
>
> With the calls routed directly to the FS servers (removing opensips 
> from the flow), the calls work fine.
>
> Any help would be much appreciated :)
>
>
> thanks
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20150119/a107f405/attachment-0001.htm>


More information about the Users mailing list