cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
262
Views
0
Helpful
0
Comments
cdnadmin
Community Member
This document was generated from CDN thread

Created by: Sara Maher on 21-07-2010 01:45:23 PM
Hey ,
 
am new to cisco IPPhone Developemnt , am doing small app which needs to fire the button pressed event
I did the following :
 
got the terminal and the CiscoTermEvFilter
implemented CiscoTerminalObserver and enabled setButtonPressedEnabled
added the observer to the terminal
 
but to get the button pressed ev , it doesn't fire unless I press dial softkey then I can get the button pressed be pressing dial  while in my app I have custome softkey and want it flush these button events
 
Sorry if I didn't make myself clear
waiting for rebly
Thanks in advance ,

Subject: RE: firing Button Pressed event
Replied by: Mohan Potluri on 21-07-2010 05:46:28 PM
To send an XSI object to the phone use sendDate(byte[]) method. Events are delivered to the observer when some thing happens on the Terminal. Application has to explicitly call API to send any to the phone (or simulate key press).

Subject: RE: firing Button Pressed event
Replied by: Sara Maher on 21-07-2010 07:47:02 PM
Thanks for your reply , but the keypad numbers will be pressed physically by the user so how can I simulate the pressing and according to the number I want to make an action , or is there something I have missed in your post


Thanks,

Subject: RE: firing Button Pressed event
Replied by: Sara Maher on 22-07-2010 12:19:00 PM
to make it clearer , it is like when you go to the services and press 1 , it is automatically open the service number 1
 
I need the same functionality of getting the button pressed to do the action inside my app
 

Subject: RE: firing Button Pressed event
Replied by: Jean-Marc Lacoste on 22-07-2010 01:40:24 PM
to make it clearer , it is like when you go to the services and press 1 , it is automatically open the service number 1
 
I need the same functionality of getting the button pressed to do the action inside my app
 


I suggest the following code, used in our CTI Server product :
                 String xmlExecute = "<CiscoIPPhoneExecute><ExecuteItem Priority=\"0\" URL=\"" + keyURI + "\"/></CiscoIPPhoneExecute>";
                 String sendDataAnswer = ct.sendData(xmlExecute);       // ct is CiscoTerminal                       
with values :
                 keyURI = "Key:Services";
                 keyURI = "Key:KeyPad1";
¿
Rgds
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:

Quick Links