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
Hi!
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
Hello,
On 01/25/06 18:01, 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?
send_tcp() has no support for pseudo-variables. Why are you using send_tcp()? Is it a reason for it? Using forward() you can do:
with openser 1.0.0
avp_printf("s:dst", "$td"); avp_pushto("$duri", "s:dst"); forward_tcp(uri:host, uri:port);
with openser devel:
avp_pushto("$du", "$td"); forward_tcp(uri:host, uri:port);
Cheers, Daniel
upss, sorry, messed the message thread and i believed that was not answered -- but it was, by me as well -- just ignore.
On 02/26/06 17:03, Daniel-Constantin Mierla wrote:
Hello,
On 01/25/06 18:01, 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?
send_tcp() has no support for pseudo-variables. Why are you using send_tcp()? Is it a reason for it? Using forward() you can do:
with openser 1.0.0
avp_printf("s:dst", "$td"); avp_pushto("$duri", "s:dst"); forward_tcp(uri:host, uri:port);
with openser devel:
avp_pushto("$du", "$td"); forward_tcp(uri:host, uri:port);
Cheers, Daniel
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users