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
Jamie Carl
2003-May-20 22:31 UTC
[Asterisk-Users] Web Interface and/or reload from linux CLI
Hey all, Just wondering if anyone knows whether there is a web interface for asterisk for modifying extensions? Something that is user friendly and usable by say, an 'Windoze Guru', ie someone who know jack about linux. Otherwise, does anyone know if it's possible to get asterisk to reload the config, particularly the extensions.conf file, from the command line? If that is at least possible I'll write an interface myself to edit configs/extensions. Thanks all, Jamie Carl
You can imagine that we can simulate arrays like this: myarray_0=192.168.3.4 myarray_1=192.168.3.1 and refering to it when variable pointer=1 ${myarray_${pointer}} Martin On Wed, 21 May 2003, Surajee Ratnayake wrote:> 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 >