[Devel] t_relay($avp(xx))

Stuart Marsden Stuart at et-al.co.uk
Thu Jun 14 22:11:40 CEST 2007


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



More information about the Devel mailing list