Xpreferences itemnumber, Xpreferences xmlstatusfeedback, Xacli – special commands – xpreferences (ii) – TANDBERG 6000MXP User Manual

Page 60

Advertising
background image

60

D 13887.08
MAY 2008

TANDBERG 3000

MXP

&

6000

MXP

REFERENCE GUIDE FOR SYSTEM INTEGRATORS

XACLI – Special Commands – xpreferences (II)

About the TANDBERG API

xpreferences xmlstatusfeedback <on/off>
If xmlstatusfeedback is set to on, all status feedback will be returned
in XML-format instead of the default XACLI status format (or complete path formatting).

EXAMPLE

XACLI-format:

*s Call 1 (status=Synced, type=Vtlph, protocol=H323, direction=Outgoing, logTag=78):

Channels 1 (type=Incoming):

Rate: 768

Audio (status=Active):

Protocol: G722

Rate: 64

*s/end

XML format

<Status>

<Call item=”1” status=”Synced” type=”Vtlph” protocol=”H323” direction=”Outgoing” logtag=”78”>

<Channels item=”1” type=”Incoming”>

<Rate item=”1”>768</Rate>

<Audio item=”1” status=”Active”>

<Protocol item=”1”>G722</Protocol>

<Rate item=”1”>64</Rate>

</Audio>

</Channels>

</Call>

</Status>

xpreferences xmlstatusfeedback

xpreferences itemnumber <on/off>
All Status and Configuration elements consist of an element name and an
element item number. However, XACLI hides the item number for an element
if there only exist one item of the given element.
If xpreferences itemnumber is set to on, XACLI will display item numbers for
all elements. This is to make it easier to parse the information sent from
the codec. By setting “

xpreferences itemnumber on

”, the parser can

always expect an item number to follow an element name.

EXAMPLE:

Reading configurations of Serial Port 1 with xpreferences item-

number is set to

OFF

:

xconfiguration serialport 1
*c xConfiguration SerialPort 1 BaudRate: 9600
*c xConfiguration SerialPort 1 Parity: None
*c xConfiguration SerialPort 1 DataBits: 8
*c xConfiguration SerialPort 1 StopBits: 1
*c xConfiguration SerialPort 1 Mode: Control
OK

EXAMPLE:

Reading configurations of Serial Port 1 with xpreferences item-

number is set to

ON

:

xpreferences itemnumber on

OK

xconfiguration serialport 1
*c xConfiguration SerialPort 1 BaudRate 1: 9600
*c xConfiguration SerialPort 1 Parity 1: None
*c xConfiguration SerialPort 1 DataBits 1: 8
*c xConfiguration SerialPort 1 StopBits 1: 1
*c xConfiguration SerialPort 1 Mode 1: Control
OK

xpreferences itemnumber

Advertising
This manual is related to the following products: