[OpenSIPS-Users] b2bua, fix_nated_contact() and EC2

Huw Selley huw.selley at netdev.co.uk
Wed Jul 4 15:02:15 CEST 2012


Hi,

I have an opensips 1.8.0 instance on EC2 that is in front of a pair of freeswitch instances. The opensips instance has an elastic IP address. Amazon do a 1:1 NAT on the elastic IP to the instances internal ip.

When calls hit opensips I do b2b_init_request("refer"); on the initial invite and then load balance between the freeswitch instances (the freeswitches can REFER between each other so I need to b2b the call).

What I have noticed is that the Contact header being sent back to my client is still incorrect after calling fix_nated_contact() from inside onreply_route (and local_route - I wasn't sure which one was correct) - it's still set to the internal IP of the opensips instance so I don't get ACKs correctly routed and the call terminates after 30s or so.
I have set 'advertised_address' as the elastic IP address and have added an 'alias' for the internal address.

Is there some other piece of configuration that I am missing? If it helps I can post my config?

Thanks in advance.
Huw
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120704/804aae2b/attachment.htm>


More information about the Users mailing list