Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Intercepting keys

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
New Member

Re: Intercepting keys

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 ...

6 REPLIES
New Member

Re: Intercepting keys

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

New Member

Re: Intercepting keys

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

Silver

Re: Intercepting keys

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

New Member

Re: Intercepting keys

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 ...

New Member

Re: Intercepting keys

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,

New Member

Re: Intercepting keys

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

127
Views
0
Helpful
6
Replies
CreatePlease to create content