02-22-2002 12:50 AM - edited 03-12-2019 02:32 PM
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.
02-22-2002 02:08 AM
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
02-22-2002 07:17 AM
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
02-22-2002 11:49 AM
If you like you can send me your ASP code i can have a look at it.
02-27-2002 11:54 PM
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
02-25-2002 11:24 PM
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
02-25-2002 11:31 PM
Hi,
You need to put an authentication in your POST;
FORM action="http://admin:admin@<%= ip %>/CGI/Execute" Method="POST"
Good luck.
Sascha
02-25-2002 11:39 PM
Sasha,
I tried by this way but in response I'v got Error 4(Authentication) though the username and password are valid.
Sergey
03-01-2002 12:48 PM
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
03-03-2002 11:01 PM
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
03-05-2002 09:36 PM
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
03-05-2002 10:39 PM
Darrick,
I appreciate indeed your help. It works.
Thank you very much.
Sergey
04-05-2002 06:16 AM
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
04-07-2002 11:53 PM
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
03-06-2002 06:21 PM
Hi,
How do you include authentication in the POST.
If, possible can you pls show me a sample?
Thank you!
Fong Peng Keong
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide