[OpenSIPS-Users] t_relay and forward accepts only literals

Daniel Moreira Yokoyama moreira.yokoyama at gmail.com
Wed Mar 23 14:34:53 CET 2016


Hi Dimitry.

I tried this as well. I receive a bad config file.

Thanks anyway.


Atenciosamente,

Daniel Moreira Yokoyama.
@dmyoko
http://twitter.com/dmyoko

TrafficTalks
Um podcast sobre cinema feito a partir de conversas de trânsito.
http://traffictalks.com.br


2016-03-23 4:21 GMT-03:00 Nagorny, Dimitry <dimitry.nagorny at robot5.de>:

> Daniel,
>
>
>
> I had a similar problem and I was able to solve it by doing string
> concatenation:
>
>
>
> forward(„sctp:“+$od+“:“+$op);
>
>
>
>
>
> Best Regards
>
> *Dimitry Nagorny*
>
> Trainee
>
>
>
> *Von:* users-bounces at lists.opensips.org [mailto:
> users-bounces at lists.opensips.org] *Im Auftrag von *Daniel Moreira Yokoyama
> *Gesendet:* Dienstag, 22. März 2016 21:24
> *An:* OpenSIPS users mailling list <users at lists.opensips.org>
> *Betreff:* [OpenSIPS-Users] t_relay and forward accepts only literals
>
>
>
> Hi everyone.
>
>
>
> I'm still trying to undestand why I can't use t_relay(dest) or
> forward(dest) passing a variable instead of a literal.
>
>
>
> In my scenario, all I have to do is to receive a UDP message from a client
> and relay it on SCTP to the remote endpoint.
>
>
>
> The way I'm trying to achieve this is by:
>
>
>
>  force_send_socket(sctp:10.12.8.108:5060);
>
>  forward("sctp:$od:$op");
>
>
>
>
>
> But Opensips doesn't even start up, complaining that the domain and the
> port are invalid.
>
>
>
> I only works in my tests when I put the literal value  (e.g: "sctp:
> 10.0.8.104:5060").
>
>
>
> I don't get it. Why would it restrict something like this?
>
>
>
> Anyone can give me any guidance?
>
>
>
> Thanks a lot.
>
>
>
>
> Atenciosamente,
>
> Daniel Moreira Yokoyama.
>
> @dmyoko
>
> http://twitter.com/dmyoko
>
>
>
> TrafficTalks
> Um podcast sobre cinema feito a partir de conversas de trânsito.
>
> http://traffictalks.com.br
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160323/83319bd2/attachment.htm>


More information about the Users mailing list