Avaya Jtapi Programmer 39-s Guide
Goal: Join a recording server as a silent observer to an active call.
From the guide’s advanced chapter:
AvayaCall call = (AvayaCall) getActiveCallForExtension("6000"); AvayaConnection monitoredConn = getConnectionForParty(call, "6000");
// Create a monitor (silent, no tone) Monitor monitor = monitoredConn.startMonitor( Monitor.MONITOR_TYPE_SILENT, "recordingServer_5000" );avaya jtapi programmer 39-s guide
The guide details how to acquire a Provider object (your logical link to Avaya CM) and how to obtain Terminal objects (representing physical or virtual phones). Goal: Join a recording server as a silent
Goal: A CRM application clicks a phone number and forces the user’s desk phone to dial.
Pattern from the guide:
public void makeCall(Terminal terminal, String destNumber) throws Exception Address terminalAddr = terminal.getAddresses()[0]; CallControlAddress callAddr = (CallControlAddress) terminalAddr;// Create a new call CallControlCall call = (CallControlCall) provider.createCall(); // Connect the call (originate) Connection conn = callAddr.connect( call, new AddressImpl(destNumber), CallControlAddress.BLOCKING ); // Monitor call progress call.addObserver(new CallObserver() public void connectionCreated(ConnectionEvent event) if (event.getID() == ConnectionEvent.ALERTING) System.out.println("Remote end is ringing"); );
