Translating From Terminal Mode To Xml - Cisco TelePresence SX20 Codec Reference Manual

Application programming interface (api)
Hide thumbs Also See for TelePresence SX20 Codec:
Table of Contents

Advertisement

Cisco TelePresence SX20 Codec
Introduction

Translating from terminal mode to XML

Translating commands
The XML commands maintain the same structure as the
terminal commands, but they use a parent-child relationship
to describe the hierarchy. You can see this structure in the
examples below.
Example 1: Setting up a call.
Terminal
xCommand Dial Number: "12345" Protocol: H323
XML
<Command>
<Dial command="True">
<Number>12345</Number>
<Protocol>H323</Protocol>
</Dial>
</Command>
Example 2: Assigning volume level
Terminal
xCommand Audio Volume Set Level: 50
XML
<Command>
<Audio>
<Volume>
<Set command="True">
<Level>50</Level>
</Set>
</Volume>
</Audio>
</Command>
SX20 Codec API Reference Guide CE9.1, JUNE 2017.
D15316.07
About the API
About the API
xConfiguration
Translating configurations
Translating from xConfiguration to XML is similar to commands,
but with the addition of a special attribute item="NN" for
specifying the index in arrays.
Example: Configuring the input source type for video input
connector 2.
Terminal
xConfiguration Video Input Connector 2
InputSourceType: camera
XML
<Configuration>
<Video>
<Input>
<Connector item="2">
</Connector>
</Input>
</Video>
</Configuration>
xCommand
<InputSourceType>camera</InputSourceType>
27
API Reference Guide
xStatus
Appendices
Copyright © 2017 Cisco Systems, Inc. All rights reserved.

Advertisement

Table of Contents
loading

Table of Contents