private void handleDenyCall(Intent intent) { state = RedPhone.STATE_IDLE; incomingRinger.stop(); CallLogger.logMissedCall(this, remoteNumber, System.currentTimeMillis()); ((ResponderCallManager) this.currentCallManager).answer(false); this.terminate(); }
private void handleOutgoingCall(Intent intent) { remoteNumber = extractRemoteNumber(intent); if (remoteNumber == null || remoteNumber.length() == 0) return; sendMessage(RedPhone.HANDLE_OUTGOING_CALL, remoteNumber); state = RedPhone.STATE_DIALING; lockManager.updatePhoneState(LockManager.PhoneState.INTERACTIVE); this.currentCallManager = new InitiatingCallManager(this, this, localNumber, password, remoteNumber, zid); this.currentCallManager.start(); NotificationBarManager.setCallInProgress(this); currentCallRecord = CallLogger.logOutgoingCall(this, remoteNumber); }
private void handleAnswerCall(Intent intent) { state = RedPhone.STATE_ANSWERING; incomingRinger.stop(); currentCallRecord = CallLogger.logIncomingCall(this, remoteNumber); ((ResponderCallManager) this.currentCallManager).answer(true); }
private void handleMissedCall(String remoteNumber) { CallLogger.logMissedCall(this, remoteNumber, System.currentTimeMillis()); NotificationBarManager.notifyMissedCall(this, remoteNumber); }