[OpenSIPS-Users] force_send_socket arguments

John Nash john.nash778 at gmail.com
Mon May 30 10:29:15 CEST 2016


wow. Cool !!!

On Mon, May 30, 2016 at 1:57 PM, Bogdan-Andrei Iancu <bogdan at opensips.org>
wrote:

> Hi John,
>
> The function does not accept any kind of variables, but, with the same
> behavior, you can use the $fs variable (instead of the function):
>     http://www.opensips.org/Documentation/Script-CoreVar-2-2#toc43
>
> So, instead of
>     force_send_socket(tcp:10.10.10.10:5060);
> you can do
>     $fs = "tcp:10.10.10.10:5060";
>
> And on the right side of the assignment you can use any vars you need:
>     $fs = "tcp:"+$avp(my_IP)+":5060";
>
> Regards,
>
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developerhttp://www.opensips-solutions.com
>
> On 29.05.2016 16:20, John Nash wrote:
>
> Is it possible to use avp or any other vraiable as argument
> to force_send_socket ?
>
>
> _______________________________________________
> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160530/5020a2e7/attachment.htm>


More information about the Users mailing list