TANDBERG D13639 manual XML Documents, Status Documents r

Page 11

TANDBERG MPS API

User Guide

1.4 The XML Documents

1.4.1 Documents

The XML Data in the TANDBERG systems are divided into three main types of documents. The division is based on whether the information is Read Information, Write Information or Read-Writeinformation:

1.Status documents (r): Documents holding all available Status Information in the system.

Supported documents:

a.status.xml

b.history.xml

2.Configuration documents (rw): Documents holding all system configurations. Supported documents:

a.configuration.xml

b.directory.xml

3.Command documents (w): Documents defining the supported system commands used to initiate system processes. This is write data, i.e. the parameter values for a given command are defined by the user and posted to the system. The posted values will not be returned when reading the document from the system. Reading a command document from the system returns descriptions of the supported commands with empty parameter values.

Supported documents:

a.command.xml

4.Meta Documents: Meta documents contain information that can be referenced by other documents, e.g. value domains of configurations or command parameters. Supported Meta Documents:

a.valuespace.xml

1.4.2 Status Documents (r)

The Status Documents are characterised by an extensive use of XML attributes. In addition to holding information, the attributes are used to reflect the structure of the sub-elements, which are dependent on the state of the system.

Example 9

The element Call will contain different sub elements depending on the call state, call type or direction:

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

<CallRate item="1">768</CallRate> <RemoteNumber item="1">58458</RemoteNumber> <Mute item="1">Off</Mute>

<Microphone item="1">Off</Microphone> <Duration item="1">15</Duration> <Channels item="1" type="Incoming">

<Rate item="1">768</Rate> <Restrict item="1">Off</Restrict> <Encryption item="1" status="Off" /> <Audio item="1" status="Active">

<Protocol item="1">G722</Protocol> <Rate item="1">64</Rate>

9

Image 11
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 Feedback Addressing using XPathTandberg XML Engine Structuring of InformationTandberg MPS API Status Documents r XML DocumentsDocuments Configuration documents rw Command documents w Command Dial item=1 Number item=1999/Number /Dial Example Formputxml Introduction to Tandberg XML API Service TxasBare-bone Https access GetxmlExercise ExercisesTandberg MPS API XML-based Advanced Command Line Interface Addressing Accessing XacliRoot commands Xstatus call Exposure optionsSupported exposure options Misc Xstatus call 1 remotenumber Status-type root commands Xstatus / xhistoryFormat Xstatus ?Xacli *s IP XMLXdirectory ? Configuration-type root commands xconfiguration/xdirectoryConfiguration help Xconfiguration ?Xconfiguration // ? Xconfiguration ?? Configuration readConfiguration set write Xconfiguration ip/assignment static Xcommand ?? Command-type root commands xcommandCommand help Xcommand ?Xcommand dial nu666 ron c128 s10 Issuing a commandExample 2.12 xcommand Dial ? Xcommand dial number666 restricton callrate128 subaddress10Xcommand dial Xcommand dial 666 10 128 onXcommand dial 666 ron 10 Xgetxml status/ip XML Output xgetxmlXfeedback register status/call/channels/audio/protocol Special CommandsXfeedback Xfeedback ?Xfeedback 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 Transport Default TCP/UDP SIP Mode On/OffSIP Interface Authentication UserName S 0 SIP Interface Authentication Password S 0Tandberg 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 Description Textual description of the cause code DialGroupEntry DialInNumberAdd DialInNumberRemoveParameters Conferencer DialLocalEntry DisconnectCall DisconnectGWCall FeedbackDeregister FeedbackRegister OK Result parameters Error Result parametersParameters Name S 0, 48 The entry’s name FloorToSite FloorToSiteEnd GroupEntryAddGroupEntryDelete LayoutLock LayoutUnLock NetworkId NetworkModule OK Result parameters Windowr CallIDr 1..176 Call Error Result parametersLocalEntryAdd LocalEntryDelete 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 attributesMediaBoard 1..8 Top level attributes User GuideEnd NoneSystemUnit 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 PacketsDropped AudioTotalPackets PacketLossEnd