Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

CiscoIPPhoneExecute with C# Application Form - Error #4.

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

Re: CiscoIPPhoneExecute with C# Application Form - Error #4.

The documentation mentions the following:

Error 4 = Authentication error

Is the endUser "myActivedirectoryUsername" associated with your phone?

New Member

Re: CiscoIPPhoneExecute with C# Application Form - Error #4.

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

New Member

Re: CiscoIPPhoneExecute with C# Application Form - Error #4.

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

New Member

Re: CiscoIPPhoneExecute with C# Application Form - Error #4.

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 ?

New Member

Re: CiscoIPPhoneExecute with C# Application Form - Error #4.

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.

New Member

Dear Stephane.lhp I have the

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

1600
Views
0
Helpful
6
Replies