×

Warning message

  • Cisco Support Forums is in Read Only mode while the site is being migrated.
  • Cisco Support Forums is in Read Only mode while the site is being migrated.

How to send message to IP Phone screen from external application

Unanswered Question
Feb 22nd, 2002
User Badges:

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.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
s_pchelyakov Fri, 02/22/2002 - 07:17
User Badges:

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

rkiamil Fri, 02/22/2002 - 11:49
User Badges:

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

s_pchelyakov Wed, 02/27/2002 - 23:54
User Badges:

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 Mon, 02/25/2002 - 23:24
User Badges:

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

Sascha Monteiro Mon, 02/25/2002 - 23:31
User Badges:
  • Silver, 250 points or more

Hi,

You need to put an authentication in your POST;

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


Good luck.

Sascha

s_pchelyakov Mon, 02/25/2002 - 23:39
User Badges:

Sasha,

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

Sergey

darrick Fri, 03/01/2002 - 12:48
User Badges:
  • Cisco Employee,

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

s_pchelyakov Sun, 03/03/2002 - 23:01
User Badges:

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

[email protected]

darrick Tue, 03/05/2002 - 21:36
User Badges:
  • Cisco Employee,


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:[email protected]/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


s_pchelyakov Tue, 03/05/2002 - 22:39
User Badges:

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

Sascha Monteiro Sun, 04/07/2002 - 23:53
User Badges:
  • Silver, 250 points or more

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

pengkeong.fong Wed, 03/06/2002 - 18:21
User Badges:

Hi,

How do you include authentication in the POST.

If, possible can you pls show me a sample?


Thank you!

Fong Peng Keong

darrick Wed, 03/06/2002 - 19:38
User Badges:
  • Cisco Employee,

If you want to add the HTTP header you should look at RFC 2617. This discusses how to create the HTTP header with the authentication information.


ftp://ftp.isi.edu/in-notes/rfc2617.txt


The header looks like this....




Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==


The infomation after the word Basic is the user id and password in this format... "userid:password" and they have been Base64 encoded.


Darrick

Actions

This Discussion