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

Intercepting keys

cris_miron
Level 1
Level 1

Hi,

I didn't figure out how to intercept keys on 7970 ip phone (or other). I want to fire a http request when the user presses a key like 1, 2, .. etc. Any ideas?

Thanks,

Chris Miron

1 Accepted Solution

Accepted Solutions

I don't think so. You can use XML objects to control the phone, but I haven't found any way to be notified of events generated by the phone except using TAPI.

If you're new to Java and/or JTAPI, this might be a bit or a challenge. Good luck ...

View solution in original post

6 Replies 6

ckatene
Level 3
Level 3

it appears that you can use JTAPI to do this. There is an event called CiscoTermButtonPressedEv, which will be delivered to observers when a button is pressed. Looks like you'll have to enable these events through the CiscoTermEvFilter.

Haven't done it myself. Just noticed the capability while browsing the documentation.c

Hi,

Thank you for reply. I'm trying to use JTAPI, but I don't know where to start. I assume what I will need a CallManager (not a CM simulator), write a JTAPI application which will register to CallManager and it will be notified when the user will press a hardkey. Then it will push an http event to phone in order to do a custom action, right?

Is there anyway to bypass CallManager and communicate directly with the phone?

Thanks,

Chris Miron

Jtapi receives events through the CallManager, so there is no way to communicate with the phone directly (other than through the standard XML interface)...

I don't think so. You can use XML objects to control the phone, but I haven't found any way to be notified of events generated by the phone except using TAPI.

If you're new to Java and/or JTAPI, this might be a bit or a challenge. Good luck ...

I have tried to use the CiscoTermButtonPressedEv event with JTAPI. However, I only received the event while the phone is off hook. So it may be helpfull for an IVR type application but not an XML application.

JM Lacoste,

keithdturner
Level 1
Level 1

I'm working on something similar - we are using the CiscoIPPhoneGraphicFileMenu object, and want to also have the keypad input IP addresses as well as the graphics elements mapped.

We found that the keypad responds to the menuitems in the same order as listed in the xml object, thus the first item in the keyboard sample makes the http post of "Q" whether the touch area or the key pad button 1 is pressed.

The problem with using this for us is that we need the "0" key active as well. Otherwise we could simply modify the keyboard.asp sample in the SDK

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: