Terminal events

Version 1
    This document was generated from CDN thread

    Created by: Marwa Ads on 12-10-2009 12:59:44 PM
    Please can any one tell me how i know the event that tell me the hook is on or off?

    Or If there exist method to monitor the speaker of the phone please any one tell me?
    because :
    I develop program that the user talk in the hook then off the hook.
    i want to listen when the hook is on ( the user talk in it) and when the hook is off¿
    to take action
    thanks

    Subject: RE: Terminal events
    Replied by: Anitha V on 12-10-2009 02:29:55 PM
    Hi Marwa Ads,
     
    You could use either TAPI or JTAPI applications to know the terminal events.
     
    For more details you could check the TAPI / JTAPI developer guide available over here:- http://developer.cisco.com/web/tapi/docs
    and http://developer.cisco.com/web/jtapi/docs
    Hope this helps.
     
    Thanks and Regards,
    Anitha

    Subject: RE: Terminal events
    Replied by: Marwa Ads on 12-10-2009 02:56:19 PM
    Thank You Anitha for your help 
    But i searched JTapi guide and i didn't find any method to monitor the speaker or the hook of the phone
     
    i find CiscoTermEvFilter and they haven't what i need.

    Subject: RE: Terminal events
    Replied by: Stephan Steiner on 13-10-2009 03:26:33 PM
    That's correct, you can't get everything. However, going off hook will get you a ConnCreatedEv, and looking at the participants (the remote end of the associated call won't be there yet), you can use that. Or a more top level approach would be to use the device states. Of course, for incoming calls, you have to correlate that with available calls.. and to make matters worse, not every phone is set up to automatically answer incoming calls when you go off hook (you can configure them to have the user press the line button first), so you need to consider that as well.. but the principle is the same.. of the device is off hook, you have an active connection.
     
    Then again.. in all this activating the speaker and going off hook are interchangeable.. you won't know the difference (neither will you when it comes to using the headset for doing the same).