[OpenSIPS-Users] OpenSIPS own IP variable

Bogdan-Andrei Iancu bogdan at opensips.org
Tue Mar 5 14:04:20 CET 2013


Hi Schneur,

Take care the $Ri reflect the opensips IP which was used to receive the 
request. There is no variable to give you the outbound IP.

Of course, if you do not do any interface exchange in script, the 
inbound and outbound interface will the same.

Regards,

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


On 03/05/2013 11:11 AM, Schneur Rosenberg wrote:
> Thanks, sound right i will try it soon.
>
> On Tue, Mar 5, 2013 at 8:16 AM, Nick Altmann<nick.altmann at gmail.com>  wrote:
>> You may want to use $Ri variable. It contains opensips IP address where
>> request was received.
>>
>> --
>> Nick
>>
>>
>> 2013/3/5 Schneur Rosenberg<rosenberg11219 at gmail.com>
>>> Hi I'm trying to change the ip part of the FROM header, is there a
>>> variable that I can use that has the value of the IP that will be used
>>> to send this packet?
>>>
>>> Here is what I'm trying to do
>>> uac_replace_from("sip:$fU at 70.97.189.150");
>>> but I want the ip address 70.97.189.150 to be replaced by a variable.
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>



More information about the Users mailing list