06-30-2014 01:20 PM
Hi,
I tried SelectCMDevice by "name" and it wors as expected. But when I took the IP address returned by the name query and changed the SelectBy to IPV4Address, it returns nothing. No error.
SelectBy: Name
Request:
POST /realtimeservice/services/RisPort HTTP/1.1
Charset: utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
user-agent: PtSxlRisPort
Host: 192.168.25.185:8443
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://schemas.cisco.com/ast/soap/action/#RisPort#SelectCmDevice"
Authorization: Basic cGFyb2xhbnRhOnBhcm9sYW50YQ==
Content-length: 1450
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="http://schemas.cisco.com/ast/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<tns:AstHeader id="id1">
<SessionId xsi:type="xsd:string">49720a46-842c-4004-aa83-406a9f75834b</SessionId>
</tns:AstHeader>
</soapenv:Header>
<soapenv:Body>
<ns1:SelectCmDevice xmlns:ns1="http://schemas.cisco.com/ast/soap/" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<StateInfo xsi:type="xsd:string"/>
<CmSelectionCriteria href="#id0"/>
</ns1:SelectCmDevice>
<multiRef xmlns:ns2="http://schemas.cisco.com/ast/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:CmSelectionCriteria">
<MaxReturnedDevices xsi:type="xsd:unsignedInt">500</MaxReturnedDevices>
<Class xsi:type="xsd:string">Any</Class>
<Model xsi:type="xsd:unsignedInt">255</Model>
<Status xsi:type="xsd:string">Any</Status>
<NodeName xsi:nil="true" xsi:type="xsd:string"/>
<SelectBy xsi:type="xsd:string">Name</SelectBy>
<SelectItems soapenc:arrayType="ns2:SelectItem[1]" xsi:type="soapenc:Array">
<item>
<Item>SEPF84F57959A6E</Item>
</item>
</SelectItems>
</multiRef>
</soapenv:Body>
</soapenv:Envelope>
************************************************
Response:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:SelectCmDeviceResponse xmlns:ns1="http://schemas.cisco.com/ast/soap/" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SelectCmDeviceResult xsi:type="ns1:SelectCmDeviceResult">
<TotalDevicesFound xsi:type="xsd:unsignedInt">1</TotalDevicesFound>
<CmNodes xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" soapenc:arrayType="ns1:CmNode[1]" xsi:type="soapenc:Array">
<item xsi:type="ns1:CmNode">
<ReturnCode xsi:type="ns1:RisReturnCode">Ok</ReturnCode>
<Name xsi:type="xsd:string">onitsha</Name>
<NoChange xsi:type="xsd:boolean">false</NoChange>
<CmDevices soapenc:arrayType="ns1:CmDevice[1]" xsi:type="soapenc:Array">
<item xsi:type="ns1:CmDevice">
<Name xsi:type="xsd:string">SEPF84F57959A6E</Name>
<IpAddress xsi:type="xsd:string">192.168.25.103</IpAddress>
<DirNumber xsi:type="xsd:string">7654102-Registered,7654112-Registered</DirNumber>
<Class xsi:type="ns1:DeviceClass">Phone</Class>
<Model xsi:type="xsd:unsignedInt">493</Model>
<Product xsi:type="xsd:unsignedInt">380</Product>
<BoxProduct xsi:type="xsd:unsignedInt">0</BoxProduct>
<Httpd xsi:type="ns1:CmDevHttpd">Yes</Httpd>
<RegistrationAttempts xsi:type="xsd:unsignedInt">3</RegistrationAttempts>
<IsCtiControllable xsi:type="xsd:boolean">true</IsCtiControllable>
<LoginUserId xsi:nil="true" xsi:type="xsd:string"/>
<Status xsi:type="ns1:CmDevRegStat">Registered</Status>
<StatusReason xsi:type="xsd:unsignedInt">0</StatusReason>
<PerfMonObject xsi:type="xsd:unsignedInt">2</PerfMonObject>
<DChannel xsi:type="xsd:unsignedInt">0</DChannel>
<Description xsi:type="xsd:string">Auto 7654102</Description>
<H323Trunk xsi:type="ns1:H323Trunk">
<ConfigName xsi:nil="true" xsi:type="xsd:string"/>
<TechPrefix xsi:nil="true" xsi:type="xsd:string"/>
<Zone xsi:nil="true" xsi:type="xsd:string"/>
<RemoteCmServer1 xsi:nil="true" xsi:type="xsd:string"/>
<RemoteCmServer2 xsi:nil="true" xsi:type="xsd:string"/>
<RemoteCmServer3 xsi:nil="true" xsi:type="xsd:string"/>
<AltGkList xsi:nil="true" xsi:type="xsd:string"/>
<ActiveGk xsi:nil="true" xsi:type="xsd:string"/>
<CallSignalAddr xsi:nil="true" xsi:type="xsd:string"/>
<RasAddr xsi:nil="true" xsi:type="xsd:string"/>
</H323Trunk>
<TimeStamp xsi:type="xsd:unsignedInt">1404140898</TimeStamp>
</item>
</CmDevices>
</item>
</CmNodes>
</SelectCmDeviceResult>
<StateInfo xsi:type="xsd:string"><StateInfo ClusterWide="1"><Node Name="onitsha" SubsystemStartTime="1404140666" StateId="28" TotalItemsFound="1" TotalItemsReturned="1"/></StateInfo></StateInfo>
</ns1:SelectCmDeviceResponse>
</soapenv:Body>
</soapenv:Envelope>
But...
when I changed the SelectBy to IPV4Address, the same device could not be found:
POST /realtimeservice/services/RisPort HTTP/1.1
Charset: utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
user-agent: PtSxlRisPort
Host: 192.168.25.185:8443
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://schemas.cisco.com/ast/soap/action/#RisPort#SelectCmDevice"
Authorization: Basic cGFyb2xhbnRhOnBhcm9sYW50YQ==
Content-length: 1456
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="http://schemas.cisco.com/ast/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<tns:AstHeader id="id1">
<SessionId xsi:type="xsd:string">741a4fcf-d762-4f08-850b-3dcb263ec740</SessionId>
</tns:AstHeader>
</soapenv:Header>
<soapenv:Body>
<ns1:SelectCmDevice xmlns:ns1="http://schemas.cisco.com/ast/soap/" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<StateInfo xsi:type="xsd:string"/>
<CmSelectionCriteria href="#id0"/>
</ns1:SelectCmDevice>
<multiRef xmlns:ns2="http://schemas.cisco.com/ast/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:CmSelectionCriteria">
<MaxReturnedDevices xsi:type="xsd:unsignedInt">500</MaxReturnedDevices>
<Class xsi:type="xsd:string">Any</Class>
<Model xsi:type="xsd:unsignedInt">255</Model>
<Status xsi:type="xsd:string">Any</Status>
<NodeName xsi:nil="true" xsi:type="xsd:string"/>
<SelectBy xsi:type="xsd:string">IPV4Address</SelectBy>
<SelectItems soapenc:arrayType="ns2:SelectItem[1]" xsi:type="soapenc:Array">
<item>
<Item>192.168.25.103</Item>
</item>
</SelectItems>
</multiRef>
</soapenv:Body>
</soapenv:Envelope>
***************************************************
Response:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:SelectCmDeviceResponse xmlns:ns1="http://schemas.cisco.com/ast/soap/" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SelectCmDeviceResult xsi:type="ns1:SelectCmDeviceResult">
<TotalDevicesFound xsi:type="xsd:unsignedInt">0</TotalDevicesFound>
<CmNodes xsi:nil="true" xsi:type="ns1:CmNode"/>
</SelectCmDeviceResult>
<StateInfo xsi:type="xsd:string"/>
</ns1:SelectCmDeviceResponse>
</soapenv:Body>
</soapenv:Envelope>
Any ideas?
07-02-2014 04:14 AM
Hi
Can you please try SelectBy parameters for ip address as : <SelectBy xsi:type="xsd:string">IpAddress</SelectBy> and it is case sensitive.
Reference - CUCM 8.5 RISPort query SelectCMDevice SelectBy IP address
Thanks and Regards,
Geevarghese
07-07-2014 07:28 AM
Thanks for this gcheria; Is there any way this can be put into the Documentation or the Node Updated to Accept what is documented IPV4(6)Address..
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide