In the OpenSER Core Cookbook should be, but the entry is not filled yet.

http://openser.org/dokuwiki/doku.php?id=openser_core_cookbook

Cheers,
Daniel

On 02/03/06 20:37, Ramin Dousti wrote:
Thank you so much!!!

Is that documented somewhere that I missed?

Ramin

On 2/2/06, Daniel-Constantin Mierla <[EMAIL PROTECTED]> wrote:
Ramin Dousti wrote:
Hi Klaus,

It seems that forward_tcp() requires at least one argument. Any other
suggestions?

you can use:
forward_tcp(uri:host);

If you set the dst_uri via avpops, then it will have priority over
request uri.

Cheers,
Daniel

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 <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]" 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
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users



--
Ramin



--
Ramin

_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users




--
Ramin


_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users

Reply via email to