cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
94
Views
0
Helpful
0
Comments
cdnadmin
Level 11
Level 11
This document was generated from CDN thread

Created by: Matt Bolton on 16-07-2012 10:40:37 PM
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.

Subject: RE: Some questions about CmDeive Object
Replied by: David Staudt on 12-09-2012 05:09:57 PM
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="ns1eviceClass">SIP Trunk</Class>
   <Model xsi:type="xsd:unsignedInt">131</Model>
   <Product xsi:type="xsd:unsignedInt">0</Product>
...

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links