[OpenSIPS-Users] Load Balancer
Matt Broad
matt at supportedbusiness.com
Mon Jun 29 14:32:26 CEST 2015
Hi Bogdan,
thanks for the reply.
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's external IP address, and all works fine now.
I didn't post an update just incase someone had an alternative/better
solution.
thanks
Matt
On 29 June 2015 at 10:34, Bogdan-Andrei Iancu <bogdan at opensips.org> wrote:
> Hi Matt,
>
> 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.
>
> Now, the 200 OK (to INVITE) is sent by FS via the external or internal IP ?
>
> Regards,
>
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developerhttp://www.opensips-solutions.com
>
> On 24.06.2015 17:40, Matt Broad wrote:
>
> Hi,
>
> 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', | 'pstn=10', |
> '2', | 'FS1'
> '2', | '1', | 'sip:192.168.0.3:5080', | 'vm=1', |
> '2', | 'FS2'
>
>
> 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.
> 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.
>
>
>
> No. Time
> Source Destination Protocol Length Info 42 5.827674
> SIP Provider OpenSips Internal SIP/SDP 873 Request: INVITE
> sip:test at Opensips External | 43 5.828043
> OpenSips Internal SIP Provider SIP 397 Status: 100 Giving a try | 44
> 5.828159
> OpenSips Internal Freeswitch Internal SIP/SDP 1039 Request: INVITE
> sip:test at Opensips External | 45 5.828605
> Freeswitch Internal OpenSips Internal SIP 588 Status: 100 Trying | 46
> 5.832171
> Freeswitch Internal OpenSips Internal SIP/SDP 1221 Status: 200 OK | 54
> 5.833451
> OpenSips Internal SIP Provider SIP/SDP 1132 Status: 200 OK | 55
> 5.836739
> SIP Provider OpenSips Internal SIP 522 Request: ACK sip:test at Freeswitch
> External:5080;transport=udp | 61 5.838075
> OpenSips Internal Freeswitch External SIP 545 Request: ACK
> sip:test at Freeswitch External:5080;transport=udp | 70 6.33254
> Freeswitch Internal OpenSips Internal SIP/SDP 1221 Status: 200 OK | 71
> 6.33265
> OpenSips Internal SIP Provider SIP/SDP 1132 Status: 200 OK | 80
> 7.332536
> Freeswitch Internal OpenSips Internal SIP/SDP 1221 Status: 200 OK | 81
> 7.332666
> OpenSips Internal SIP Provider SIP/SDP 1132 Status: 200 OK | 86
> 9.332576
> Freeswitch Internal OpenSips Internal SIP/SDP 1221 Status: 200 OK | 87
> 9.332712
> OpenSips Internal SIP Provider SIP/SDP 1132 Status: 200 OK | 136
> 13.331858
> Freeswitch Internal OpenSips Internal SIP/SDP 1221 Status: 200 OK | 152
> 16.938621
> SIP Provider OpenSips Internal SIP 553 Request: BYE sip:test at Freeswitch
> External:5080;transport=udp | 158 16.939786
> OpenSips Internal Freeswitch External SIP 577 Request: BYE
> sip:test at Freeswitch External:5080;transport=udp | 160 17.33247
> Freeswitch Internal OpenSips Internal SIP/SDP 1221 Status: 200 OK | 161
> 17.37482
> OpenSips Internal Freeswitch External SIP 577 Request: BYE
> sip:test at Freeswitch External:5080;transport=udp | 163 17.937941
> SIP Provider OpenSips Internal SIP 553 Request: BYE sip:test at Freeswitch
> External:5080;transport=udp | 166 18.375894
> OpenSips Internal Freeswitch External SIP 577 Request: BYE
> sip:test at Freeswitch External:5080;transport=udp | 170 18.776373
> OpenSips Internal SIP Provider SIP 415 Status: 408 Request Timeout |
> 178 21.332616
> Freeswitch Internal OpenSips Internal SIP/SDP 1221 Status: 200 OK | 222
> 25.333161
> Freeswitch Internal OpenSips Internal SIP/SDP 1221 Status: 200 OK | 257
> 29.333884
> Freeswitch Internal OpenSips Internal SIP/SDP 1221 Status: 200 OK | 283
> 33.334482
> Freeswitch Internal OpenSips Internal SIP/SDP 1221 Status: 200 OK | 306
> 37.335049
> Freeswitch Internal OpenSips Internal SIP/SDP 1221 Status: 200 OK |
>
>
>
> _______________________________________________
> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20150629/ee18dfd4/attachment-0001.htm>
More information about the Users
mailing list