04-01-2008 01:30 AM - edited 03-13-2019 05:08 PM
Hi !
I'm trying to build a new windows application form with C#.
This application will load all the IP Phone found into the call manager and will let the possibility to CALL them.
I have a BUTTON with "CALL" label, and when i press it, it must CALL the phone selected with my OWN IP Phone. (near my desktop computer, which i'm Owner).
Here is my code :
========================================
String XML = "<CiscoIPPhoneExecute><ExecuteItem URL=\"Dial:1010\" /></CiscoIPPhoneExecute>";
HttpWebRequest webRequest = (HttpWebRequest)HttpWebRequest.Create("http://10.1.100.24/CGI/Execute");
webRequest.Method = "POST";
webRequest.Credentials = new NetworkCredential("myActiveDirectoryUsername", "myPassword");
byte[] byteArray = Encoding.UTF8.GetBytes(XML);
webRequest.ContentType = "application/x-www-form-urlencoded";
webRequest.ContentLength = byteArray.Length;
Stream dataStream = webRequest.GetRequestStream();
dataStream.Write(byteArray, 0, byteArray.Length);
dataStream.Close();
HttpWebResponse response = (HttpWebResponse)webRequest.GetResponse();
========================================
When i'm sniffing the network, i recieve a CiscoIPPhoneError 4.
<CiscoIPPhoneError Number= "4" />
How can i do to make a IP Phone call another ?
ALL MY IP PHONE INTO MY CALLMANAGER HAVE OWNER USER ID = Owner From ACTIVE DIRECTORY.
I must use this login & password ?
How could i solve it ?
Thanks !
04-01-2008 02:04 AM
The documentation mentions the following:
Error 4 = Authentication error
Is the endUser "myActivedirectoryUsername" associated with your phone?
04-01-2008 02:18 AM
Yes, the Error 4 is an Authentication Error.
Actually, my CALL MANAGER 6.x is configured with my ActiveDirectory, and ALL USERS from AD are associated with a IP Phone in the Call Manager.
Is the endUser "myActivedirectoryUsername" associated with your phone?
---> Yes !
It's my own Active Directory LOGIN and i use my Active Directory PASSWORD to build the CREDENTIAL.
Still have this error :(
04-01-2008 04:45 AM
I've still this authentication problem.
The Owner User Id + his own password doesn't work !
What are the information of authentication i need to send with the PUSH command Execute ?
I see many problems similars as mine havent been solved.
Someone told me i need to use "PIN" field with username, and not the password field !!!
But what's the PIN when the callmanager end user's are whose in the ActiveDirectory controler ?
Thanks in advance ...
04-01-2008 05:24 AM
I really have a big problem ...
When i do this in Internet Explorer navigator :
http://myIPPhoneIP/CGI/Execute (like : http://10.1.100.25/CGI/Execute )
and i enter the user's owner id Login and Password in the Box, i have this reply :
How could I do a Push CiscoIPPhoneExecute so ?
04-01-2008 06:03 AM
Problem Solved :
I created a new APPLICATION USER in the CCM.
I gave him ALL ACTION ALLOWED to all the IP PHONE registered in the CCM.
(Access to all ip phones).
Now, i use his login and password to pass the credential.
It's ok, i can push xml.
07-31-2014 08:14 AM
Dear Stephane.lhp
I have the same problem. Can you pls tell me which groups you used to add to the application user?
Thank you
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