/mcpisCallInIdle; notifyAll (); } public synchronized void doAction () { if ( !ready || !callInIdle ) { try { wait (); } catch ( Exception e ) { println (" Caught Exception from wait state" + e ); } } else { if ( actionDelayMillis ! = 0 ) { println ( "Pausing " + actionDelayMillis + " milliseconds before making call " ); flush (); try { wait ( actionDelayMillis ); } catch ( Exception ex ) { } } //make call after waking up, recheck the flags before making the call if ( ready && callInIdle ) { try { makecall (); } catch ( Exception e ) { println (" Caught Exception in MakeCall " + e + " Thread = " + Thread.currentThread ().getName ()); } } } } class ActionThread extends Thread { Cisco Unified JTAPI Developers Guide for Cisco Unified Communications Manager, Release 15 and SUs 754 Cisco Unified JTAPI Examples Originator.java
