[Users] forward_tcp
Ramin Dousti
dousti at gmail.com
Thu Jan 26 16:16:12 CET 2006
Hi Klaus,
It seems that forward_tcp() requires at least one argument. Any other
suggestions?
BTW, when you said "create a new URI and URI contains a transport=tcp
parameter" what part of the URI contains the transport protocol?
Ramin
On 1/26/06, Klaus Darilion <klaus.mailinglists at pernau.at> wrote:
> 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 at 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 at openser.org
> >>>http://openser.org/cgi-bin/mailman/listinfo/users
> >>>
> >>>
> >>
> >>
> >
> >
> > --
> > Ramin
> >
> >
>
>
--
Ramin
More information about the Users
mailing list