合并 638/2 638/head
authorhcj <1224667075@qq.com>
Sat, 3 Aug 2024 09:34:57 +0000 (17:34 +0800)
committerhcj <1224667075@qq.com>
Sat, 3 Aug 2024 09:34:57 +0000 (17:34 +0800)
1  2 
code/sdk/drivers/peripheral/slip/cat1Service/cat1_server.cpp

@@@ -1138,9 -1141,26 +1143,26 @@@ void set_dmp_cm_address_toCat1(char *ad
  }
  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)
  {