cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4702
Views
0
Helpful
15
Replies

How to send message to IP Phone screen from external application

s_pchelyakov
Level 1
Level 1

Developing application for Cisco IP Phone I counter with task how to send some messages to IP Phone 7960 screen from external application. Application checks new e-mail of user and in case of new one must send message to person on screen of his IP Phone 7960. Reading documentation for IP Telephone I have NOT found something to decide this problem. May be someone have yet decided this issue. I will appreciate for advise.

15 Replies 15

rkiamil
Level 1
Level 1

What is the external application? I have samples in HTML & ColdFusion of have an external appliction can post to a phone. You can find the e.g. on the following site http://groups.yahoo.com/group/CiscoApplicationDevelopment

Rif

Dear Rif,

Thank you for reference, but I have experience to create asp file which posts message to IP Phone. But unfortunately, always the result is CiscoIPPhoneError Number="4" though the username and password were verified some times. I have NO idea. I appreciate your help.

Sergey

If you like you can send me your ASP code i can have a look at it.

Rif,

I guess it's impossible to show html tag in this forum. This time I will omit "<" and ">".

Enclosed file which is not worked properly.

I appreciate your help.

%@ Language=VBScript %

%Option Explicit%

HTML

HEAD

/HEAD

BODY

FORM action="http://IP Phone URL/CGI/Execute" Method="POST"

TEXTAREA NAME="XML" Rows="6" Cols="100"

CiscoIPPhoneExecute

ExecuteItem Priority="0"

URL="http://IIServerURL/Direct/xmlmailchecking.asp"/

/CiscoIPPhoneExecute

/TEXTAREA

BR

INPUT TYPE=SUBMIT VALUE="Submit"/

/FORM

/BODY

/HTML

s_pchelyakov
Level 1
Level 1

Rif,

Last reply runs with some problems. I guess it's impossible to show html tag. This time I will omit some tags.

Enclosed file which is not worked properly.

I appreciate your help.

%@ Language=VBScript %

%Option Explicit%

HTML

HEAD

/HEAD

BODY

FORM action="http://IP Phone URL/CGI/Execute" Method="POST"

TEXTAREA NAME="XML" Rows="6" Cols="100"

CiscoIPPhoneExecute

ExecuteItem Priority="0"

URL="http://IIServer URL/Direct/xmlmailchecking.asp"/

/CiscoIPPhoneExecute

/TEXTAREA

BR

INPUT TYPE=SUBMIT VALUE="Submit"/

/FORM

/BODY

/HTML

Hi,

You need to put an authentication in your POST;

FORM action="http://admin:admin@<%= ip %>/CGI/Execute" Method="POST"

Good luck.

Sascha

Sasha,

I tried by this way but in response I'v got Error 4(Authentication) though the username and password are valid.

Sergey

The user ID and password must have permissions to the device in the global directory with a device assiociation. The authentication URL must be resolvable by the ip phone. The device name must be in the database as all uppercase. (The BAT tool allowed mixed case imports previously)

Darrick

Darrick,

Thank you indeed for advise. It works. Could you show me how to input ID and password in http request as to input ID and password in dialog box is not convenient. My application must automaticaly push messages to IP Phone screen, so it's impossible to input ID and password through dialog identification box.

I will appreciate for help.

Sergey

s_pchelyakov@diamond.ru

There are a number of ways to do it. One of the post here was correct in that you can specify the user name and password as part of the URL in the Action part of your form.

http://user:password@phones-ip-address/CGI/Execute

I use the CiscoURLProxy that is provided in the Cisco IP Phone Services SDK. It is an ActiveX COM object that is very easy to use in the windows enviornment.

The component is also provided with the Developing Cisco IP Phone Services book from Cisco Press.

Using the Post method of the CiscoURLProxy you simply specify the URL as I did above as well as the XML object as a string and that's it.

If you are using Java you also have the ability as part of java.net to do a HTTP POST with basic authentication.

SDK

http://www.cisco.com/warp/public/cc/pd/unco/ippps/prodlit/ipsdk_ds.htm

Book

http://www.amazon.com/exec/obidos/ASIN/1587050609

Darrick

Darrick,

I appreciate indeed your help. It works.

Thank you very much.

Sergey

Please tell me which method of the CiscoURLProxy provides the POST method, because I think there are two and one methods:

1. GetURL

2. PutURL

and the GetHeaders (not important now)

I think the GetURL provides the GET method of the HTTP, and the PutURL the PUT method.

When I use the PutURL, the URLProxy responses:

HTTP/1.1 405 Method Not Allowed

Allow: GET, HEAD, POST

Content-Length: 0

Server: Allegro-Software-RomPager/3.12

So this was not a POST method.

The version of my CiscoURLProxy.DLL is 1.01.

So what is the key ?

Regards,

AndR

Hi,

I don't use the CiscoURLproxy for this purpose.

The post is just with html (form...)

Or you can use the MSXML2 object and do a post with that. (standard microsoft object)

Sascha

Hi,

How do you include authentication in the POST.

If, possible can you pls show me a sample?

Thank you!

Fong Peng Keong

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: