Egd 2946 add proper rejected call handling (#220)

* [EGD-2046] fixed rejected call status.
Hangup call as asnychronous call
Code clean up.

* [EGD-2964] code refactored

* [EGD-2946] missing rejexted call type name

* [EGD-2946] call app - time duration use RTC
fix #ifdef in AudioServiceApi
Minor gui fixec in call window
This commit is contained in:
Alek-Mudita
2020-03-12 10:46:22 +01:00
committed by GitHub
parent c243ab0174
commit e3296bb4e8
13 changed files with 265 additions and 226 deletions

View File

@@ -44,18 +44,11 @@ bool CellularServiceAPI::AnswerIncomingCall(sys::Service* serv) {
}
}
bool CellularServiceAPI::HangupCall(sys::Service* serv){
void CellularServiceAPI::HangupCall(sys::Service *serv)
{
std::shared_ptr<CellularRequestMessage> msg = std::make_shared<CellularRequestMessage>(MessageType::CellularHangupCall);
auto ret = sys::Bus::SendUnicast(msg,ServiceCellular::serviceName,serv,5000);
CellularResponseMessage* response = reinterpret_cast<CellularResponseMessage*>(ret.second.get());
if((ret.first == sys::ReturnCodes::Success) && (response->retCode == true)){
return true;
}
else{
LOG_ERROR("Failed");
return false;
}
sys::Bus::SendUnicast(msg, ServiceCellular::serviceName, serv);
}
std::string CellularServiceAPI::GetIMSI(sys::Service *serv, bool getFullIMSINumber)