ARRAY(var1[,var2[,...]])
(beginning Asterisk 1.4)
Sets multiple variables simultaneously (the name is misleading;
programmers should note that this does not behave the way an array
normally would). ARRAY() can only be used for writing, not
reading. Remember to separate values with commas
and to escape the commas with a backslash
(\), or Asterisk will treat the following characters as an
additional parameter for
Set()!
; Set var1 to 1 and var2 to 2: exten => 123,1,Set(ARRAY(var1,var2)=1\,2)
|
|
|
Internal help for this application in Asterisk 1.4: -= 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 quo te the entire argument, since Set can take multiple arguments itself. diff output to internal help in Asterisk 1.2: -- not available in Version 1.2 -- |