Xacli – status type commands – xml formatting, Xacli – status type – xml formatting – TANDBERG 6000MXP User Manual
Page 54
54
D 13887.08
MAY 2008
TANDBERG 3000
MXP
&
6000
MXP
REFERENCE GUIDE FOR SYSTEM INTEGRATORS
XACLI – Status Type Commands – XML Formatting
About the TANDBERG API
The following should be observed:
To be used when the control application is using an XML
•
parser
XML formatting is used when polling for information using
•
the special command
, described later in this sec-
tion of the manual.
To enable XML formatting on feedback issued from the
•
codec, the special command
should be
used.
EXAMPLE
xgetxml status/call[1]
<Status>
<Call item=”1” status=”Synced” type=”Vtlph” protocol=”H323” direction=”Outgoing” logTag=”2”>
<CallRate item=”1”>768</CallRate>
<RemoteNumber item=”1”>558458</RemoteNumber>
<Mute item=”1”>Off</Mute>
<Microphone item=”1”>Off</Microphone>
<Duration item=”1”>887</Duration>
<MuteOutgoing item=”1”>Off</MuteOutgoing>
<Channels item=”1” type=”Incoming”>
<Rate item=”1”>768</Rate>
<Restrict item=”1”>Off</Restrict>
<Encryption item=”1” status=”Off”/>
<Audio item=”1” status=”Active”>
<Protocol item=”1”>G722</Protocol>
<Rate item=”1”>64</Rate>
</Audio>
<Video item=”1” status=”Active”>
<Protocol item=”1”>H264</Protocol>
<Resolution item=”1”>CIF</Resolution>
<Rate item=”1”>704</Rate>
</Video>
<Video item=”2” status=”Inactive”/>
<Data item=”1” status=”Inactive”/>
</Channels>
<Channels item=”2” type=”Outgoing”>
<Rate item=”1”>768</Rate>
<Restrict item=”1”>Off</Restrict>
<Encryption item=”1” status=”Off”/>
<Audio item=”1” status=”Active”>
<Protocol item=”1”>G722</Protocol>
<Rate item=”1”>64</Rate>
</Audio>
<Video item=”1” status=”Active”>
<Protocol item=”1”>H264</Protocol>
<Resolution item=”1”>CIF</Resolution>
<Rate item=”1”>704</Rate>
</Video>
<Video item=”2” status=”Inactive”/>
<Data item=”1” status=”Inactive”/>
</Channels>
</Call>
</Status>
OK
About XML Formatting
XACLI supports three different formattings for status
information:
Default XACLI formatting, provides good human
•
readability, compact format. However, a custom parser
must be used
Complete Path formatting. Recommended when parsing
•
the information line by line.
XML formatting – to be used when using an XML-parser.
•
About Status Type Commands Formatting