[asterisk-users] Arrays in Asterisk

Dovid Bender dovid at telecurve.com
Wed Dec 22 21:55:39 CST 2021


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)=10,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=10. Then on the next
interaction for OPT=2 and OPT_VAL=20 etc.

Is this possible or am I looking at this wrong?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20211222/a64aae3c/attachment.html>


More information about the asterisk-users mailing list