McDewey

Multi-vendor documentation library · semantic search · MCP endpoint at /mcp

Page 818

↗ View in doc context
page
818
source
cucm/v15/jtapi-dev-guide/jtapi-dev-guide.md
chunk_id
cucm::v15::jtapi-dev-guide::jtapi-dev-guide::821

Actor.ACTOR_IN_SERVICE ) { ready

true; } else { ready

false; } notifyAll (); } public synchronized void setCallProgressState ( boolean isCallInIdle ) { callInIdle

isCallInIdle; 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

Page 818 content