[OpenSIPS-Users] A few simple general question
Nick Khamis
symack at gmail.com
Tue May 28 03:13:13 CEST 2013
Yeah... I did not resolve my problem as I thought I did earlier! Maybe
if I try to explain my problem a little better. Our opensips servers
are behind NAT, so what I am trying to do is change the
"advertised_address" according to relays, and branches that are sent
out either locally, or outside. Going back to my example
if relay/branch destination == local
set_advertised_address(opensips local opensips ip address);
else
set_advertised_address(opensips pulibc opensips ip address);
By destination I don't mean "ru or di", I mean the IP address where
OpenSIPS will be relaying/branching the next SIP message to (using the
IP header example again):
U 2013/05/26 19:26:14.807995 192.168.2.10:5060 -> 192.168.2.20:5060
or
U 2013/05/26 19:26:14.807995 192.168.2.10:5060 -> 74.15.344.23:5060
Where "192.168.2.10:5060" is the OpenSIPS server itself. And
"192.168.2.20:5060",
as well as "74.15.344.23:5060" are the destinations of which I am
trying to find a
variable for.
I currently have it working with client_nat_test(3), but not sure if
that is the best function for it...
Kind Regards,
Nick from Toronto.
More information about the Users
mailing list