Hi.
In a given scenario my routing script has to change the transport protocol to
SCTP.
I tried to do it by using the t_relay(proto:server:port) version, but although
it worked fine on my tests, when I used in my real case (which has not a
predefined server to use as a literal) I found out that OpenSIPS give an error
on StartUp-time complaining about the config file. So I assume it tries to eval
the string at start up, and every way tried ("sctp:" + $od + ":" + $oP, or
simply "sctp:$od:$oP")... none have worked.
But, when I tried to just concatenate the transport clause to $du, it worked
just fine.
$du = "sip:" + $od + ":" + $op + ";transport=sctp";
The thing is, that was on 1.9.1.
But now I got a pretty new 2.1.2 version running on a test environment in order
to see how would it be to migrate to a newer version... and as odd as it may
be, the transport clause has no effect in the relay anymore (it keeps it in UDP
instead).
Am I doing something wrong? The t_relay(proto:server:port) still seem to not
work with anything other than literal strings, and I really need to be able to
convert the request to sctp in this scenario.
Thanks.
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users