[Devel] t_relay($avp(xx))

Bogdan-Andrei Iancu bogdan at voice-system.ro
Fri Jun 15 00:32:22 CEST 2007


no, the RURI is not changed. $du is acting as an outbound proxy.

regards,
bogdan

Stuart Marsden wrote:
> Hi,
>
> Won't that also change the request line ?
>
> I need that to remain unaltered - just force the message to be sent to 
> a different IP address
>
> eg "invite fred at 192.168.1.2"  to be sent to 84.23.45.56:5062
>
> Stuart
>
> Bogdan-Andrei Iancu wrote:
>> Hi Stuart,
>>
>> use the $du (destination uri) to force dynamically a destination:
>>
>> ....
>> $du = $avp(my_avp);
>> t_relay();
>> ....
>>
>> regards,
>> bogdan
>>
>> Stuart Marsden wrote:
>>> Hi,
>>>
>>> I am experimenting with a phone behind NAT where I need to send the 
>>> private IP address in the request line (which is correct in the 
>>> message) ,  but actually send the request to the public IP address 
>>> of the router.
>>>
>>> I get exactly the correct behavior if I use a constant
>>>
>>> t_relay("xx.xx.xx.xx:50nn");
>>>
>>> but I need to construct the destination IP / port dynamically - 
>>> without changing the request line e.g.
>>>
>>> t_relay($avp(xx))
>>>
>>> is this possible just by script ,  without hacking   t_forward_nonack ?
>>>
>>> thanks in advance
>>>
>>> Stuart
>>>
>>> _______________________________________________
>>> Devel mailing list
>>> Devel at openser.org
>>> http://openser.org/cgi-bin/mailman/listinfo/devel
>>>
>




More information about the Devel mailing list