delete pTelManager->__pDialedCall;
pTelManager->__pDialedCall = null;
}
+
+ //Check if there are no active connected calls and no incoming call.
+ if (pTelManager->__pIncomingCall != null)
+ {
+ pTelManager->__pSettingsManager->SetCallState(CALL_STATE_CALL_VOICE_CONNECTING);
+ }
+ else if (pTelManager->GetCurrentCallCount() >= 1)
+ {
+ pTelManager->__pSettingsManager->SetCallState(CALL_STATE_CALL_VOICE_ACTIVE);
+ }
+ else
+ {
+ pTelManager->__pSettingsManager->SetCallState(CALL_STATE_CALL_OFF);
+ }
+
pTelManager->__pEventListener->HandleTelephonyError(ERROR_DIAL_FAILED);
}
}
contactNumber.Append(pIncomingCallInfo->GetContactNumber());
//Check if "reject unknown calls" is set and contact number is not present in AddressBook
//or if contact number is blacklisted
- if (((__pSettingsManager->GetUnknownRejectStatus() == true) && (pIncomingCallInfo->GetContactInfo() == null))
- || (__pSettingsManager->IsCallToBeRejected(contactNumber) == true))
+ if(__pSettingsManager != null)
{
- AnswerAutoRejectCall(callHandle);
- return true;
+ if (((__pSettingsManager->GetUnknownRejectStatus() == true) && (pIncomingCallInfo->GetContactInfo() == null))
+ || (__pSettingsManager->IsCallToBeRejected(contactNumber) == true))
+ {
+ AnswerAutoRejectCall(callHandle);
+ return true;
+ }
}
return false;
}