[Asterisk-Dev] Manager XML
Olle E. Johansson
oej at edvina.net
Tue Mar 1 13:30:49 MST 2005
I have two patches for manager in IAX2 and SIP in the bug tracker. Both
of them add new functions to list peers and details about one peer in
both text (CLI output) and XML format.
* New CLI commands: sip xshow peer, iax2 xshow peer
* New manager commands: SIPpeers, SIPshowpeer, IAXshowpeer
* Improved manager command: IAXpeers
In the manager, if you add the header "Accept: text/xml" to the
request, you will get XML output. The format is considered
experimental and I really appreciate feedback. I am not trying
to create a huge DTD or model, just encapsulating the output
in XML.
A difference between the normal CLI and the XML listing is that
the XML listing will always show complete data, not strip when
it doesn't fit the format.
Test the patches, add feedback to the bug tracker or send me
e-mail with your input.
Adding "Accept: application/ms-excel" will not give you output
in Microsoft Excel format, sorry twisted ;-)
/O
More information about the asterisk-dev
mailing list