flush ();
}
}
}
protected void makecall ()
throws ResourceUnavailableException,
InvalidStateException,
PrivilegeViolationException,
MethodNotSupportedException,
InvalidPartyException,
InvalidArgumentException {
println ( "Making call #" + ++iteration + " from " + srcAddress + " to " +
destAddress + " " + Thread.currentThread ().getName () );
Call call
srcAddress.getProvider ().createCall ();
call.connect ( srcAddress.getTerminals ()[0],
srcAddress,
destAddress );
setCallProgressState ( false );
println ( "Done making call" );
}
protected final void onStart () {
stopSignal
new StopSignal ();
new ActionThread ().start ();
}
protected final void fireStateChanged () {
checkReadyState ();
}
protected final void onStop () {
stopSignal.stop ();
Connection[] connections
srcAddress.getConnections ();
try
{
if ( connections ! =
null )
{
for (int i = 0; i< connections.length; i++ )
{
connections[i].disconnect ();
}
}
}
catch ( Exception e )
{
println (" Caught Exception " + e);
}
}
public int getReceiverState () {
return receiverState;
}
public void setReceiverState ( int state ) {
if ( receiverState ! =
state )
{
receiverState
state;
checkReadyState ();
}
}
public synchronized void checkReadyState ()
{
if ( receiverState
=
Actor.ACTOR_IN_SERVICE && state
=
Cisco Unified JTAPI Developers Guide for Cisco Unified Communications Manager, Release 15 and SUs
753
Cisco Unified JTAPI Examples
Originator.java
