« Back to Serviceability XML Questions

RE: Some questions about CmDeive Object

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hi,
 
I'm just started with programming in Serviceability XML, and i found that the RisPort70.SelectCmDevice will return an device array,but for all device , they are the same type "CmDevice" object. that means whether Phone , Trunk or GateWay are CmDevice, How to distinguish from them?
 
i knew the attribute "class", but i want to know which attributes are belong to "GateWay", or which attributes are belong to "Phone".
 
for example, the attribute "DirNumber" is not a attribute for gateway but for Phone.
 
Is there have any object are defined for the Gateway? and where is the gateway , phone or trunk contains information in the document?
 
Thx.

Testing on my 8.5 system with phones, gateway and trunks defined: only phone and trunk devices are returned.  Gateways are not supported with the API, it appears:


...

<item xsi:type="ns1:CmDevice">
   <Name xsi:type="xsd:string">CUPS-SIP-Trunk</Name>
   <DirNumber xsi:type="xsd:string" xsi:nil="true"/>
   <Class xsi:type="ns1emoticoneviceClass">SIP Trunk</Class>
   <Model xsi:type="xsd:unsignedInt">131</Model>
   <Product xsi:type="xsd:unsignedInt">0</Product>
...