VOS_VOID MN_MSG_PrintSrvParamStru( MN_MSG_SRV_PARAM_STRU *pstSrvParam ) { MN_INFO_LOG("MN_MSG_PrintSrvParamStru: SMS SERVICE PARAM INFO "); MN_INFO_LOG1("MN_MSG_PrintSrvParamStru: Parameter indicate ", pstSrvParam->ucParmInd); MN_INFO_LOG("MN_MSG_PrintSrvParamStru: SMS DEST ADDRESS"); MN_MSG_PrintBcdAddrStru(&pstSrvParam->stDestAddr); MN_INFO_LOG("MN_MSG_PrintSrvParamStru: SMS SCA ADDRESS"); MN_MSG_PrintBcdAddrStru(&pstSrvParam->stScAddr); MN_INFO_LOG1("MN_MSG_PrintSrvParamStru: ucPid ", pstSrvParam->ucPid); MN_INFO_LOG1("MN_MSG_PrintSrvParamStru: ucDcs ", pstSrvParam->ucDcs); MN_INFO_LOG1("MN_MSG_PrintSrvParamStru: ucValidPeriod ", pstSrvParam->ucValidPeriod); return; }
VOS_UINT32 TAF_SPM_IsUsimEmergencyNum( MN_CALL_CALLED_NUM_STRU *pstDialNum, VOS_UINT32 *pulEmcCatExist, VOS_UINT8 *pucEmerCategory ) { SI_PB_ECC_DATA_STRU *pstEccData = VOS_NULL_PTR; VOS_INT8 acUsimCalledNum[MN_CALL_MAX_ASCII_NUM_LEN + 1]; VOS_INT8 acCalledNum[MN_CALL_MAX_CALLED_ASCII_NUM_LEN + 1]; MN_CALL_TYPE_ENUM_U8 enCallType; VOS_UINT32 i; enCallType = MN_CALL_TYPE_VOICE; /* 获取USIM中的紧急呼叫号码 */ pstEccData = (SI_PB_ECC_DATA_STRU *)PS_MEM_ALLOC(WUEPS_PID_TAF, sizeof(SI_PB_ECC_DATA_STRU)); if (VOS_NULL_PTR == pstEccData) { MN_WARN_LOG("TAF_SPM_IsUsimEmergencyNum: Alloc Mem Fail."); return VOS_FALSE; } /* 号码转换 BCD-> Ascii */ if (MN_ERR_NO_ERROR != TAF_STD_ConvertBcdNumberToAscii(pstDialNum->aucBcdNum, pstDialNum->ucNumLen, (VOS_CHAR *)acCalledNum)) { MN_WARN_LOG("TAF_SPM_IsUsimEmergencyNum: BCD -> Ascii ERROR."); PS_MEM_FREE(WUEPS_PID_TAF, pstEccData); return VOS_FALSE; } PS_MEM_SET(pstEccData, 0, sizeof(SI_PB_ECC_DATA_STRU)); NAS_PBAPI_GetEccNumber(pstEccData); /* 比较号码是否是EFECC文件中的紧急呼叫号码 */ for (i = 0; i< pstEccData->ulReocrdNum; i++) { PS_MEM_SET(acUsimCalledNum,0,MN_CALL_MAX_ASCII_NUM_LEN + 1); if (MN_ERR_NO_ERROR != TAF_STD_ConvertBcdNumberToAscii(pstEccData->astEccRecord[i].aucEccCode, USIM_ECC_LEN, (VOS_CHAR *)acUsimCalledNum)) { MN_INFO_LOG("TAF_SPM_IsUsimEmergencyNum: TAF_STD_ConvertBcdNumberToAscii fail"); } if (0 == VOS_StrCmp((VOS_CHAR *)acUsimCalledNum, (VOS_CHAR *)acCalledNum)) { enCallType = MN_CALL_TYPE_EMERGENCY; MN_INFO_LOG("TAF_SPM_IsUsimEmergencyNum: get card Ecc change to emergency"); break; } } /* 当前是紧急呼叫号码则判断号码类型是否有效 */ if (MN_CALL_TYPE_EMERGENCY == enCallType) { if (VOS_TRUE == pstEccData->astEccRecord[i].bESC) { *pulEmcCatExist = TAF_SPM_IsValidEmerCategory(pstEccData->astEccRecord[i].ucESC); } if (VOS_TRUE == *pulEmcCatExist) { *pucEmerCategory = (pstEccData->astEccRecord[i].ucESC & MN_CALL_EMER_CATEGORG_VAL_MAX); } PS_MEM_FREE(WUEPS_PID_TAF, pstEccData); return VOS_TRUE; } PS_MEM_FREE(WUEPS_PID_TAF, pstEccData); return VOS_FALSE; }
LOCAL VOS_VOID MSG_WaitRetryPeriodTimeout( VOS_UINT32 ulParam ) { MN_INFO_LOG("MSG_WaitRetryPeriodTimeout:RetryPeriodTimeout"); }