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
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/devel



_______________________________________________
Devel mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/devel

Reply via email to