Looking for JTAPI example code for monitoring phone state

Unanswered Question
May 17th, 2008
User Badges:

Hi all,

I'm trying to write a little Java application to monitor the on hook/off hook state of some phones.

I wrote a class that implements the TerminalObserver interface.

I receive CiscoTermOutOfServiceEv and CiscoTermInServiceEv events, but nothing like a CiscoTermDeviceStateActiveEv event.

Does anyone has a example code snipplet for me how to receive these state change events?

Tanks in advance


  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
stephan.steiner Sun, 05/18/2008 - 23:48
User Badges:
  • Silver, 250 points or more

Does your monitoring class implement CiscoTerminalObserver? TerminalObserver isn't enough because the device state server is state specific.

Then if you check the jtapi documentation for information on the device state server, you should come across a method CiscoTerminal.getFilter(). It gets you a CiscoTermEvFilter object which has various setters and getters in order to turn on/off various terminal events (like the one you're looking for). Set the appropriate options, then call CiscoTerm.setFilter(filter).


This Discussion