Push to phone callmanager 6

Unanswered Question
Feb 4th, 2009

Dear All,

i want to push text and ring tone using the push method


In callmanager 4 , i was using sdkapps as user id and password and the PushAuthenticate.asp file.

what's the alternative to them in callmanager6

Also I'm trying to get the phone IP using the IPAddressProvider class in Cisco SDK,

I am getting the following error

IPAddressProvider.getDeviceList() request failed.

can any one help me in this.

Thanks alot,


I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
stephan.steiner Thu, 02/05/2009 - 04:52

The SDK is written for CCM 4.. so unfortunately for CCM6 you need to make quite a bit of manual changes.

For starters.. you need to use AXL Serviceabilit's SelectCmDevices command to get IP addresses for phones. Then you can only request 200 devices per SelectCmDevices call so you need to use AXL (e.g. listPhones or executeSqlQuery) to get a list of all the phones, then make one SelectCmDevices request per 200 devices.

The rest is probably the same though you need to change the AXL code in the SDK since it uses http (iirc) and makes posts to the wrong path (https://ccm/axl is the new url if I'm not mistaken).

For details about axl serviceability and axl check developer.cisco.com.. look for voice apis and you'll get there.

marwa_ads Thu, 02/05/2009 - 05:39

Thanks stephan 4 ur fast response,

I'll try SelectCmDevices,

two more questions:

1- where can i find all AXL commands to use.

2- I need to push text Msg to the phone , how can i do so in CM6.

stephan.steiner Fri, 02/06/2009 - 05:54

1) look at the code in the sdk.. the commands are still the same except for those that I already mentioned.

2) Just like in ccm4.. the sdk already contains code to do so so there's nothing you need to develop.

marwa_ads Fri, 02/06/2009 - 09:03

Thanks stephan,

i used phone.push(uri,ipaddress, userid, password)

but i want to push to many phones and i don't know their push passwords, is there an alternative solution in CM6,

In CM 4 i was using the pushauthenticate file and the userid and password: sdkapps

what is the alternative solution in CM6?

Thanks alot stephan 4 ur help.


stephan.steiner Mon, 02/09/2009 - 01:46

CCM6 works just like CCM4 in that area.. it's just that you cannot use your own authentication page and put it onto the CCM, but you can still have your own authentication page and put it on any other webserver that the CCM can reach.

Alternatively (to be done when the number of phones isn't so large.. a couple dozen should be okay but for hundreds or thousands cisco suggests that you use the separate authentication page hosted on another webserver), just configure your application user to be a controlling user of all the phones that you're pushing to (that's the normal way of authenticating.. you can push if the userid/password you use is a valid controlling user of the phone).

marwa_ads Sun, 02/08/2009 - 00:22

Dear Stephan,

I tried SelectCmDevices as follows:

sAXLSOAPRequest = "POST /realtimeservice/services/RisPort HTTP/1.1\r\n";

sAXLSOAPRequest += "Host:\r\n";

sAXLSOAPRequest += "Authorization: Basic " + authorization + "\r\n";

sAXLSOAPRequest += "Accept: text/*\r\n";

sAXLSOAPRequest += "Content-type: text/xml\r\n";

sAXLSOAPRequest += "SOAPAction: \"http://schemas.cisco.com/ast/soap/action/#RisPort#SelectCmDevice\"";

sAXLSOAPRequest += "Content-length: ";

sAXLRequest =

"<?xml version=\"1.0\" encoding=\"utf-8\" ?> "+

"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">"+


"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns1=\"http://schemas.cisco.com/ast/soap/\">"+

" "+

"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns2:CmSelectionCriteria\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:ns2=\"http://schemas.cisco.com/ast/soap/\">"+

"200 "+

"Phone "+

"255 "+

"Any "+

"Name "+


"http://schemas.xmlsoap.org/soap/encoding/\" xsi:type=\"ns3:SelectItem\" xmlns:ns3=\"http://schemas.cisco.com/ast/soap/\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\">" +

"SEP0022644EB415 " +







and got the following response:

<?xml version="1.0" encoding="UTF-8"?>http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">soapenv:Server.userExceptionorg.xml.sax.SAXParseException: Premature end of file.http://xml.apache.org/axis/">CCM-PUB

Can you help me in this error.

Thanks alot,


stephan.steiner Mon, 02/09/2009 - 01:48

Are you sure that this is really what you send over the wire? saxlrequest looks okay and is valid XML.. you'd only get the parsing exception if the file is indeed invalid. Since the connection is encrypted, either you catch the data before it goes over the wire, or you look at serviceability traces on ccm (I'm afraid I don't recall where those are so you have to figure that one out on your own) to see what the server really gets.


This Discussion