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

Tzafrir Cohen tzafrir.cohen at xorcom.com
Sun Jun 10 06:38:39 CDT 2007


On Sun, Jun 10, 2007 at 05:29:08AM -0500, Pari Nannapaneni wrote:
> Tim wrote:
> > Wouldn't it be better to split the file up into smaller files each of  
> > which can be up/down loaded
> > with the existing mechanism ? All Pari then needs to do is to have a  
> > extensions.conf that 'includes' all the little files?
> >
> 
> What we have now is working fine, except there are few times where we are forced to read
> an entire file on the client side - even if we are looking for just one context in it. So i requested
> having an option that can be used to retrieve just the particular context from a config file. 
> 
> The question that was raised is - can we keep adding manager actions 
> like these to the web server, because the objective was to have a 
> really thin webserver that does not steal any significant 
> cpu cycles and to leave all the file parsing to the clients.

The web server indeed should do minimal processing. But this is not the
web server doing work. This is a matter of exposing useful information
available to Asterisk.

There has long been a CLI command 'show dialplan <context>'. So I
suspect that getting just a specific dialplan context is some very
relevant information. And probably the more general request of "get
section foo from onfig file bar".

Ditto for "get me a list of all the section titles from config file
bar".

Does that add much extra processing on the Asterisk server?

-- 
               Tzafrir Cohen       
icq#16849755                    jabber:tzafrir at jabber.org
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com       
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir


More information about the asterisk-dev mailing list