Hi Ramin!
Please always cc to the list
Ramin Dousti wrote:
Thanks, Klaus.
Here is the full picture:
I receive a SIP URI "sip:user@dest" on a UDP socket. The only thing I need to do is to proxy this session on a TCP socket to "dest".
I fugured I can do: forward_tcp(dest);
But when I extract dest into an AVP, forwasrd_tcp does not work with an AVP as its argument.
avp_printf("s:dst", "$td"); forward_tcp("s:dst");
it tries to resolve "s:dst" literally.
forward_tcp does not support pseudo variables.
try forward_tcp() without parameters.
regards klaus
If the destination is stored in an AVP, use avp_pushto (http://openser.org/docs/modules/1.0.x/avpops.html#AEN291) to push the new URI into the request URI.
Then use t_relay (make sure the URI contains a transport=tcp parameter).
If the destination is static, use t_relay_to_tcp(ip, port) http://openser.org/docs/modules/1.0.x/tm.html#AEN320
regards klaus
Ramin Dousti wrote:
Hello,
I'm trying to forward a SIP message that's been received by UDP, to $td through TCP. but the following configuration doesn't work:
send_tcp("$td", 5060 );
or send_tcp($td, 5060 ); or avp_printf("s:dst", "$td"); send_tcp("s:dst", 5060 );
Could you please help?
-- Ramin
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
-- Ramin