[OpenSIPS-Users] load balancing behing a NAT

Madhu madhu1008 at gmail.com
Mon Feb 13 17:54:46 CET 2012


I am trying to use opensips as a loadbalancer for some asterisk Servers that offer the
same exact configuration. (using the load_balancer modul).

The problem ist that my instalation is NATed and there is little i can do about that. 

1) opensips registers with external ip at a sip provider (xxx.yyy.zzz.aaa)
2) the 5060 port is forwarded to opensips[]
3) the media port ranges are forwarded to the asterisk servers (e.g. 6000-6999UDP-> asterisk01[] , 7000-7999UDP-> asterisk02[], ...)
4) if a call arrives it is sent to opensips, which in turn forwards this call to the asterisk
-- this far it works
5) the sip handshake works till the first ACK from the sip provider is received, which is not forwarded to the asterisk machine.

Q1: how to make opensips forward the ACK and all following packages.
Q2: from what i have seen so far the nat_traversal module is designed for
       clients only. and can not directly be used for a server. is this correct?
Q3: if possible, how can nat_traversal be used in this setup?
Q4: In which Database are the current open calls stored?
       I a way to get the current load  to trigger outgoing calls from the asterisk with the least load.

find attached the (anonymized) config + sip call trace from Wireshark

best regards.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: opensips-call.txt
URL: <http://lists.opensips.org/pipermail/users/attachments/20120213/0e8bffd8/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: opensips.cfg
Type: application/octet-stream
Size: 3763 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20120213/0e8bffd8/attachment.obj>

More information about the Users mailing list