On Wednesday 02 August 2006 18:09, Pele Zico wrote:> Is their a way of implementing arrays in asterisk?? What im trying to do
> is allow the user to input numbers (internal and external) from his line
> thats gets saved via astdb - (follow me purposes) - i would like to look t
> each number individually and check for CF, CFB CFU etc etc . can this be
> done or would i have to use AGI. i prefer not to use agi however
*CLI> show version
Asterisk SVN-trunk-r37291
*CLI> show function ARRAY
? -= Info about function 'ARRAY' =-
[Syntax]
ARRAY(var1[|var2[...][|varN]])
[Synopsis]
Allows setting multiple variables at once
[Description]
The comma-separated list passed as a value to which the function is set will
be interpreted as a set of values to which the comma-separated list of
variable names in the argument should be set.
Hence, Set(ARRAY(var1|var2)=1\,2) will set var1 to 1 and var2 to 2
Note: remember to either backslash your commas in extensions.conf or quote the
entire argument, since Set can take multiple arguments itself.
So probably with 1.4 will come.
Benchev