<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body 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 class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/Script-CoreVar-2-2#toc43">http://www.opensips.org/Documentation/Script-CoreVar-2-2#toc43</a><br>
<br>
So, instead of <br>
force_send_socket(tcp:10.10.10.10:5060);<br>
you can do<br>
$fs = "</tt><tt><tt>tcp:10.10.10.10:5060</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 class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 29.05.2016 16:20, John Nash wrote:<br>
</div>
<blockquote
cite="mid:CAA4rGPxOFVUFoDC117TiuW_0R+PQ0zRwFQ8pZCvGTgNdDNin0Q@mail.gmail.com"
type="cite">
<div dir="ltr">Is it possible to use avp or any other vraiable as
argument to force_send_socket ?</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>