On Wed, Aug 27, 2008 at 06:44:28PM +0200, Hauke Zuehl wrote:
> On Mon, Aug 25, 2008 at 12:47:31PM +0100, Mike Jagdis wrote:
>
> >
> > Why should XML be the default? Why should XML even be used?
>
> Well, it is my personal opinion but I think XML is a lot better to parse
> than the stuff currently being presented to the programmer/user.
>
> libxml2 is easy to use so why not XML?
Are you optimising for system and software performance or programmer
laziness? Splitting on the first ':' in a string isn't that difficult.
Nor is letting a library parse it as XML. But one sucks vastly more
resources than the other. If you're not going to question the cost then
I can sell you the right to use some free software for, oh, how much do
you have? :-)
> Why not opbx_ but cw_? Many programmers out there who develop closed
> source software for CW had to change their source, too. ;)
OpenPBX is a trademark (I forget whose, but drop me a note and I'll give
due acknowledgement), just like zaptel is a trademark. CallWeaver and CW
are believed to be fine.
> Anyway, I had some problems with the current output. I think
> it is the output of current active channels and the output of a special
> channel which is a bit strange to parse.
Some things suck more than others. The queue show manager action holds
the sucky record - it just gives CLI output, but without the key/val
headers that warn you to expect it or the terminating marker at the end.
Anyway, I'll be honest (Hey! You at the back there! Stand up this
instant!). The _manager_ format can't be messed with too much but the
_CLI_ output should, I believe, use (fairly simple) XML mark up. The CLI
output is structurally and semantically rich and has never been specified
to follow any fixed format.
Now with marked up CLI and the ability to do CLI via manager sessions
("action: command" or, maybe one day, "GET .../cli?<command> HTTP...")
the possibilities will really open up.
It's not there yet but trunk is on the way...
Mike
--
Mike Jagdis Web: http://www.eris-associates.co.uk
Eris Associates Limited Tel: +44 7780 608 368
Reading, England Fax: +44 118 926 6974
_______________________________________________
Callweaver-dev mailing list
[email protected]
http://lists.callweaver.org/mailman/listinfo/callweaver-dev