[Asterisk-Users] Re: What about a higher level configurationlanguage

Kevin Walsh kevin at cursor.biz
Mon Sep 27 10:33:03 MST 2004


Benjamin on Asterisk Mailing Lists [benjk.on.asterisk.ml at gmail.com] wrote:
> On Mon, 27 Sep 2004 09:54:46 +0200, Tom Ivar Helbekkmo <tih at eunetnorge.no> wrote:
> > There is the added complication that one would need a front-end
> > application to generate the configuration file(s).  You do *not* want
> > to force people to write that markup-intensive XML by hand.  It tends
> > to raise the blood pressure to dangerous levels...  :-)
> >
> I wasn't suggesting XML as a means to *configure* Asterisk.
> 
> Instead, I was suggesting XML as a means to *store* Asterisk's
> configuration data. 
> 
I would suggest that any replacement configuration method should at
least have support for conditionals such as if/else.  Perhaps "switch"
too.

Maybe something like this:

    exten => 1234, {
        NoOp(hello world);
        if (${FOO} == ${BAR}) {
            FOO = ${BAZ}
        }
        switch (Dial(...)) {
        case BUSY:
            ...
        case UNAVAILABLE:
            ...
        default:
            ....
        }
    }

I don't think XML is appropriate here.

-- 
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    kevin at cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/




More information about the asterisk-users mailing list