According to the wiki asterisk does have an array function however it appears to only be a shortcut for declaring multiple separate variables.
https://wiki.asterisk.org/wiki/display/AST/Function_ARRAY
Example:
Set(ARRAY(var1,var2)=1,2) will set var1 to 1 and var2 to 2
I’m looking for a way to preform logical operations on an entire set of variables, not just define multiple variables at once.
In short, I’m looking for a better way to write:
same => n,GotoIf($[${var1} != 1] & $[${var2} != 1] & $[${var3} != 1] & $[${var4} != 1] ?label1:label2)
I would like to be able to do:
same => n,GotoIf($[${contenceOfarrayName} != 1]?label1:label2)
But that does not work.