[Asterisk-Users] Using Arrays

Surajee Ratnayake surajee at infotechs.lk
Tue May 20 22:08:28 MST 2003


hi,

can we have arrays in contexts?
i tried like this, but didn't work :-(

declaration
myarray[0]=192.168.3.4
myarray[1]=192.168.3.1

usage
myvalue = ${myarray[${myval}]}

pls tell a way to do this

Thanx a lot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20030521/f8b61c89/attachment.htm


More information about the asterisk-users mailing list