[OpenSIPS-Users] A few simple general question

Bogdan-Andrei Iancu bogdan at opensips.org
Tue May 28 10:31:52 CEST 2013


Hi Nick,

I understood you wrongly - I guess you need the $Ri and $Rp - received
IP and received port (description of the interface the message was
received on by opensips).

Regards,

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


On 05/28/2013 04:13 AM, Nick Khamis wrote:
> 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.
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>



More information about the Users mailing list