09-23-2004 02:18 AM - edited 03-13-2019 06:26 AM
Hello,
how can I clear the Display of my 7960 without pressing a button?? A menu that I sent to the phone shall disappear after a while, or if nobody pressed a button for a while.How can I do this using JTAPI?
Thx for your replies
Greetings ciscoditt
09-23-2004 06:12 AM
You may not need to use JTAPI. Perhaps you could set a refresh header on the menu page (15 seconds, or however long you want the menu displayed for), with the refresh header redirecting to another page containing the CiscoIPPhoneExecute object, with one or two ExecuteItem objects with the SoftKey:Exit command.
Sample asp/javascript refresh header:
Response.AddHeader("Refresh","0; url=http://webserver/menuexit.asp");
Sample IPPhoneExecute XML:
As Stephan has mentioned previously, you can also push a Key:Services command, which should also work to exit your currently running service, such as:
09-23-2004 07:02 AM
But I have to send the menu using the
CiscoTerminal.sendData(String message); Method.
So I need a String that does the Execute, I tried to send:
message = "
";
to the phone, but it doesn`t work, I think its a problem with the "" inside the String message, I tried \" and &qout; instead.
How can I manage it?
09-24-2004 11:10 AM
Can you trace (with a packet sniffer) what is actually sent to the phone? You should definitely break the "s with a backslash, but no java compiler would ever finish compiling if you didn't properly break a string so I guess we can rule out any syntax errors.
What do you get as return value from CiscoTerminal.sendData? It should be a string that hopefully tells you something.
09-27-2004 01:11 AM
No, I cant use a sniffer....
I tried to sent :
"
"
"";
to the phone, the reply is :
09-27-2004 02:09 AM
Thx a lot for your answers, I finally got it, don't know what the error was, but now it works.....
Doesn't make sense, cause I didn't change anything, but I don't care, cause it works!!!
Bye
09-29-2004 11:04 AM
What about a 7970 color phone? If the phone is cycling through idle pages, how do i exit out of it and get the button template? I tried "Softkey:Exit" but it doesnt work. On 7940 and 7960 "Init:Services" too clears the screen but not on 7970. Any ideas?
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