02-04-2009 11:50 PM - edited 03-13-2019 06:03 PM
Dear All,
i want to push text and ring tone using the push method
phone.push(uris,IP,pushuserid,pushpassword)
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,
Marwa
02-05-2009 04:52 AM
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.
02-05-2009 05:39 AM
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.
02-06-2009 05:54 AM
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.
02-06-2009 09:03 AM
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.
Marwa
02-09-2009 01:46 AM
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).
02-08-2009 12:22 AM
Dear Stephan,
I tried SelectCmDevices as follows:
sAXLSOAPRequest = "POST /realtimeservice/services/RisPort HTTP/1.1\r\n";
sAXLSOAPRequest += "Host:192.168.1.100:8443\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 =
" "+
"
"
"+"
"
"
"
"
"
"
"
"
"
"
""+
""+
""+
""+
""+
"";
and got the following response:
Can you help me in this error.
Thanks alot,
Marwa
02-09-2009 01:48 AM
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.
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