cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2420
Views
0
Helpful
6
Replies

CiscoIPPhoneExecute with C# Application Form - Error #4.

stephane.lhp
Level 1
Level 1

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 !

6 Replies 6

stephan.steiner
Spotlight
Spotlight

The documentation mentions the following:

Error 4 = Authentication error

Is the endUser "myActivedirectoryUsername" associated with your phone?

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

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

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 ?

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.

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: