[OpenSIPS-Users] Set $(branch(q)[0]) with AVP or Script Variable
duane.larson at gmail.com
duane.larson at gmail.com
Thu Jun 30 15:33:21 CEST 2011
I am guessing you are using the latest trunk version of OpenSIPS since you
aren't using s: or i: with your AVP. The older versions don't appear to let
you do it so I will upgrade and it should work if you can do it.
Thanks.
On Jun 30, 2011 3:19am, Razvan Crainea <razvancrainea at opensips.org> wrote:
> Hello Duane,
> 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.
> I've just tested the code below and works fine:
> $avp(q) = 1000;
> $(branch(q)[0]) = $avp(q);
> Please double check your AVP really has an integer value and not a
> string one (something like "1000").
> Regards,
> Razvan Crainea
> OpenSIPS Developer
> On 29.06.2011 19:03, duane.larson at gmail.com wrote:
> 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
> $(branch(q)[1]) = $avp(s:exten1_q_value);
> 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
> _______________________________________________
> 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/20110630/713ee2ae/attachment.htm>
More information about the Users
mailing list