TANDBERG D14172.01 xpreferences xmlstatusfeedback on/off, xpreferences xmlcommandresult on/off

Models: D14172.01

1 84
Download 84 pages 8.98 Kb
Page 36
Image 36
xpreferences xmlstatusfeedback <on/off>

TANDBERG Gatekeeper/Border Controller API User Guide

xpreferences xmlstatusfeedback <on/off>

If xmlstatusfeedback is set to on, all status feedback will be returned in XML-format instead of the standard XACLI status format.

Example 2.26

XACLI-format:

*s NTP (status=Active): Address: "10.0.0.2" Port: 123

LastUpdate: "2008-01-01 12:00:00"

LastCorrection: 1 *s/end

XML-format:

<Status>

<NTP item="1" status="Active"> <Address item="1">10.0.0.2</Address> <Port item="1">123</Port>

<LastUpdate item="1">2008-01-01 12:00:00</LastUpdate> <LastCorrection item="1">1</LastCorrection>

</NTP>

</Status>

xpreferences xmlcommandresult <on/off>

If xmlcommandresult is set to on, response for commands will be returned in XML-format.

Example 2.27

XACLI-format:

xcommand dial alice bob

*r Result (status=OK): callSrc: "alice" callDst: "bob"

Bandwidth: 384

CallSerialNumber: 1

EncryptionMode: Auto

EncryptionType: Auto *r/end

XML-format:

xcommand dial alice bob

<Command>

<DialResult item="1" status="OK">

<callSrc item="1">alice@example.com</callSrc> <callDst item="1">bob@example.com</callDst> <Bandwidth item="1">384</Bandwidth> <CallSerialNumber item="1">1</CallSerialNumber> <EncryptionMode item="1">Auto</EncryptionMode> <EncryptionType item="1">Auto</EncryptionType>

</DialResult>

</Command>

D14172.01

page 36 of 84

Page 36
Image 36
TANDBERG D14172.01 xpreferences xmlstatusfeedback on/off, xpreferences xmlcommandresult on/off, Example, XACLI-format