cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
662
Views
6
Helpful
6
Replies

Clear the Display from a Cisco 7960

ciscoditt
Level 1
Level 1

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

6 Replies 6

aaronw.ca
Level 5
Level 5

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:

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?

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.

No, I cant use a sniffer....

I tried to sent :

""+

""+

"";

to the phone, the reply is :

, but where is my Parsing error?? I can't see it....

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

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?