Lines Matching refs:callInfo
33 int32_t CSControl::Dial(const CellularCallInfo &callInfo, bool isEcc)
37 callInfo.slotId, static_cast<int32_t>(callInfo.callType), callInfo.videoState);
38 int32_t ret = DialPreJudgment(callInfo, isEcc);
44 RegServiceState regState = moduleServiceUtils.GetCsRegState(callInfo.slotId);
49 PhoneType netType = moduleServiceUtils.GetNetworkStatus(callInfo.slotId);
51 return DialGsm(callInfo);
54 return DialCdma(callInfo);
57 CellularCallHiSysEvent::WriteDialCallFaultEvent(callInfo.slotId, static_cast<int32_t>(callInfo.callType),
58 callInfo.videoState, CALL_ERR_UNSUPPORTED_NETWORK_TYPE, "Network type error");
62 int32_t CSControl::DialCdma(const CellularCallInfo &callInfo)
67 std::string newPhoneNum = standardizeUtils.RemoveSeparatorsPhoneNumber(callInfo.phoneNum);
70 if (IsNeedExecuteMMI(callInfo.slotId, newPhoneNum, clirMode, false)) {
78 CellularCallHiSysEvent::WriteDialCallFaultEvent(callInfo.slotId, static_cast<int32_t>(callInfo.callType),
79 callInfo.videoState, CALL_ERR_CALL_COUNTS_EXCEED_LIMIT, "cs cdma dial call state error");
86 return csConnection.SendCDMAThreeWayDialRequest(callInfo.slotId);
89 return EncapsulateDialCommon(callInfo.slotId, newPhoneNum, clirMode);
92 int32_t CSControl::DialGsm(const CellularCallInfo &callInfo)
97 std::string newPhoneNum = standardizeUtils.RemoveSeparatorsPhoneNumber(callInfo.phoneNum);
100 if (IsNeedExecuteMMI(callInfo.slotId, newPhoneNum, clirMode, false)) {
108 CellularCallHiSysEvent::WriteDialCallFaultEvent(callInfo.slotId, static_cast<int32_t>(callInfo.callType),
109 callInfo.videoState, CALL_ERR_CALL_COUNTS_EXCEED_LIMIT, "cs gsm dial call state error");
123 pConnection.SwitchCallRequest(callInfo.slotId);
125 return EncapsulateDialCommon(callInfo.slotId, newPhoneNum, clirMode);
163 int32_t CSControl::HangUp(const CellularCallInfo &callInfo, CallSupplementType type)
171 connectionMap_, callInfo.index);
175 callInfo.slotId, callInfo.callId, CALL_ERR_CALL_CONNECTION_NOT_EXIST, "HangUp pConnection is null");
190 return pConnection->HangUpRequest(callInfo.slotId);
198 return connection.CallSupplementRequest(callInfo.slotId, type);
205 return connection.RejectRequest(callInfo.slotId);
210 callInfo.slotId, callInfo.callId, TELEPHONY_ERR_ARGUMENT_INVALID, "HangUp type is invalid");
216 int32_t CSControl::Answer(const CellularCallInfo &callInfo)
221 FindConnectionByIndex<CsConnectionMap &, CellularCallConnectionCS *>(connectionMap_, callInfo.index);
224 CellularCallHiSysEvent::WriteAnswerCallFaultEvent(callInfo.slotId, callInfo.callId, callInfo.videoState,
259 con->SwitchCallRequest(callInfo.slotId);
268 return pConnection->AnswerRequest(callInfo.slotId);
272 CellularCallHiSysEvent::WriteAnswerCallFaultEvent(callInfo.slotId, callInfo.callId, callInfo.videoState,
292 int32_t CSControl::Reject(const CellularCallInfo &callInfo)
297 FindConnectionByIndex<CsConnectionMap &, CellularCallConnectionCS *>(connectionMap_, callInfo.index);
301 callInfo.slotId, callInfo.callId, CALL_ERR_CALL_CONNECTION_NOT_EXIST, "Reject pConnection is null");
313 callInfo.slotId, callInfo.callId, CALL_ERR_CALL_STATE, "Reject call state error phone not ringing");
320 return pConnection->RejectRequest(callInfo.slotId);
510 CallReportInfo CSControl::EncapsulationCallReportInfo(int32_t slotId, const CallInfo &callInfo)
518 std::string newString = standardizeUtils.FormatNumberAndToa(callInfo.number, callInfo.type);
545 callReportInfo.index = callInfo.index;
547 callReportInfo.voiceDomain = callInfo.voiceDomain;
548 callReportInfo.state = static_cast<TelCallState>(callInfo.state);
551 callReportInfo.mpty = callInfo.mpty;
645 int32_t CSControl::PostDialProceed(const CellularCallInfo &callInfo, const bool proceed)
651 standardizeUtils.ExtractAddressAndPostDial(callInfo.phoneNum, networkAddress, postDialString);
654 connectionMap_, callInfo.index);
660 ExecutePostDial(callInfo.slotId, pConnection->GetIndex());