TANDBERG D13639 manual Command documents w

Page 13

TANDBERG MPS API

User Guide

Example 10

From the XML structure below we see that the BaudRate element of SerialPort[1] is configured to 9600. The BaudRate element references the SerialPortBaudrate element in the ValueSpace document, showing the value domain for this configuration.

<Configuration>> <SerialPort item="1">

<BaudRate item="1" valueSpaceRef="/ValueSpace/SerialPortBaudrate[@item='1']">9600</BaudR ate>

.

.

</SerialPort>

.

.

</Configuration>

---

<ValueSpace>

<SerialPortBaudrate item="1" type="Literal"> <Value>1200</Value> <Value>2400</Value> <Value>4800</Value> <Value>9600</Value> <Value>19200</Value> <Value>38400</Value> <Value>57600</Value> <Value>115200</Value>

</SerialPortBaudrate>

</ValueSpace>

To change configurations, the part(s) of the document containing the configurations to be updated should be posted back to the system with the new values. This will be described thoroughly in a later section.

1.4.4 Command documents (w)

Command documents contain descriptions of the supported commands for the system. A Command consists of a Command name and a set of Command parameters. The parameter elements have attributes to denote whether the parameter is optional or required, in a addition to referencing the value domain for the given parameter.

Command parameters do not contain any values when read from the system.

Example 11

The command Dial is defined to take five parameters, while only the Number parameter is required as specified by the attribute required. The value domain for the parameters is referenced by the attribute valueSpaceRef.

<Command>

<Dial item="1">

<Number item="1" required="True" valueSpaceRef="/ValueSpace/RemoteNumber"/>

<SubAddress item="1" required="False" valueSpaceRef="/ValueSpace/SubAddress"/>

11

Image 13
Contents User Guide Tandberg MPS APITable of Contents Disclaimer Tandberg APIExample Introduction to XMLExample Tandberg MPS API Introduction to XML Path Language XPath Status/Call@status=Synced/CallRate Tandberg XML Engine Addressing using XPathStructuring of Information FeedbackTandberg MPS API Documents XML DocumentsStatus Documents r Configuration documents rw Command documents w Command Dial item=1 Number item=1999/Number /Dial Example Bare-bone Https access Introduction to Tandberg XML API Service TxasGetxml FormputxmlExercise ExercisesTandberg MPS API XML-based Advanced Command Line Interface Root commands Accessing XacliAddressing Supported exposure options Exposure optionsXstatus call Misc Format Status-type root commands Xstatus / xhistoryXstatus ? Xstatus call 1 remotenumberXacli *s IP XMLConfiguration help Configuration-type root commands xconfiguration/xdirectoryXconfiguration ? Xdirectory ?Configuration set write Configuration readXconfiguration // ? Xconfiguration ?? Xconfiguration ip/assignment static Command help Command-type root commands xcommandXcommand ? Xcommand ??Example 2.12 xcommand Dial ? Issuing a commandXcommand dial number666 restricton callrate128 subaddress10 Xcommand dial nu666 ron c128 s10Xcommand dial 666 ron 10 Xcommand dial 666 10 128 onXcommand dial Xgetxml status/ip XML Output xgetxmlXfeedback Special CommandsXfeedback ? Xfeedback register status/call/channels/audio/protocolXfeedback register status/call@status=Disconnected Xcom dial Xfeedback register status/call Xcom dialXfeedback register status/call@status=Synced Xcom dial Xcom discXpreferences ? XpreferencesXpreferences detaillevel Xstat call 1 channels 1 audio Xstat call 1 channels 1 audioBaudRate item=12400/BaudRate API Configurations Configuration.xml xconfiguration Tandberg MPS API Tandberg MPS API Http Mode On/Off H323Gatekeeper 1..2 Authentication Password S 0Tandberg MPS API MCU LoS Polarity Positive/Negative LoS RetrySerialInterfaceCard Session RTPSIP Interface Authentication UserName S 0 SIP Mode On/OffSIP Interface Authentication Password S 0 SIP Interface Transport Default TCP/UDPTandberg MPS API Directory.xml xdirectory API Commands Command.xml xcommand CallMuteOutgoing CallTransfer CallTransferToDirEntry Parameters Conferencer OK Result parameters CallMuteVideo ConferenceDisconnect ConferenceModifyConferenceRedefine ConferenceStart ConferenceStop ConferenceShowDuration ConferenceTerminate DefaultValuesSet Dial Parameters Conferencer DialGroupEntry DialInNumberAdd DialInNumberRemoveDescription Textual description of the cause code DialLocalEntry DisconnectCall DisconnectGWCall FeedbackDeregister FeedbackRegister OK Result parameters Error Result parametersParameters Name S 0, 48 The entry’s name FloorToSite FloorToSiteEnd GroupEntryAddGroupEntryDelete LayoutLock LayoutUnLock LocalEntryAdd LocalEntryDelete Windowr CallIDr 1..176 Call Error Result parametersNetworkId NetworkModule OK Result parameters Command used to add option key ProtectNumberRemove VideoTextSet API Status Examples Status.xml xstatusTandberg MPS API Examples Tandberg MPS API Mcuid Feedback Top level attributes Ethernet Top level attributesEnd User GuideNone MediaBoard 1..8 Top level attributesSystemUnit Top level attributes None Summary Top level attributes Status on/off Summary SerialInterfaceCard ISDNInterfaceCardTandberg MPS API Tandberg MPS API NTP SIP SystemLoad SystemClock SystemActivity Options Option Option 64 / *s/end Conference Top level attributes History.xml xhistoryEvent.xml xevent TotalPackets AudioPacketLoss PacketsDroppedEnd