Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Call Recording with CCM 6.0

I trying application invoked call recording. Am I doing anything wrong in my code.

My Code:

if(callev instanceof CallCtlTermConnTalkingEv) {

logger.debug("CallCtlTermConnTalkingEv");

try {

TerminalConnection tc = ((CallCtlTermConnTalkingEv)callev).getTerminalConnection();

String tname = tc.getTerminal().getName().toUpperCase();

logger.debug("Device Mac:" + tname);

CiscoTerminalConnection ctc = (CiscoTerminalConnection)tc;

CiscoAddress ca = (CiscoAddress)ctc.getConnection().getAddress();

if ( (ca.getRecordingConfig(ctc.getTerminal()) == CiscoAddress.APPLICATION_CONTROLLED_RECORDING) &&

(ctc.getCallControlState() == CallControlTerminalConnection.TALKING) ) {

logger.debug("Send startRecording(CiscoCall.PLAYTONE_NOLOCAL_OR_REMOTE)");

ctc.startRecording(CiscoCall.PLAYTONE_NOLOCAL_OR_REMOTE);

logger.debug("Send Start Recording request to phone");

} else {

logger.debug("check terminal state for startRecording() = " + tname);

logger.debug("CiscoAddress.APPLICATION_CONTROLLED_RECORDING && CallControlTerminalConnection.TALKING");

}

} catch (Exception e1) {

logger.debug("Exception in CallCtlTermConnTalkingEv-" + e1.getMessage());

e1.printStackTrace();

}

}

I'm getting the following error when i'm triggering startRecording().

Exception in CallCtlTermConnTalkingEv-Start Recording request failed: com.cisco.cti.client.CCNException

com.cisco.jtapi.PlatformExceptionImpl: Start Recording request failed: com.cisco.cti.client.CCNException

at com.cisco.jtapi.TerminalConnectionImpl.startRecording(CTQF)

at com.corvero.ccs.recorder.jtapiAdapter.JTAPIController.callChangedEvent(Unknown Source)

at com.cisco.jtapi.ObserverProxy.Z(CTQF)

at com.cisco.jtapi.ObserverThread.messageReceived(CTQF)

at com.cisco.cti.util.MessageThread.append(CTQF)

at com.cisco.cti.util.MessageThread.CTQF(CTQF)

at com.cisco.cti.util.MessageThread.run(CTQF)

-SVK

368
Views
0
Helpful
0
Replies