TANDBERG D13639 manual Command Dial item=1 Number item=1999/Number /Dial

Page 14

TANDBERG MPS API

User Guide

<CallRate item="1" required="False" valueSpaceRef="/ValueSpace/Bandwidth"/> <Restrict item="1" required="False"

valueSpaceRef="/ValueSpace/OnOff"/> <NetProfile item="1" required="False"

valueSpaceRef="/ValueSpace/NetprofileRef"/>

</Dial>

</Command>

To issue a command, the command structure is posted back to the system together with values for the various parameters. Optional parameters can be omitted when posting the structure back to the system.

Example 12

To place a call to number 999 the user can simply post the following XML structure to the system:

<Command>

<Dial item="1">

<Number item="1">999</Number> </Dial>

</Command>

When issuing Commands, the system will return an XML structure in response. The response structure will have the same name as the command issued, but it will be post fixed with “Result”. All commands will have an attribute named status, stating whether the command was accepted or not. If a command is not accepted, the response structure will contain a cause code. If the command is accepted, the response structure may contain information relevant for the specific command.

Example 13

The Dial command in the above example may return the following response structure:

<Command>

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

<CallRef item="1">1</CallRef> <LogTag item="1">6</LogTag>

</DialResult>

</Command>

The response structure for the Dial command, DialResult, states that the command was accepted by the system. In addition to stating that the command was accepted, the Dial command returns the elements CallRef and LogTag. This lets the user identify/trace the call in the Status documents (status.xml and history.xml).

12

Image 14
Contents Tandberg MPS API User GuideTable of Contents Tandberg API DisclaimerIntroduction to XML ExampleExample Tandberg MPS API Introduction to XML Path Language XPath Status/Call@status=Synced/CallRate Structuring of Information Addressing using XPathTandberg XML Engine FeedbackTandberg MPS API Status Documents r XML DocumentsDocuments Configuration documents rw Command documents w Command Dial item=1 Number item=1999/Number /Dial Example Getxml Introduction to Tandberg XML API Service TxasBare-bone Https access FormputxmlExercises ExerciseTandberg MPS API XML-based Advanced Command Line Interface Addressing Accessing XacliRoot commands Xstatus call Exposure optionsSupported exposure options Misc Xstatus ? Status-type root commands Xstatus / xhistoryFormat Xstatus call 1 remotenumberXML Xacli *s IPXconfiguration ? Configuration-type root commands xconfiguration/xdirectoryConfiguration help Xdirectory ?Xconfiguration // ? Xconfiguration ?? Configuration readConfiguration set write Xconfiguration ip/assignment static Xcommand ? Command-type root commands xcommandCommand help Xcommand ??Xcommand dial number666 restricton callrate128 subaddress10 Issuing a commandExample 2.12 xcommand Dial ? Xcommand dial nu666 ron c128 s10Xcommand dial Xcommand dial 666 10 128 onXcommand dial 666 ron 10 XML Output xgetxml Xgetxml status/ipXfeedback ? Special CommandsXfeedback Xfeedback register status/call/channels/audio/protocolXfeedback register status/call Xcom dial Xfeedback register status/call@status=Disconnected Xcom dialXcom disc Xfeedback register status/call@status=Synced Xcom dialXpreferences Xpreferences ?Xstat call 1 channels 1 audio Xpreferences detaillevel Xstat call 1 channels 1 audioBaudRate item=12400/BaudRate API Configurations Configuration.xml xconfiguration Tandberg MPS API Tandberg MPS API H323Gatekeeper 1..2 Authentication Password S 0 Http Mode On/OffTandberg MPS API LoS Polarity Positive/Negative LoS Retry MCURTP SerialInterfaceCard SessionSIP Interface Authentication Password S 0 SIP Mode On/OffSIP Interface Authentication UserName S 0 SIP Interface Transport Default TCP/UDPTandberg MPS API Directory.xml xdirectory API Commands Command.xml xcommand CallMuteOutgoing CallTransfer CallTransferToDirEntry CallMuteVideo ConferenceDisconnect ConferenceModify Parameters Conferencer OK Result parametersConferenceRedefine ConferenceStart ConferenceStop ConferenceShowDuration ConferenceTerminate DefaultValuesSet Dial Description Textual description of the cause code DialGroupEntry DialInNumberAdd DialInNumberRemoveParameters Conferencer DialLocalEntry DisconnectCall DisconnectGWCall OK Result parameters Error Result parameters FeedbackDeregister FeedbackRegisterFloorToSite FloorToSiteEnd GroupEntryAdd Parameters Name S 0, 48 The entry’s nameGroupEntryDelete 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 Status.xml xstatus ExamplesTandberg MPS API Examples Tandberg MPS API Mcuid Ethernet Top level attributes Feedback Top level attributesNone User GuideEnd MediaBoard 1..8 Top level attributesSystemUnit Top level attributes None Summary SerialInterfaceCard ISDNInterfaceCard Top level attributes Status on/off SummaryTandberg MPS API Tandberg MPS API NTP SIP SystemLoad SystemClock SystemActivity Options Option Option 64 / *s/end History.xml xhistory Conference Top level attributesEvent.xml xevent PacketLoss AudioTotalPackets PacketsDroppedEnd