}
void send_dtfm_number_toCat1(char ch)//发送dtfm
{
- // printf("ch:%s\r\n",&ch);
+ printf("ch:%c\r\n",ch);
udp_send_msg_toCat1(UDP_MSG_SEND_DTMF_NUMBER,&ch);
}
+ void send_volte_switch_toCat1(void)//发送VOLTE->CAT1
+ {
+ bool Cat1_4G = OHOS::ConfigModel::GetInstance()->GetCat1_4Gability();
+ if (Cat1_4G == 0)
+ return;
+
+ bool volte = OHOS::ConfigModel::GetInstance()->GetVoLTE_Call();
+ char send_str[5] = {0};
+ sprintf_s((char *)send_str,5, "%d", volte);
+ udp_send_msg_toCat1(UDP_MSG_SEND_VOLTE_SWITCH,send_str);
+ }
+ bool get_volte_switch(void)//
+ {
+ bool volte = OHOS::ConfigModel::GetInstance()->GetVoLTE_Call();
+ return volte;
+ }
+
static int udp_packet_parse(char *rx_buffer, int len)
{