[Devel] t_relay($avp(xx))

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


Stuart,

the value must be in the sip uri format:
....
$du = "sip:111.222.111.111:5060;transport=tcp";
t_relay();
....

Let me know if it works ;).

regards,
bogdan

Stuart Marsden wrote:
> Hi,
>
> could not get this to work before - but was passing in ip:port
>
> using avp_printf to convert this into a valid uri  works a treat
>
> thanks 1*10^6
>
> we now have the beginnings  of a Nokia e6x proxy to front our softswitch
>
> Stuart
>
>
>
> Bogdan-Andrei Iancu wrote:
>> 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