Arrays In Asterisk

Home » Asterisk Users » Arrays In Asterisk
Asterisk Users 1 Comment

Hi,

I am experimenting with arrays in Asterisk. I am looking at https://wiki.asterisk.org/wiki/display/AST/Function_SHIFT and https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Function_ARRAY.

So for example I Do Set(FOO(1,2,3,4),20,30,40)

What would be the correct way to get both the key and value into an array?
I want to say for instance OPT=1 and then OPT_VAL. Then on the next interaction for OPT=2 and OPT_VAL etc.

Is this possible or am I looking at this wrong?

One thought on - Arrays In Asterisk