[Users] forward_tcp
Daniel-Constantin Mierla
daniel at voice-system.ro
Sun Feb 26 16:03:08 CET 2006
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
>
More information about the sr-users
mailing list