[asterisk-dev] Feature Request - new manager commands - 'getcontexts' and 'getcontext'

Pari Nannapaneni pari at digium.com
Sat Jun 9 12:38:19 CDT 2007

Hi everyone,

The digium PQ lab was recently testing the asterisk-GUI with hundreds of user extensions
to check the performance of the GUI - the gui was working reasonably well for upto a couple of hundred users, after which it started to take really long time to load/parse each page.

This limit can be raised significantly by fixing some known issues in the existing gui framework
and i am working on that,  but still it would be nice to have manager commands to facilitate manipulating large config files in future. I request to add a couple of new rawman actions for doing this in asterisk trunk. 

getconfig (exists)    - returns all the contexts and their contents in a config file

updateconfig (exists)  - edit/append/delete a particular context in a config file

getcontexts(*new) - returns only the list of contexts in a config file - and NOT their contents
   like: action=getcontexts&filename=somefile.conf should return just the list of all context names

getcontext(*new) - returns the content of a particular context
   like: action=getcontext&filename=somefile.conf&context=context-1  should return only context-1
       exten = s,1,NoOp(line1)
       exten = s,2,.....


More information about the asterisk-dev mailing list