[Devel] t_relay($avp(xx))

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


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