TANDBERG Gatekeeper/Border Controller API D14172.01 User Manual

Page 36

Advertising
background image

TANDBERG Gatekeeper/Border Controller API User Guide

D14172.01

page 36 of 84

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">[email protected]</callSrc>
<callDst item="1">[email protected]</callDst>
<Bandwidth item="1">384</Bandwidth>
<CallSerialNumber item="1">1</CallSerialNumber>
<EncryptionMode item="1">Auto</EncryptionMode>
<EncryptionType item="1">Auto</EncryptionType>
</DialResult>
</Command>

Advertising