RisPort query for phones does not show IP addresses for some devices

Version 1
    This document was generated from CDN thread

    Created by: Mayank Sharma on 17-02-2009 04:16:15 PM
    When I use RisPort query to pull data for phones, I do not get IP adresses for some devices. These devices can be ATAs etc. When I pull this list using CUCM Admin Web Interface, I see all the IP addresses. The IP addresses for actaual phones are hyperlinks but for ATAs and some other devices, the IP addresses are not hyperlinks but simple literals.
     
    I am not concened why they are not hyperlinks but my question is that why I don't get them in RisPort query. Following is the XML for RisPort query.
     
    <?xml version="1.0" encoding="UTF-8"?>
    <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:SelectCmDevice soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://schemas.cisco.com/ast/soap/">
          <StateInfo xsi:type="xsd:string"/>
          <CmSelectionCriteria xsi:type="ns1:CmSelectionCriteria">
            <MaxReturnedDevices xsi:type="xsd:unsignedInt">200</MaxReturnedDevices>
            <Class xsi:type="xsd:string">Phone</Class>
            <Model xsi:type="xsd:unsignedInt">255</Model>
            <Status xsi:type="xsd:string">Registered</Status>
            <NodeName xsi:type="xsd:string"/>
            <SelectBy xsi:type="xsd:string">Name</SelectBy>
            <SelectItems
              soapenc:arrayType="ns1:SelectItem[{0}]"
              xsi:type="soapenc:Array"
              xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
              {1}
            </SelectItems>
          </CmSelectionCriteria>
        </ns1:SelectCmDevice>
      </soapenv:Body>
    </soapenv:Envelope>

     
     

    Subject: RE: RisPort query for phones does not show IP addresses for some devices
    Replied by: David Staudt on 17-02-2009 05:15:53 PM
    A few questions:
     
    - Is this reproducible, do the same devices always show no IP address?
    - Is the problem specific to certain device types (i.e. ATA's?)
    - Is it possible those devices have never registered to UCM?
     
     

    Subject: RE: RisPort query for phones does not show IP addresses for some devices
    Replied by: Mayank Sharma on 17-02-2009 05:21:31 PM
    A few questions:
     
    - Is this reproducible, do the same devices always show no IP address?
    - Is the problem specific to certain device types (i.e. ATA's?)
    - Is it possible those devices have never registered to UCM?
     
     



    1. Yes, this is reproducible and the same items get displayed without IP addresses.
    2. Yes, it is specific to certain types of devices like ATA's.
    3. That I am not sure of. When I search for phones in CUCM Admin page, they show up as registered to the CUCM with the non-clickable IP address.
     
    This query basically gives me IP address for devices whose name start with SEP. Another observation is that when I step into the code, XML request sends 76 items to the service (which includes phones, ATA's and other devices) but the response only containts 38 items (only SEP's). Now I am not sure if 76/2=38 is just a coincidence or this means something.

    Thanks,
    Max

    Subject: RE: RisPort query for phones does not show IP addresses for some devices
    Replied by: Mayank Sharma on 17-02-2009 08:19:25 PM
    Got it. The XML I posted, the <Class> tag is restricting the result to phones. I changed it to 
     
    <Class xsi:type="xsd:string">Any</Class>

    and got all IP addressese.
    Now my question is, do ATA's reply with XML like phones do?

    Sorry...but thanks.
    Max
     
     

    Subject: RE: RisPort query for phones does not show IP addresses for some devices
    Replied by: David Staudt on 17-02-2009 10:23:15 PM
    Glad you got it working!
     
    Nope, ATA's do not support XML