Hi,

you may force only the protocol by adding the transport parameter to the ruri:
      add_uri_param("transport=tcp");
see http://openser.org/docs/modules/1.1.x/uri.html#AEN118 ;

but this will change the RURI and the param will be also sent out...
if you do no want to be visible as part of RURI, use the dst_uri to specify a tcp outbound proxy:
      avp_printf("$avp(i:13)","$ru;transport=tcp");
      push_to("$du","$avp(i:13)");
regards,
bogdan



T.R. Missner wrote:

Hello,

I am trying to understand how to setup openser to use only TCP for both
incoming and outgoing signaling.

Currently I have set

listen=tcp:xxx.xxx.xxx.xxx:5060

This forces openser to only listen on TCP socket and handles incoming
signaling.

Now using the statefull module I call t_relay() and the signaling goes
out UDP.

I can force the signaling out using tcp by doing the following,

t_relay("tcp:xxx.xxx.xxx.xxx:xxxx")

The problem with this is I don't know what the ip:port is going to be in
all cases.

I would like to do something more akin to t_relay("tcp") so the relay address is simply the address in the RURI

I realize there was a function t_relay_to_tcp in the previous version
but has been deprecated and would require the ip:port anyway.

Is there a way to pass a variable into t_relay to represent the ip:port
combo?

Something like t_relay("tcp:" + uri:host + uri:port )
I understand the syntax above won't work but this is an example of what
I am looking for.

Is there any simple way to force TCP for outgoing signaling?

What about adding parameter=tcp to the record route?

Thanks

T.R.

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



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

Reply via email to