void stopCallRecording(String id) throws TropoException, SystemException { setLogContext(null); Call call = getCall(id); try { ((IncomingCall) call).stopCallRecording(); } catch (ClassCastException e) { throw new TropoException(call + " can not be stopCallRecording."); } catch (ErrorException e) { throw new TropoException(e.toString()); } catch (FatalException e) { throw new SystemException(e.toString()); } }
void redirect(String id, String number) throws TropoException, SystemException { setLogContext(null); Call call = getCall(id); try { ((IncomingCall) call).redirect(number); } catch (ClassCastException e) { throw new TropoException(call + " can not be answered."); } catch (ErrorException e) { throw new TropoException(e.toString()); } catch (FatalException e) { throw new SystemException(e.toString()); } }
void startCallRecording( String id, String filenameOrUrl, String format, String publicKey, String publicKeyUri) throws TropoException, SystemException { setLogContext(null); Call call = getCall(id); try { ((IncomingCall) call).startCallRecording(filenameOrUrl, format, publicKey, publicKeyUri); } catch (ClassCastException e) { throw new TropoException(call + " can not be startCallRecording."); } catch (ErrorException e) { throw new TropoException(e.toString()); } catch (FatalException e) { throw new SystemException(e.toString()); } }