2008/8/24 Hauke Zuehl <[EMAIL PROTECTED]>

> Hi folks!
>
> I started to write a manager which has XML as output but had to notice
> that different modules use the manager interface, too (e.g. chan_sip.c).
>
> So what about this idea:
> Adding a flag to mansession and therefore to manager.conf
> (e.g. "xml=[yes|no]" and if the user wants XML output he gets XML
> otherwise the "classic" output.
>
> Work seems not too hard because only some modules must be changed.
>
> Looking forward to versions in the future XML output by the manager should
> be the default.
>
What do you think about this idea?


The best (and proper IMO) way would be to have a proper interface (API) for
the manager that all modules use to pass (name,value) pairs, and let the
manager create the proper output depending on session settings. This will
make the output to XML or whatever transparent to users of the manager API
inside Callweaver.

Since any big change should go into the trunk it's not such a huge change to
add.
_______________________________________________
Callweaver-dev mailing list
[email protected]
http://lists.callweaver.org/mailman/listinfo/callweaver-dev

Reply via email to