コード例 #1
0
 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());
   }
 }
コード例 #2
0
 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());
   }
 }
コード例 #3
0
 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());
   }
 }