void custom_send_msg_to_ABM(msg_type msg_name, void *param_ptr)
{
ilm_struct *ilm_ptr = NULL;
ilm_ptr = allocate_ilm(MOD_ATCI);
ilm_ptr->src_mod_id = MOD_ATCI;
ilm_ptr->dest_mod_id = MOD_ABM;
ilm_ptr->msg_id = msg_name; /* Set the message id */
ilm_ptr->peer_buff_ptr = NULL; /* there are no peer message to be
sent to TCM. Hence this field is null. */
ilm_ptr->local_para_ptr = (local_para_struct*) param_ptr;
msg_send_ext_queue(ilm_ptr);
}
void custom_send_update_account_msg_to_ABM(kal_uint8 contextId, IpConfigType_e bearerType)
{
kal_uint32 acctId;
mmi_abm_update_account_info_req_struct *param_ptr = NULL;
char buffer[MAX_UART_LEN+1];
param_ptr = (mmi_abm_update_account_info_req_struct *)construct_local_para(
(kal_uint16)sizeof(mmi_abm_update_account_info_req_struct),
TD_RESET);
acctId = APPTCPIP_ACOUNT_START + contextId;
if(IP_CSD_CONFIG == bearerType)
{
param_ptr->bearer_type = CBM_CSD;
}
else
{
param_ptr->bearer_type = CBM_PS;
}
param_ptr->action = MMI_ABM_PROFILE_ADD;
param_ptr->account_id = acctId;
kal_prompt_trace(MOD_ATCI, "%d,%s,%s,param_ptr->account_id=%x", __LINE__, __func__, __FILE__, param_ptr->account_id);
sprintf(buffer,"%d,%s,%s,param_ptr->account_id=%x", __LINE__, __func__, __FILE__, param_ptr->account_id);
rmmi_write_to_uart((kal_uint8*)buffer, strlen(buffer), KAL_TRUE);
custom_send_msg_to_ABM(MSG_ID_MMI_ABM_UPDATE_ACCOUNT_INFO_REQ,param_ptr);
}