[cisco-voip] Retrieving device information from CISCO

Andrea Cerioli cerioli at alternet.it
Sat Jan 28 05:10:18 EST 2006


Thanks all for the useful hints.
This saved us a lot of time.

I just have a last question.

I've reviewed the sample application in the SDK,
and it uses DeviceListX.asp.
i.e. to retrieve the IP address of a phone, it gets the complete list,
loads it in a vector, then searches the phone name to extract the IP address.
This looks to be the only way to do this.

Unfortunately this way can be quite heavvy if you need
to query the resident http server of hundreds, or even thousands of
IP Phones independently from each other.
However we can "optimize" getting the list once per a time interval,
but is still an overhead and prevent us from working asynchronously,
I mean we will need to build a synchronous application that will batch
al operations at fixed time intervals, then get the current list at that
time, perform all batched operations, and the sleeps for next time interval.
Not very nice IMHO, but looks to be the only way out.

I would have expected a smarter API, something like GetIPPhoneRegInfoByName,
using the SEP name to retrieve registration info of the phone from
the callmanager.
This would be a natural complement of the DeviceListX.asp report.

Is there any way, perhaps undocumented, to obtain regstration info
for a single IP phone at a time, or are we bound to retrieving the
complete list?

Thanks in advance for your comments.

Andrea

Justin Steinberg wrote:
> Andrea,
> 
> You should download the IP Phone Services SDK for ccm 4.1(3).   There
> is quite a few example applications that run on asp and some that run
> on jsp.   I've played around with several and know that some have code
> that query's for the phone IP.  I know the Push2Phone app query's for
> IP in order to push the xml post to the phone's IP address.
> 
> http://www.cisco.com/en/US/products/sw/voicesw/ps556/products_programming_reference_guide_chapter09186a0080405759.html
> 
> Justin
> 
> 
> 
>>Date: Thu, 26 Jan 2006 22:03:09 +0100
>>From: Andrea Cerioli <cerioli at alternet.it>
>>Subject: Re: [cisco-voip] Retrieving device information from CISCO
>>       CallManager
>>To: cisco-voip at puck.nether.net
>>Message-ID: <43D9390D.7010807 at alternet.it>
>>Content-Type: text/plain; charset=us-ascii; format=flowed
>>
>>Thanks to all for your support.
>>The very ugly way is not for us, and SNMP does not return this info
>>since ccmPhoneInfo.ccmPhoneTable.ccmPhoneEntry.ccmPhoneIpAddress
>>looks to be always empty.
>>
>>THe supported SOAP interface is the one we investigated, but although
>>we are using 4.1(3) we could not find the right query to do.
>>We manage to extract any sort of info but not the IP address.
>>
>>Perhaps we don't have the greatest and latest documentation.
>>Can you please point us to the right query?
>>
>>Thanks in advance for any further help.
>>
>>Andrea.
>>Wes Sisk wrote:
>>
>>>There are several versions of SOAP.  In CallManager 4.1(3) there is a
>>>new SOAP interface that includes device registered status.
>>>
>>>In older versions the file http://<ip>/CCMAdmin/reports/DeviceListX.asp
>>>provides a list of almost all devices (7902/05/12, ATA, and a few other
>>>devices excluded), their registration status, and IP.
>>>
>>>The very ugly way to retrieve the data is via unofficial unsupported
>>>mmfspy from cmd prompt on the CM server.
>>>
>>>The AXL/SOAP interface is the officially supported interface for all
>>>versions going forward.
>>>
>>>/Wes
>>>
>>>Andrea Cerioli wrote:
>>>
>>>
>>>>We are writing an application that need to query the CallManager
>>>>to obtain the list of registered Phones, including current IP address
>>>>for each phone.
>>>>
>>>>We have tried with AXL SOAP interface, and also looked into the DC
>>>>directory
>>>>and the SQL database, but we couldn't find this information.
>>>>We obtained plenty of information about phones, but not their IP address.
>>>>
>>>>The information must be there, since it is there in
>>>>the web based administration interface ...
>>>>
>>>>This is driving us mad.
>>>>Where are we wrong?
>>>>Do we miss the right documentation? (we use the publicly available docs
>>>>on AXL SOAP from the CISCO web site).
>>>>
>>>>Thanks for any help (or direction to the proper place to ask this
>>>>question).
>>>>
>>>>
>>
>>--
>>| Andrea Cerioli               alter.net Srl              |
>>| e-mail: cerioli at alter.it     Via Attilio Ambrosini, 177 |
>>| VOICE: +39-6-5405740         I-00147 Rome               |
>>| FAX:   +39-6-5405883         Italy                      |
>>
>>
>>

-- 
| Andrea Cerioli               alter.net Srl              |
| e-mail: cerioli at alter.it     Via Attilio Ambrosini, 177 |
| VOICE: +39-6-5405740         I-00147 Rome               |
| FAX:   +39-6-5405883         Italy                      |



More information about the cisco-voip mailing list