mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-04 05:06:58 -04:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user