<div dir="ltr">wow. Cool !!!</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 30, 2016 at 1:57 PM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<tt>Hi John,<br>
<br>
The function does not accept any kind of variables, but, with the
same behavior, you can use the $fs variable (instead of the
function):<br>
<a href="http://www.opensips.org/Documentation/Script-CoreVar-2-2#toc43" target="_blank">http://www.opensips.org/Documentation/Script-CoreVar-2-2#toc43</a><br>
<br>
So, instead of <br>
force_send_socket(tcp:<a href="http://10.10.10.10:5060" target="_blank">10.10.10.10:5060</a>);<br>
you can do<br>
$fs = "</tt><tt><tt>tcp:<a href="http://10.10.10.10:5060" target="_blank">10.10.10.10:5060</a></tt>";<br>
<br>
And on the right side of the assignment you can use any vars you
need:<br>
</tt><tt>$fs = "</tt><tt><tt>tcp:"+$avp(my_IP)+":5060</tt>";<br>
<br>
Regards,<br>
</tt>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre><span class="">
<div>On 29.05.2016 16:20, John Nash wrote:<br>
</div>
</span><blockquote type="cite"><span class="">
<div dir="ltr">Is it possible to use avp or any other vraiable as
argument to force_send_socket ?</div>
<br>
<fieldset></fieldset>
<br>
</span><pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
</blockquote></div><br></div>