<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Hello Duane,<br>
<br>
Indeed the $(branch(q)[x]) should receive only int values. But
according to your logs, the $avp(s:exten1_q_value) seems to have a
string value.<br>
I've just tested the code below and works fine:<br>
<b><br>
$avp(q) = 1000;<br>
$(branch(q)[0]) = $avp(q);<br>
</b><br>
Please double check your AVP really has an integer value and not a
string one (something like "1000").<br>
<br>
Regards,<br>
<pre class="moz-signature" cols="72">Razvan Crainea
OpenSIPS Developer
</pre>
On 29.06.2011 19:03, <a class="moz-txt-link-abbreviated" href="mailto:duane.larson@gmail.com">duane.larson@gmail.com</a> wrote:
<blockquote cite="mid:20cf303638818d67ac04a6dbeeb0@google.com"
type="cite">Would it be possible to allow us to set the
$(branch(q)[x]) with an AVP or Script Variable? Currently when you
try to set the branch q value with an AVP that is an Integer <br>
<br>
$(branch(q)[1]) = $avp(s:exten1_q_value);
<br>
<br>
I see in syslog that it complains because the value on the right
is not an int. Even though I added the AVP value as an Integer
OpenSIPS doesn't like it. Didn't know if this could be added to
the OpenSIPS 1.7 or a trunk
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
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>
</body>
</html>