[OpenSIPS-Users] force_send_socket arguments

Bogdan-Andrei Iancu bogdan at opensips.org
Mon May 30 10:27:02 CEST 2016


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 Developer
http://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 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/20160530/4d45dae9/attachment.htm>


More information about the Users mailing list