CiscoIPPhoneExecute with C# Application Form - Error #4.

Unanswered Question
Apr 1st, 2008
User Badges:

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 !

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
stephan.steiner Tue, 04/01/2008 - 02:04
User Badges:
  • Silver, 250 points or more

The documentation mentions the following:

Error 4 = Authentication error


Is the endUser "myActivedirectoryUsername" associated with your phone?

stephane.lhp Tue, 04/01/2008 - 02:18
User Badges:

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 :(


stephane.lhp Tue, 04/01/2008 - 04:45
User Badges:

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 ...

stephane.lhp Tue, 04/01/2008 - 06:03
User Badges:

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.





fgasimzade Thu, 07/31/2014 - 08:14
User Badges:

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

Actions

This Discussion