10-06-2016 08:03 AM
I found the SOAP/Java demo example in which a GetPhoneReq() is used to get information from a specific phone.
Is there any Java example or tutorial with which I can send a message (CiscoIPPhoneText formatted) to a specific phone?
I have searched quite a lot, but did not yet find any tutorial or example on how to send a message to a specific phone.
Should I use JTAPI for this or modify the GetPhoneReq AXL-DEMO app by calling some kind of RPhone.sendMessage call with the appropriate parameters.
Does anybody know a good (introductory) tutorial or have a reference to more Java/Soap examples, since I found only 2 ones i.e.: HelloWorld and GetPhoneReq?
10-18-2016 12:49 PM
If I understand what you're trying to do, you don't need Java, JTAPI or anything like that. Here's a simple HTML file that will do the trick. Of course, you don't need to do it with a form and submit, but this is just a demo.
<HTML>
<HEAD>
</HEAD>
<BODY>
<FORM action="http://username@phoneip/CGI/Execute" Method="POST">
<TEXTAREA NAME="XML" rows="20" cols="80">
<?xml version="1.0" encoding="UTF-8"?>
<CiscoIPPhoneText>
<Text>POPUP MESSAGE!</Text>
</CiscoIPPhoneText>
</TEXTAREA>
<BR>
<input type="submit" value="POST"/>
</FORM>
</BODY>
</HTML>
Of course, you can use just about any programming language to do that, too.
10-25-2016 11:49 PM
Hi Nicholas, thanks for the great tip! I had not thought about this easy solution and it works pretty well. When I tried your example it showed a popup window asking me to enter username/password. I noticed that when using http://username:password@phoneip/CGI/Execute it did not show the popup, but IMHO it is not good practice to use a visible password in the html-code.
Again thanks very much for the tip and time, have a nice day, kind regards.
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