Voice call control method and device, terminal and storage medium

By detecting the packet loss rate of voice calls at the terminal and switching to VoLTE of the 4G network when the conditions are met, the problem of degradation of voice calls under abnormal conditions in SA cell in 5G network is solved, and a more stable voice call experience is achieved.

CN119136239APending Publication Date: 2024-12-13GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310701110.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-13
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

In 5G network, when the user terminal connects to the SA cell, the signal strength is weak or the signal noise power is high, resulting in an increase in packet loss rate of voice calls, seriously reducing the quality of voice calls.

Method used

During the terminal's first type of voice call, the packet loss rate is detected every T seconds, abnormal events are counted (the number of times the packet loss rate is greater than the threshold or duration), and when the preset conditions are met, the next voice is set The call type is set to the second type of voice call, and voice calls are established through VoLTE of the 4G network to avoid the impact of abnormal SA cells on voice calls.

Benefits of technology

The packet loss rate of voice calls is reduced, the call quality of voice calls is improved, and the negative impact of abnormal SA cells on voice calls is avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119136239A_ABST
    Figure CN119136239A_ABST
Patent Text Reader

Abstract

The invention provides a voice call control method and device, a terminal and a storage medium, and belongs to the technical field of communication. The method is executed by a terminal, and comprises the following steps: in a process of performing a first type of voice call by the terminal, detecting a packet loss rate of the first type of voice call once in T seconds every T seconds to obtain a plurality of packet loss rates; in response to the ending of the first type of voice call, determining the occurrence frequency of the plurality of abnormal events based on the plurality of packet loss rates; and under the condition that the abnormal event meets the preset condition, setting the type of the voice call established next time by the terminal as a second type of voice call. According to the scheme, under the condition that the quality of the current voice call of the terminal is poor, the type of the voice call established next time by the terminal is set to be the second type of voice call. Therefore, during the next voice call, the terminal can access the cell providing the 4G network, and the influence of the abnormal 5G network on the voice call is avoided, thereby reducing the packet loss rate and improving the quality of the voice call.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a voice call control method, device, terminal and storage medium. Background Art

[0002] As communication technology evolves from the fourth generation mobile communication technology (4G) to the fifth generation mobile communication technology (5G), voice service is still one of the main services of operators. Among them, the voice service provided in the 5G network is called VoNR (Voice over New Radio). Since the call quality of voice service directly affects the user's call experience, how to ensure the call quality between user terminals (UE) is a technical problem that needs to be solved.

[0003] In the related technology, for user terminals supporting VoNR, they usually access the 5G network by accessing the SA (Standalone) cell, and establish a voice call through VoNR in the SA cell. During the voice call, the user terminal periodically encapsulates the user's voice data into PDCP (Packet Data Convergence Protocol) packets and transmits the PDCP packets on the voice bearer to ensure the call quality of the voice call. Among them, the voice bearer is a channel for transmitting data.

[0004] However, when using the above method, if an abnormal situation occurs in the SA cell accessed by the user terminal, such as when the signal strength of the SA cell is weak or the signal noise power is high, PDCP packet loss will occur, resulting in the loss of the user's voice data, thereby seriously reducing the quality of the voice call and reducing the user's voice call experience. Summary of the invention

[0005] The embodiments of the present application provide a voice call control method, device, terminal and storage medium, which can reduce the packet loss rate of voice calls and improve the call quality of voice calls. The technical solution is as follows:

[0006] According to one aspect of an embodiment of the present application, a voice call control method is provided, the method comprising:

[0007] During the process of the terminal making a first type of voice call, detecting a packet loss rate of the first type of voice call within the T seconds every T seconds to obtain multiple packet loss rates, where the first type of voice call is a voice call established through the new air interface voice bearer VoNR, and T is a positive number;

[0008] In response to the first type of voice call ending, determining multiple abnormal events based on the multiple packet loss rates, the abnormal event being that the packet loss rate is greater than a packet loss rate threshold;

[0009] When the abnormal event meets the preset conditions, the type of the next voice call established by the terminal is set to a second-class voice call, and the preset conditions are that the number of occurrences of the abnormal event is greater than a preset threshold, or the duration of the abnormal event is greater than a preset duration, and the second-class voice call is a voice call established through the Long Term Evolution Voice Bearer VoLTE.

[0010] According to another aspect of an embodiment of the present application, a voice call control device is provided, the device comprising:

[0011] A first detection module is used to detect a packet loss rate of the first type of voice call within T seconds every T seconds during a first type of voice call at the terminal to obtain multiple packet loss rates, wherein the first type of voice call is a voice call established through a new air interface voice bearer VoNR, and T is a positive number;

[0012] A determination module, configured to determine, in response to the termination of the first type of voice call, a plurality of abnormal events based on the plurality of packet loss rates, wherein the abnormal event is that the packet loss rate is greater than a packet loss rate threshold;

[0013] A setting module is used to set the type of the next voice call established by the terminal to a second-class voice call when the abnormal event meets a preset condition, wherein the preset condition is that the number of occurrences of the abnormal event is greater than a preset threshold, or the duration of the abnormal event is greater than a preset duration, and the second-class voice call is a voice call established through a long-term evolution voice bearer VoLTE.

[0014] In some embodiments, the first detection module includes:

[0015] an acquiring unit, configured to acquire a voice packet transmitted within the T seconds during the process of the terminal making the first type of voice call, wherein the voice packet is an uplink voice packet or a downlink voice packet, wherein the uplink voice packet is a voice packet sent by the terminal to the base station, and the downlink voice packet is a voice packet sent by the base station to the terminal;

[0016] The determination unit is used to determine the packet loss rate of the first type of voice call within the T seconds based on the uplink voice packets or downlink voice packets transmitted within the T seconds.

[0017] In some embodiments, the voice packet is a Packet Convergence Protocol (PDCP) packet, and the PDCP packet is used to encapsulate voice data during a voice call.

[0018] In some embodiments, the determination unit is used to determine the number of uplink PDCP packets based on the sequence number of the uplink PDCP packet when the PDCP packet is an uplink PDCP packet, and the sequence number is used to identify the sending order of the PDCP packets; obtain the number of first PDCP packets, and the first PDCP packet is the PDCP packet sent by the terminal that is actually received by the base station within the T seconds; determine the number of PDCP packets lost within the T seconds based on the number of uplink PDCP packets and the number of first PDCP packets, and the number of lost PDCP packets is the difference between the number of uplink PDCP packets and the number of first PDCP packets; determine the packet loss rate of the first type of voice call within the T seconds based on the number of PDCP packets lost within the T seconds and the number of uplink PDCP packets.

[0019] In some embodiments, the determination unit is used to obtain the number of downlink PDCP packets when the PDCP packet is a downlink PDCP packet; determine the number of the second PDCP packets based on the sequence number of the second PDCP packet, the second PDCP packet being the PDCP packet sent by the base station and actually received by the terminal within the T seconds; determine the number of PDCP packets lost within the T seconds based on the number of downlink PDCP packets and the number of the second PDCP packets, the number of lost PDCP packets being the difference between the number of downlink PDCP packets and the number of the second PDCP packets; determine the packet loss rate of the first type of voice call within the T seconds based on the number of PDCP packets lost within the T seconds and the number of downlink PDCP packets.

[0020] In some embodiments, the setting module is used to determine the duration of the abnormal event based on the number of occurrences of the abnormal event, and the duration is the product of the number of occurrences of the abnormal event and the T seconds; based on the call duration and the duration of the first type of voice call, determine the occurrence ratio of the abnormal event, the call duration is in seconds, and the occurrence ratio is the ratio of the duration of the abnormal event to the call duration; when the occurrence ratio of the abnormal event is greater than the preset ratio, the abnormal event meets the preset condition, and the type of the voice call established next time by the terminal is set to the second type of voice call.

[0021] In some embodiments, the first type of voice call is a voice call established through VoNR provided by a 5G network, and the second type of voice call is a voice call established through VoLTE provided by a 4G network, and the apparatus further includes:

[0022] a network fallback module, configured to, in response to the terminal triggering a voice call request in the 5G network, fall back the network accessed by the terminal from the 5G network to the 4G network by means of network fallback, when the type of the next voice call established by the terminal is the second type of voice call, wherein the network fallback includes the evolved packet system fallback EPSFB based on redirection and the EPSFB based on switching;

[0023] A voice call establishing module is used to establish the second type of voice call based on VoLTE provided by the 4G network.

[0024] In some embodiments, the apparatus further comprises:

[0025] A second detection module, configured to detect the duration of a target event, wherein the target event is that the type of the voice call established by the terminal is the second type of voice call;

[0026] The setting module is further configured to set the type of the next voice call established by the terminal to the first type of voice call when the duration is equal to the time threshold.

[0027] According to another aspect of an embodiment of the present application, a terminal is provided, comprising a processor and a memory; the memory stores at least one program code, and the at least one program code is used to be executed by the processor to implement the voice call control method as described in the above aspect.

[0028] According to another aspect of an embodiment of the present application, a chip is provided, which includes a programmable logic circuit and / or program instructions. When the chip runs on a terminal, it is used to implement the voice call control method described in the above aspect.

[0029] According to another aspect of an embodiment of the present application, a computer-readable storage medium is provided, wherein the storage medium stores at least one program code, and the at least one program code is used to be executed by a processor to implement the voice call control method as described in the above aspects.

[0030] According to another aspect of an embodiment of the present application, a computer program product is provided. The computer program product stores at least one program code, and the at least one program code is used to be executed by a processor to implement the voice call control method described in the above aspect.

[0031] The embodiment of the present application provides a voice call control scheme. During the voice call, the packet loss rate of the voice call can directly affect the quality of the voice call. When the terminal establishes a first-class voice call through the VoNR provided by the 5G network, if the SA (independent networking that provides 5G network) cell to which the terminal accesses has an abnormal situation, such as the signal strength of the SA cell is weak or the signal noise power is high, the packet loss rate of the voice call will be greatly increased, significantly reducing the quality of the voice call. Therefore, during the process of the terminal making the first-class voice call, the packet loss rate of the first-class voice call is detected every T seconds to obtain multiple packet loss rates. After the first-class voice call ends, the number of times the packet loss rate is greater than the packet loss rate threshold is counted, and when the number is large, the type of the voice call established by the terminal next time is set to the second-class voice call, that is, the voice call established through the VoLTE provided by the 4G network. Furthermore, during the next voice call, the terminal can access the cell providing the 4G network, avoiding the influence of the abnormal SA cell on the voice call, thereby reducing the packet loss rate and improving the call quality of the voice call. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0033] Figure 1 It is a schematic diagram of an implementation environment provided by an embodiment of the present application;

[0034] Figure 2 is a flow chart of a voice call control method provided by an embodiment of the present application;

[0035] Figure 3 is a flow chart of another voice call control method provided by an embodiment of the present application;

[0036] Figure 4 This is a signaling flow chart for establishing a voice call through VoNR provided in an embodiment of the present application;

[0037] Figure 5 is a schematic diagram of allocating radio bearers provided in an embodiment of the present application;

[0038] Figure 6 is a schematic diagram of a voice packet provided in an embodiment of the present application;

[0039] Figure 7 This is a flow chart of controlling a voice call provided by an embodiment of the present application;

[0040] Figure 8 This is a flow chart of detecting packet loss rate provided by an embodiment of the present application;

[0041] Fig. 9 It is a structural schematic diagram of a voice call control device provided in an embodiment of the present application;

[0042] Fig.10 is a structural schematic diagram of another voice call control device provided in an embodiment of the present application;

[0043] Fig.11 It is a structural block diagram of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION

[0044] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0045] In this article, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of the associated objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.

[0046] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions. For example, the voice packages and voice call duration involved in this application are all obtained with full authorization.

[0047] Figure 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application. Figure 1 The implementation environment includes: a terminal 101 and a network device 102. The terminal 101 can communicate with the network device 102 directly or indirectly, which is not limited in the embodiment of the present application.

[0048] In some embodiments, terminal 101 is a terminal 101 with wireless communication function. Among them, terminal 101 can communicate with one or more core networks via a radio access network (Radio Access Network, RAN). Terminal 101 can be a mobile terminal, such as a mobile phone (or "cellular" phone) and a computer with a mobile terminal. For example, terminal 101 can be a portable, pocket-sized, handheld, computer-built-in or vehicle-mounted mobile device. Terminal 101 can also be a mobile phone, a tablet computer, a computer with wireless communication function or a wearable device, etc. In the embodiments of the present application, this is not specifically limited.

[0049] In some embodiments, the network device 102 is a base station corresponding to at least one of the communication systems in the Long Term Evolution (LTE) system, the Wideband Code Division Multiple Access (WCDMA) system, or the Global System for Mobile Communications (GSM). In the embodiments of the present application, this is not specifically limited. In some embodiments, the network device 102 is any network device 102 with wireless transceiver functions. For example, the network device 102 is an access point (AP), a wireless relay node, a wireless backhaul node, a transmission point (TP), or a transmission and reception point (TRP) in an evolved Node B (eNB), a next generation Node B (gNB), a Wireless Fidelity (WIFI) system, etc.

[0050] In the embodiment of the present application, the terminal 101 is located within the coverage of the network device 102. Whether the terminal 101 is stationary or mobile, the terminal 101 can perform data transmission with the network device 102. The network device 102 can send data to the terminal 101, and accordingly, the terminal 101 receives the data sent by the network device 102. Alternatively, the terminal 101 sends data to the network device 102, and accordingly, the network device 102 receives the data sent by the terminal 101. The sending of data by the network device 102 to the terminal 101 is downlink transmission, and the data packet sent by the network device 102 to the terminal 101 is a downlink data packet. The sending of data by the terminal 101 to the network device 102 is uplink transmission, and the data packet sent by the terminal 101 to the network device 102 is an uplink data packet.

[0051] In some embodiments, the terminal 101 can make voice calls with other terminals through the network device 102. During the voice call, the terminal 101 encapsulates the collected voice data into voice packets, transmits the voice packets to the network device 102 through uplink transmission, and the network device 102 forwards the voice packets sent by the terminal 101 to other terminals. The network device 102 can also send the voice packets sent by other terminals to the terminal 101 through downlink transmission, so as to realize the voice call between the terminal 101 and other terminals.

[0052] Figure 2 is a flow chart of a voice call control method provided in an embodiment of the present application. The method is executed by the terminal, see Figure 2 , the method comprising:

[0053] 201. During a first type of voice call at a terminal, the terminal detects a packet loss rate of the first type of voice call within T seconds every T seconds to obtain multiple packet loss rates. The first type of voice call is a voice call established through a new air interface voice bearer VoNR, and T is a positive number.

[0054] In an embodiment of the present application, according to the different ways in which the terminal establishes a voice call, the voice call established by the terminal can be divided into a first type of voice call and a second type of voice call. Among them, the first type of voice call refers to a voice call established by the terminal through the voice service VoNR (Voice over New Radio) provided by the 5G network when the terminal accesses the SA (Standalone, independent networking) cell providing the 5G network. The second type of voice call refers to a voice call established by the terminal through the voice service VoLTE (Voice over Long Term Evolution) provided by the 4G network when the terminal accesses the cell providing the 4G network. In the process of establishing a voice call, the base station to which the terminal is connected will allocate a radio bearer (RB, Radio Bearer) to the terminal. Among them, the radio bearer is a channel for transmitting data. Furthermore, after successfully establishing a voice call, the terminal can encapsulate the collected voice data into a data packet, and transmit multiple data packets to the base station through the radio bearer, and the base station forwards the data packet to the other party of the voice call. The base station can also transmit the data packet sent by the other party to the base station to the terminal through the radio bearer, thereby realizing a voice call between the two communicating parties. Since the data packet carries the user's voice data, the packet loss rate of the data packet can directly affect the quality of the voice call. Therefore, in order to detect the call quality of the first type of voice call, the terminal can detect the packet loss rate of the data packet within T seconds every T seconds during the first type of voice call, as the packet loss rate of the first type of voice call within T seconds, thereby obtaining multiple packet loss rates of the first type of voice call. Among them, T can be a preset value, such as 5, 10 or 15, and the embodiment of the present application is not limited to this.

[0055] In some embodiments, the packet loss rate of data packets within T seconds refers to the ratio of the number of data packets lost within T seconds to the number of data packets sent by the terminal within T seconds. For example, when T is 5, the terminal sends 500 data packets to the base station within 5 seconds, and the base station receives 485 data packets sent by the terminal within the above 5 seconds, and 15 data packets are lost. Therefore, the packet loss rate of data packets within the above 5 seconds is (15 / 500)*100%=3%.

[0056] 202. In response to the first type of voice call ending, the terminal determines multiple abnormal events based on multiple packet loss rates, where the abnormal event is that the packet loss rate is greater than a packet loss rate threshold.

[0057] In the embodiment of the present application, when the packet loss rate of the first type of voice call in T seconds is greater than the packet loss rate threshold, it can be considered that an abnormal event has occurred. After the first type of voice call ends, the terminal determines the number of packet loss rates greater than the packet loss rate threshold based on the obtained multiple packet loss rates. The number of packet loss rates greater than the packet loss rate threshold is the number of abnormal events. Among them, the packet loss rate threshold can be a preset percentage, such as 5%, 10% or 15%, which is not limited in the embodiment of the present application.

[0058] For example, when the terminal detects the packet loss rate every 5 seconds, the duration of the first type of voice call is 30 seconds, and the packet loss rate threshold is 10%, in response to the end of the first type of voice call, the terminal obtains 6 packet loss rates: 3%, 5%, 9%, 12%, 12%, and 15%. Among the above 6 packet loss rates, there are 3 packet loss rates greater than the packet loss rate threshold of 10%, so during this voice call, the terminal can determine 3 abnormal events.

[0059] 203. When the abnormal event meets the preset conditions, the terminal sets the type of the next established voice call to the second type of voice call. The preset conditions are that the number of occurrences of the abnormal event is greater than the preset threshold, or the duration of the abnormal event is greater than the preset duration. The second type of voice call is a voice call established through the long term evolution voice bearer VoLTE.

[0060] In an embodiment of the present application, when the number of occurrences of abnormal events is greater than a preset threshold, or the duration of the abnormal event during the voice call is greater than a preset duration, it indicates that the packet loss rate during the first type of voice call is large, and the call quality of the first type of voice call is poor. Among them, when there is an abnormality in the SA cell accessed by the terminal, such as when the signal strength of the SA cell is weak, or the signal noise power of the SA cell is high, the packet loss rate of the first type of voice call may be high. Therefore, in order to eliminate the impact of the abnormal SA cell on the voice call, the terminal sets the type of the next voice call to be established as the second type of voice call. Furthermore, in the process of establishing the next voice call, the terminal can access the cell providing the 4G network, and establish a voice call through VoLTE provided by the 4G network to avoid the impact of the abnormal SA cell on the voice call, thereby improving the call quality of the next voice call.

[0061] The embodiment of the present application provides a voice call control method. During the voice call, the packet loss rate of the voice call can directly affect the quality of the voice call. When the terminal establishes a first-class voice call through the VoNR provided by the 5G network, if the SA (independent networking that provides 5G network) cell accessed by the terminal has an abnormal situation, such as the signal strength of the SA cell is weak or the signal noise power is high, the packet loss rate of the voice call will be greatly increased, significantly reducing the quality of the voice call. Therefore, during the process of the terminal making the first-class voice call, the packet loss rate of the first-class voice call is detected every T seconds to obtain multiple packet loss rates. After the first-class voice call ends, the number of times the packet loss rate is greater than the packet loss rate threshold is counted, and when the number is large, the terminal sets the type of the next established voice call to the second-class voice call, that is, the voice call established through the VoLTE provided by the 4G network. Furthermore, during the next voice call establishment process, the terminal can access the cell providing the 4G network and establish a voice call through VoLTE. The influence of abnormal SA cells on voice calls is avoided, thereby reducing the packet loss rate and improving the call quality of voice calls.

[0062] Figure 3 is a flowchart of another voice call control method provided by an embodiment of the present application. The method is executed by the terminal, see Figure 3 , the method comprising:

[0063] 301. During a first type of voice call at a terminal, the terminal obtains a voice packet transmitted within T seconds. The first type of voice call is a voice call established through a new air interface voice bearer VoNR. The voice packet is an uplink voice packet or a downlink voice packet. The uplink voice packet is a voice packet sent by the terminal to the base station, and the downlink voice packet is a voice packet sent by the base station to the terminal. T is a positive number.

[0064] In the embodiment of the present application, according to the different ways in which the terminal establishes a voice call, the voice call established by the terminal can be divided into a first type of voice call and a second type of voice call. Among them, the first type of voice call refers to a voice call established by the terminal through the voice service VoNR (Voice over New Radio) provided by the 5G network when the terminal accesses the SA (Standalone, independent networking) cell providing the 5G network. The second type of voice call refers to a voice call established by the terminal through the voice service VoLTE (Voice over Long Term Evolution) provided by the 4G network when the terminal accesses the cell providing the 4G network. In the process of establishing a voice call, the base station to which the terminal is connected allocates a radio bearer for transmitting voice data to the terminal by sending an RRCReconfiguration message (a reconfiguration message) to the terminal. Furthermore, after successfully establishing the voice call, the terminal can encapsulate the collected voice data into a data packet, and transmit multiple data packets to the base station through the radio bearer, and the base station forwards the data packet to the other party of the voice call. The base station can also transmit the data packet sent by the other party to the base station to the terminal through the radio bearer, thereby realizing a voice call between the two communicating parties.

[0065] For example, Figure 4 The present invention provides a signaling flow chart for establishing a voice call through VoNR. Figure 4 As shown, first, the MS (Mobile Station) sends an INFORMAL_RESPONSE message to the BS (Base Station) to initiate a VoNR voice call and request to establish a voice call through VoNR. After receiving the above message, the BS sends a TRYING message to the MS, indicating that the request is being processed. Then, the BS sends an RRCReconfiguration message to the MS to allocate a radio bearer for transmitting voice data to the terminal. Then, the MS replies with an RRCConfiguration Complete message to the BS to indicate that the allocation of the radio bearer is complete. Then, when the communicating parties successfully establish a voice call, the BS sends an OK message to the MS. After receiving the OK message, the MS replies with an INFORMAL_RESPONSE message to the BS, indicating that the current MS has successfully established a voice call.

[0066] Figure 5 FIG. 1 is a schematic diagram of allocating radio bearers. Figure 5As shown in the figure, Physical Cell ID is the physical cell identifier of the SA cell providing the 5G network that the MS is connected to. NR Cell Global ID is the global cell identifier of the SA cell, which can uniquely identify a cell worldwide. drb-Identity 3 indicates that the identifier of the radio bearer allocated by the BS to the MS is 3.

[0067] In some embodiments, during a voice call, the MS encapsulates the voice data collected within 20 milliseconds into RTP (Real-time Transport Protocol) packets every 20 milliseconds, and sends the RTP packets to the BS via a wireless bearer. The BS can forward the voice packets sent to the BS by the other party to the communication to the MS. Figure 6 is a schematic diagram of a voice packet. Figure 6 As shown, the transmission direction of the PTP packet is from the network side to the terminal side, that is, the RTP packet is a downlink voice packet sent by the BS to the MS. Among them, each time the MS or BS sends an RTP data packet, the sequence number of the RTP data packet is increased by 1, and the timestamp of the RTP data packet is increased by 20ms.

[0068] Table 1 below shows the log data of the RTP packets received by the terminal during a voice call. The log data includes the reception time of the RTP packet, the sequence number of the RTP packet, and the timestamp of the RTP packet. It can be seen from Table 1 that during a voice call, the terminal receives an RTP packet approximately every 20ms. The timestamps of two consecutively received RTP packets differ by approximately 20ms.

[0069] Table 1

[0070]

[0071]

[0072] Since the data packet carries the user's voice data, the packet loss rate of the data packet can directly affect the call quality of the voice call. Therefore, in order to detect the call quality of the first type of voice call, the terminal can detect the packet loss rate of the data packet within T seconds every T seconds during the first type of voice call. Wherein, T can be a preset value, such as 5, 10 or 15, and the embodiment of the present application is not limited to this. Optionally, the packet loss rate of the data packet within T seconds refers to the ratio of the number of data packets lost within T seconds to the number of data packets sent by the terminal within T seconds. Therefore, the terminal obtains the uplink voice packet or the downlink voice packet transmitted within T seconds every T seconds. Wherein, the uplink voice packet refers to the voice packet sent by the terminal to the base station, and the downlink voice packet refers to the voice packet sent by the base station to the terminal. The terminal can determine the packet loss rate of the uplink voice packet or the packet loss rate of the downlink voice packet by obtaining the uplink voice packet or the downlink voice packet transmitted within T seconds. Both of the above packet loss rates can reflect the quality of the voice call.

[0073] 302. The terminal determines a packet loss rate of the first type of voice call within T seconds based on uplink voice packets or downlink voice packets transmitted within T seconds.

[0074] In the embodiment of the present application, the terminal determines the packet loss rate of the uplink voice packets or the packet loss rate of the downlink voice packets according to the number of uplink voice packets transmitted within T seconds or the number of downlink voice packets transmitted. The terminal uses the determined packet loss rate as the packet loss rate of the first type of voice call within T seconds.

[0075] For example, when T is 5, the terminal sends 500 data packets to the base station within 5 seconds, and the base station receives 485 data packets sent by the terminal within the above 5 seconds, and 15 uplink data packets are lost. Therefore, the packet loss rate of uplink data packets within 5 seconds is (15 / 500)*100%=3%. Alternatively, the base station sends 500 data packets to the terminal within the above 5 seconds, and the terminal receives 475 data packets sent by the base station within the above 5 seconds, and 25 downlink data packets are lost. Therefore, the packet loss rate of downlink data packets within 5 seconds is (25 / 500)*100%=5%. The terminal can use the larger packet loss rate, the smaller packet loss rate, or any one of the packet loss rates as the packet loss rate of the first category voice call within the above 5 seconds.

[0076] The following describes the process of the terminal detecting the packet loss rate of the uplink voice packets and the packet loss rate of the downlink voice packets.

[0077] In some embodiments, the voice packet is a PDCP (Packet Data Convergence Protocol) packet, and the PDCP packet is used to encapsulate voice data during a voice call. During a voice call at a terminal, if the terminal collects the user's voice data, the terminal encapsulates the voice data collected within 20ms into a PDCP packet every 20ms (milliseconds); if the terminal does not collect the user's voice data, that is, when the user does not speak, the terminal generates a PDCP packet that does not contain the user's voice data every 160ms. Then, the terminal transmits the generated PDCP packet to the base station through a wireless bearer. The terminal can determine the packet loss rate of the first type of voice call within T seconds by detecting the packet loss rate of the uplink PDCP packet within T seconds. In the case where the PDCP packet is an uplink PDCP packet, the terminal determines the number of uplink PDCP packets based on the sequence number of the uplink PDCP packet. Among them, the sequence number is used to identify the sending order of the PDCP packet, and the sequence number of the PDCP packet is increased by 1 each time the terminal sends a PDCP packet. The terminal obtains the number of the first PDCP packet from the base station. The first PDCP packet is a PDCP packet sent by the terminal that is actually received by the base station within T seconds. The terminal uses the difference between the number of uplink PDCP packets and the number of first PDCP packets as the number of PDCP packets lost within T seconds. The terminal determines the ratio of the number of PDCP packets lost within T seconds to the number of uplink PDCP packets as the packet loss rate of the first type of voice call within T seconds.

[0078] For example, when T is equal to 0.1, the terminal sends 5 uplink PDCP packets to the base station in sequence within 100ms (milliseconds), and the sequence numbers of these 5 uplink PDCP packets are: 1, 2, 3, 4, 5. When the sequence numbers of the uplink PDCP packets actually received by the base station within 100ms are 1, 3, 4, 5, the number of the first PDCP packets is 4, and the uplink PDCP packet with sequence number 2 is lost during the transmission process. Therefore, the terminal determines that the packet loss rate within 100ms is (1 / 5)*100%=20%.

[0079] The following Table 2 shows the packet loss data of the uplink PDCP packets detected by the terminal in the radio bearer identified as 3 during the first type of voice call. Among them, the types of radio bearers include DRB (Data Radio Bearer) and SRB (Signalling Radio Bearers). DRB is a radio bearer used to transmit data. SRB is a radio bearer used to transmit signaling. It can be seen from Table 2 that during the first type of voice call, a total of 19 uplink PDCP packets were lost, and 2191 bits of data were lost.

[0080] Table 2

[0081] Radio Bearer Identifier Radio bearer type Number of lost packets Packet loss bits / bytes 3 DRB 19 2191

[0082] In some embodiments, when the PDCP packet is a downlink PDCP packet, the terminal can obtain the number of downlink PDCP packets from the base station. The terminal determines the number of second PDCP packets based on the sequence number of the second PDCP packet. The second PDCP packet is a PDCP packet sent by the base station that is actually received by the terminal within T seconds. The terminal determines the difference between the number of downlink PDCP packets and the number of second PDCP packets as the number of PDCP packets lost within T seconds. The terminal determines the ratio of the number of PDCP packets lost within T seconds to the number of downlink PDCP packets as the packet loss rate of the first type of voice call within T seconds.

[0083] Table 3 below shows the number of downlink PDCP packet losses detected by the terminal in the radio bearer identified as 3 during the first type of voice call. It can be seen from Table 2 that a total of 242 downlink PDCP packets were lost during the first type of voice call. Since the terminal cannot determine the amount of data carried by the lost downlink PDCP packets, it is impossible to count the number of packet loss bits caused by the downlink PDCP packet loss.

[0084] Table 3

[0085] Radio Bearer Identifier Radio bearer type Number of lost packets 3 DRB 242

[0086] It should be noted that the above describes the process of detecting the packet loss rate of the uplink PDCP packet and the process of detecting the packet loss rate of the downlink PDCP packet respectively. In the embodiment of the present application, the terminal may also only calculate the packet loss rate of the uplink PDCP packet or the packet loss rate of the downlink PDCP packet. Accordingly, the terminal can only obtain any one of the uplink PDCP packets or the downlink PDCP packets transmitted within T seconds, and the embodiment of the present application does not limit this.

[0087] 303. In response to the first type of voice call ending, the terminal determines the number of occurrences of an abnormal event based on multiple packet loss rates, where the abnormal event is that the packet loss rate is greater than a packet loss rate threshold.

[0088] In the embodiment of the present application, when the packet loss rate of the first type of voice call in T seconds is greater than the packet loss rate threshold, it can be considered that an abnormal event has occurred. After the first type of voice call ends, the terminal counts the number of packet loss rates greater than the packet loss rate threshold based on the obtained multiple packet loss rates. It can be considered that the number of packet loss rates greater than the packet loss rate threshold is the number of times the abnormal event occurs during the first type of voice call. Among them, the packet loss rate threshold can be a preset percentage, such as 5%, 10% or 15%, and the embodiment of the present application does not limit this.

[0089] For example, when the terminal detects the packet loss rate every 5 seconds, the duration of the first type of voice call is 30 seconds, and the packet loss rate threshold is 10%, in response to the end of the first type of voice call, the terminal obtains 6 packet loss rates: 3%, 5%, 9%, 12%, 12%, and 15%. Among the above 6 packet loss rates, there are 3 packet loss rates greater than the packet loss rate threshold of 10%, so during this voice call, the number of abnormal events occurring is 3.

[0090] 304. The terminal determines the duration of the abnormal event based on the number of occurrences of the abnormal event, where the duration is the product of the number of occurrences of the abnormal event and T seconds.

[0091] In the embodiment of the present application, since the packet loss rate within T seconds is greater than the packet loss rate threshold, it is recorded as an abnormal event. Therefore, the time within the above T seconds can be considered as the occurrence time of the abnormal event, and T seconds is the duration of the abnormal event. After the terminal determines the number of occurrences of the abnormal event, the terminal uses the product of the number of occurrences of the abnormal event and T seconds as the duration of the abnormal event during the first type of voice call.

[0092] For example, when T is 5 and the number of occurrences of the abnormal event is 3, the duration of the abnormal event during the first type of voice call is 5 seconds*3=15 seconds.

[0093] 305. The terminal determines the occurrence ratio of abnormal events based on the call duration and duration of the first type of voice call, where the call duration is in seconds and the occurrence ratio is the ratio of the duration of the abnormal event to the call duration.

[0094] In an embodiment of the present application, the terminal obtains the call duration of the first type of voice call. The time interval from when the terminal successfully establishes the first type of voice call to when the first type of voice call ends is the call duration of the first type of voice call. The terminal determines the ratio between the duration of the abnormal event and the call duration as the occurrence ratio of the abnormal event during the first type of voice call.

[0095] Optionally, the terminal can determine the occurrence ratio of abnormal events by the following formula (1).

[0096]

[0097] Among them, A count is the number of occurrences of abnormal events. T is the time interval for the terminal to detect the packet loss rate. count *T is the duration of the abnormal event. L is the call duration. F is the occurrence ratio of the abnormal event.

[0098] For example, when the terminal detects the packet loss rate every 5 seconds, the duration of the first type of voice call is 30 seconds, and the duration of the abnormal event is 15 seconds, the occurrence ratio of the abnormal event is 50%.

[0099] 306. When the occurrence ratio of abnormal events is greater than the preset ratio, the abnormal events meet the preset conditions, and the terminal sets the type of the next established voice call to the second type of voice call. The preset conditions are that the number of occurrences of abnormal events is greater than the preset threshold, or the duration of the abnormal events is greater than the preset duration. The second type of voice call is a voice call established through the long-term evolution voice bearer VoLTE.

[0100] In the embodiment of the present application, the higher the occurrence ratio of abnormal events, the lower the call quality of the first type of voice call; the lower the occurrence ratio of abnormal events, the higher the call quality of the first type of voice call. Among them, when the occurrence ratio of abnormal events is high, it indicates that the packet loss rate of the first type of voice call is large. Since the terminal determines the packet loss rate of the first type of voice call by detecting the packet loss rate of the PDCP packet encapsulated with voice data. Therefore, if the packet loss rate of the first type of voice call is large, it will cause the user's voice data to be lost, and the voice data cannot be continuously transmitted to the other party of the call, thereby causing abnormal situations such as fuzzy sound, missing words, freezes and silence on both sides of the call, which seriously reduces the call quality.

[0101] When the terminal establishes a first-class voice call through the VoNR provided by the 5G network, if an abnormal situation occurs in the SA cell to which the terminal accesses, such as weak signal strength or high signal noise power in the SA cell, the packet loss rate of the voice call will increase significantly, significantly reducing the quality of the voice call, resulting in the user being unable to make a normal voice call. Therefore, when the proportion of abnormal events is greater than the preset proportion, indicating that the call quality of the first-class voice call is poor, the terminal sets the type of the next voice call to be established as the second-class voice call, that is, a voice call established through VoLTE provided by the 4G network. Furthermore, during the next voice call establishment process, the terminal can access the cell providing the 4G network and establish a voice call through VoLTE. The impact of abnormal SA cells on voice calls is avoided, thereby reducing the packet loss rate and improving the quality of voice calls.

[0102] In some embodiments, the terminal can set the type of the next established voice call to the second type of voice call by turning off VoNR. When VoNR is turned off, the terminal can establish the second type of voice call through VoLTE.

[0103] In some embodiments, the first type of voice call is a voice call established through VoNR provided by the 5G network, and the second type of voice call is a voice call established through VoLTE provided by the 4G network. The terminal can fall back from the 5G network to the 4G network by means of network fallback. In the case where the type of the next voice call established by the terminal is a second type of voice call, in response to the terminal triggering a voice call request in the 5G network, the terminal falls back the network accessed by the terminal from the 5G network to the 4G network by means of network fallback, that is, the terminal accesses the cell providing the 4G network. At this time, the terminal can establish a second type of voice call according to the VoLTE provided by the 4G network. Among them, the network fallback method includes EPSFB (Evolved Packet System Fallback) based on redirection and EPSFB based on switching. The embodiment of the present application does not limit the specific method of network fallback.

[0104] In some embodiments, after a period of time, the terminal turns VoNR back on. The terminal detects the duration of the target event. The target event is VoNR closure, that is, the type of voice call established by the terminal next time is a second-class voice call. When the duration of the target event is equal to the time threshold, the terminal turns on VoNR to set the type of the next voice call established to the first-class voice call. In response to the next voice call request triggered by the terminal, the terminal establishes a voice call through VoNR. Among them, the time threshold can be a preset duration, such as 1 hour, 2 hours or 3 hours, which is not limited in the embodiments of the present application.

[0105] In order to more clearly explain the process of the terminal controlling the type of voice call established by the terminal by detecting the packet loss rate of the PDCP packet, the following is combined with Figure 7 The flowchart of controlling voice calls shown in the figure illustrates the above process.

[0106] like Figure 7 As shown, in response to the terminal successfully establishing a first-class voice call through VoNR, during the process of the terminal making the first-class voice call, the terminal detects the packet loss rate of the PDCP packet within T seconds every T seconds. Among them, the packet loss rate of the PDCP packet within T seconds is greater than the packet loss rate threshold, which is recorded as an abnormal event. When the number of occurrences of abnormal events is greater than the preset threshold, or the proportion of occurrences of abnormal events is greater than the preset proportion, the terminal turns off VoNR. The terminal establishes a second-class voice call through VoLTE next time. When the number of occurrences of abnormal events is not greater than the preset threshold, and the proportion of occurrences of abnormal events is not greater than the preset proportion, the terminal keeps VoNR turned on. The terminal can also establish a first-class voice call through VoNR next time.

[0107] The following describes the process by which the terminal determines whether to disable VoNR by detecting the packet loss rate of PDCP packets. Figure 8 As shown, the terminal first determines whether a first-class voice call is currently being conducted. During the process of the terminal conducting the first-class voice call, the terminal detects the packet loss rate of the uplink PDCP packet or the packet loss rate of the downlink PDCP packet within T seconds every T seconds. When the packet loss rate is greater than the packet loss rate threshold, the terminal adds 1 to the number of occurrences of the abnormal event. In response to the end of the first-class voice call, the terminal counts the number of occurrences of the abnormal event. The terminal can also determine the proportion of occurrence of the abnormal event based on the ratio of the duration of the abnormal event to the call duration. When the number of occurrences of the abnormal event is greater than the preset threshold, or the proportion of occurrence of the abnormal event is greater than the preset proportion, the terminal turns off VoNR, otherwise, the terminal keeps VoNR turned on.

[0108] The embodiment of the present application provides a voice call control method. During the voice call, the packet loss rate of the voice call can directly affect the quality of the voice call. When the terminal establishes a first-class voice call through the VoNR provided by the 5G network, if the SA (independent networking that provides 5G network) cell accessed by the terminal has an abnormal situation, such as the signal strength of the SA cell is weak or the signal noise power is high, the packet loss rate of the voice call will be greatly increased, significantly reducing the quality of the voice call. Therefore, during the process of the terminal making the first-class voice call, the packet loss rate of the first-class voice call is detected every T seconds to obtain multiple packet loss rates. After the first-class voice call ends, the number of times the packet loss rate is greater than the packet loss rate threshold is counted, and when the number is large, the type of the voice call established by the terminal next time is set to the second-class voice call, that is, the voice call established through the VoLTE provided by the 4G network. Furthermore, during the next voice call, the terminal can access the cell providing the 4G network, avoiding the influence of the abnormal SA cell on the voice call, thereby reducing the packet loss rate and improving the quality of the voice call.

[0109] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.

[0110] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0111] Fig. 9 is a structural diagram of a voice call control device provided in an embodiment of the present application. Fig. 9 The device includes: a first detection module 901, a determination module 902 and a setting module 903.

[0112] The first detection module 901 is used to detect the packet loss rate of the first type of voice call within T seconds every T seconds during the process of the terminal performing the first type of voice call, and obtain multiple packet loss rates. The first type of voice call is a voice call established through the new air interface voice bearer VoNR, and T is a positive number;

[0113] A determination module 902, configured to determine, in response to the first type of voice call ending, a plurality of abnormal events based on a plurality of packet loss rates, wherein the abnormal event is a packet loss rate greater than a packet loss rate threshold;

[0114] The setting module 903 is used to set the type of the next voice call established by the terminal to a second-class voice call when the abnormal event meets the preset conditions. The preset conditions are that the number of occurrences of the abnormal event is greater than the preset threshold, or the duration of the abnormal event is greater than the preset duration. The second-class voice call is a voice call established through the long-term evolution voice bearer VoLTE.

[0115] In some embodiments, Fig.10 is a structural diagram of another voice call control device provided in an embodiment of the present application, see Fig.10 , the first detection module 901 includes:

[0116] The acquisition unit 9011 is used to acquire a voice packet transmitted within T seconds during the process of the terminal making a first type of voice call, where the voice packet is an uplink voice packet or a downlink voice packet, where the uplink voice packet is a voice packet sent by the terminal to the base station, and the downlink voice packet is a voice packet sent by the base station to the terminal;

[0117] The determining unit 9012 is used to determine the packet loss rate of the first type of voice call within T seconds based on the uplink voice packets or downlink voice packets transmitted within T seconds.

[0118] In some embodiments, the voice packet is a Packet Convergence Protocol (PDCP) packet, and the PDCP packet is used to encapsulate voice data during a voice call.

[0119] In some embodiments, the determination unit 9012 is used to determine the number of uplink PDCP packets based on the sequence number of the uplink PDCP packet when the PDCP packet is an uplink PDCP packet, and the sequence number is used to identify the sending order of the PDCP packets; obtain the number of first PDCP packets, and the first PDCP packet is the PDCP packet sent by the terminal that is actually received by the base station within T seconds; determine the number of PDCP packets lost within T seconds based on the number of uplink PDCP packets and the number of first PDCP packets, and the number of lost PDCP packets is the difference between the number of uplink PDCP packets and the number of first PDCP packets; determine the packet loss rate of the first type of voice call within T seconds based on the number of PDCP packets lost within T seconds and the number of uplink PDCP packets.

[0120] In some embodiments, the determination unit 9012 is used to obtain the number of downlink PDCP packets when the PDCP packets are downlink PDCP packets; determine the number of second PDCP packets based on the sequence number of the second PDCP packet, where the second PDCP packet is the PDCP packet sent by the base station and actually received by the terminal within T seconds; determine the number of PDCP packets lost within T seconds based on the number of downlink PDCP packets and the number of second PDCP packets, where the number of lost PDCP packets is the difference between the number of downlink PDCP packets and the number of second PDCP packets; determine the packet loss rate of the first type of voice call within T seconds based on the number of PDCP packets lost within T seconds and the number of downlink PDCP packets.

[0121] In some embodiments, module 903 is set to determine the duration of an abnormal event based on the number of occurrences of the abnormal event, where the duration is the product of the number of occurrences of the abnormal event and T seconds; determine the occurrence ratio of the abnormal event based on the call duration and duration of the first type of voice call, where the call duration is in seconds, and the occurrence ratio is the ratio of the duration of the abnormal event to the call duration; when the occurrence ratio of the abnormal event is greater than a preset ratio, the abnormal event meets the preset conditions, and the type of the voice call established by the terminal is set to a second type of voice call.

[0122] In some embodiments, the first type of voice call is a voice call established through VoNR provided by a 5G network, and the second type of voice call is a voice call established through VoLTE provided by a 4G network, and the apparatus further includes:

[0123] A network fallback module 904 is used for, when the type of the next voice call established by the terminal is the second type of voice call, in response to the terminal triggering a voice call request in the 5G network, falling back the network accessed by the terminal from the 5G network to the 4G network by means of network fallback, wherein the network fallback methods include redirection-based evolved packet system fallback EPSFB and switching-based EPSFB;

[0124] The voice call establishing module 905 is used to establish a second type of voice call based on VoLTE provided by the 4G network.

[0125] In some embodiments, the apparatus further comprises:

[0126] A second detection module 906, configured to detect the duration of a target event, where the target event is that the type of the voice call established by the terminal is a second type of voice call;

[0127] The setting module 903 is used to set the type of the next voice call established by the terminal as the first type of voice call when the duration is equal to the time threshold.

[0128] The embodiment of the present application provides a voice call control device, and during the voice call, the packet loss rate of the voice call can directly affect the quality of the voice call. In the case where the terminal establishes a first-class voice call through the VoNR provided by the 5G network, if the SA (independent networking that provides 5G network) cell accessed by the terminal has an abnormal situation, such as the signal strength of the SA cell is weak or the signal noise power is high, the packet loss rate of the voice call will be greatly increased, significantly reducing the quality of the voice call. Therefore, during the process of the terminal making the first-class voice call, the packet loss rate of the first-class voice call is detected every T seconds to obtain multiple packet loss rates. After the first-class voice call ends, the number of times the packet loss rate is greater than the packet loss rate threshold is counted, and when the number is large, the type of the voice call established by the terminal next time is set to the second-class voice call, that is, the voice call established through the VoLTE provided by the 4G network. Furthermore, during the next voice call, the terminal can access the cell providing the 4G network, avoiding the influence of the abnormal SA cell on the voice call, thereby reducing the packet loss rate and improving the quality of the voice call.

[0129] It should be noted that the voice call control device provided in the above embodiment, when implementing its functions, only uses the division of the above functional modules as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the terminal is divided into different functional modules to complete all or part of the functions described above. In addition, the voice call control device provided in the above embodiment and the voice call control method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0130] An embodiment of the present application provides a terminal, which includes a processor and a memory; the memory stores at least one program code, and the at least one program code is used to be executed by the processor to implement the voice call control method provided in the above-mentioned various method embodiments.

[0131] Fig.11 11 is a block diagram of a terminal provided in an embodiment of the present application. In some embodiments, the terminal 1100 is a terminal such as a smart phone, a tablet computer, a wearable device, etc. that can access a wireless local area network as a wireless station. The terminal 1100 in the present application includes at least one or more of the following components: a processor 1110, a memory 1120, and a transceiver 1130.

[0132] In some embodiments, the processor 1110 includes one or more processing cores. The processor 1110 uses various interfaces and lines to connect various parts of the entire terminal 1100, and executes various functions and processes data of the terminal 1100 by running or executing program codes stored in the memory 1120, and calling data stored in the memory 1120. In some embodiments, the processor 1110 is implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 1110 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), a neural network processor (NPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the NPU is used to implement artificial intelligence (AI) functions; and the modem is used to process wireless communications. It is understandable that the above-mentioned modem may not be integrated into the processor 1110, but may be implemented by a separate chip.

[0133] In some embodiments, the processor 1110 is used to control the working status of the transceiver 1130. Accordingly, the processor 1110 is a processor integrated with a wireless fidelity (Wireless Fidelity, Wi-Fi) chip. The Wi-Fi chip is a chip with dual Wi-Fi processing capabilities. For example, the Wi-Fi chip is a dual-band dual-concurrent (Dual Band DualConcurrent, DBDC) chip, or a dual-band synchronous (Dual Band Simultaneous, DBS) chip.

[0134] In some embodiments, the memory 1120 includes a random access memory (RAM), and in some embodiments, the memory 1120 includes a read-only memory (ROM). In some embodiments, the memory 1120 includes a non-transitory computer-readable storage medium. The memory 1120 can be used to store program codes. The memory 1120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc.; the data storage area may store data created according to the use of the terminal 1100 (such as audio data, a phone book), etc.

[0135] In some embodiments, the transceiver 1130 is a fiber optic transceiver. A fiber optic transceiver is an Ethernet transmission media conversion unit that interchanges short-distance twisted pair electrical signals with long-distance optical signals. The transceiver 1130 is used to convert the electrical signals of the terminal 1100 into optical signals and send them out, and can also convert the received optical signals into electrical signals and input them into the terminal 1100.

[0136] In some embodiments, the terminal 1100 also includes a display screen. The display screen is a display component for displaying a user interface. In some embodiments, the display screen is a display screen with a touch function, through which the user can use any suitable object such as a finger or a touch pen to perform touch operations on the display screen. In some embodiments, the display screen is generally arranged on the front panel of the terminal 1100. In some embodiments, the display screen is designed to be a full screen, a curved screen, a special-shaped screen, a double-sided screen or a folding screen. In some embodiments, the display screen is also designed to be a combination of a full screen and a curved screen, a combination of a special-shaped screen and a curved screen, etc., which is not limited in this embodiment.

[0137] In addition, those skilled in the art will appreciate that the structure of the terminal 1100 shown in the above drawings does not limit the terminal 1100, and the terminal 1100 includes more or fewer components than shown in the drawings, or combines certain components, or arranges components differently. For example, the terminal 1100 also includes components such as a microphone, a speaker, an input unit, a sensor, an audio circuit, a module, a power supply, and a Bluetooth module, which will not be described in detail here.

[0138] The present application also provides a computer-readable storage medium, which stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the voice call control method shown in the above embodiments.

[0139] The present application also provides a chip, which includes a programmable logic circuit and / or program instructions. When the chip runs on a terminal, it is used to implement the voice call control method shown in the above embodiments.

[0140] The present application also provides a computer program product, which stores at least one program code, and the at least one program code is used to be executed by a processor to implement the voice call control method shown in the above embodiments.

[0141] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0142] Those skilled in the art will appreciate that all or part of the steps in the voice call control method of the above embodiment can be completed by hardware, or by a program to instruct the relevant hardware to complete the steps. The program can be stored in a computer-readable storage medium, and the storage medium mentioned above can be a read-only memory, a disk or an optical disk, etc. The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A voice call control method, characterized in that: Applied to a terminal, the method comprises: During the process of the terminal making a first type of voice call, detecting a packet loss rate of the first type of voice call within the T seconds every T seconds to obtain multiple packet loss rates, where the first type of voice call is a voice call established through the new air interface voice bearer VoNR, and T is a positive number; In response to the first type of voice call ending, determining multiple abnormal events based on the multiple packet loss rates, the abnormal event being that the packet loss rate is greater than a packet loss rate threshold; When the abnormal event meets the preset conditions, the type of the next voice call established by the terminal is set to a second-class voice call, and the preset conditions are that the number of occurrences of the abnormal event is greater than a preset threshold, or the duration of the abnormal event is greater than a preset duration, and the second-class voice call is a voice call established through the Long Term Evolution Voice Bearer VoLTE.

2. The method according to claim 1, characterized in that During the process of the terminal making the first type of voice call, the packet loss rate of the first type of voice call within the T seconds is detected once every T seconds to obtain multiple packet loss rates, including: During the process of the terminal making the first type of voice call, obtaining a voice packet transmitted within the T seconds, the voice packet being an uplink voice packet or a downlink voice packet, the uplink voice packet being a voice packet sent by the terminal to the base station, and the downlink voice packet being a voice packet sent by the base station to the terminal; Based on the uplink voice packets or downlink voice packets transmitted within the T seconds, a packet loss rate of the first type of voice call within the T seconds is determined.

3. The method according to claim 2, characterized in that The voice packet is a Packet Convergence Protocol (PDCP) packet, and the PDCP packet is used to encapsulate voice data during a voice call.

4. The method according to claim 3, characterized in that The determining, based on the uplink voice packets or downlink voice packets transmitted within the T seconds, a packet loss rate of the first type of voice call within the T seconds includes: In a case where the PDCP packet is an uplink PDCP packet, determining the number of the uplink PDCP packets based on a sequence number of the uplink PDCP packet, wherein the sequence number is used to identify a sending order of the PDCP packets; Acquire the number of first PDCP packets, where the first PDCP packets are PDCP packets sent by the terminal and actually received by the base station within the T seconds; Determine, based on the number of uplink PDCP packets and the number of the first PDCP packets, the number of PDCP packets lost within T seconds, the number of lost PDCP packets being the difference between the number of uplink PDCP packets and the number of the first PDCP packets; Based on the number of PDCP packets lost within the T seconds and the number of uplink PDCP packets, a packet loss rate of the first type of voice call within the T seconds is determined.

5. The method according to claim 3, characterized in that: The method further comprises: In a case where the PDCP packet is a downlink PDCP packet, obtaining the number of the downlink PDCP packets; Determine, based on a sequence number of a second PDCP packet, a number of the second PDCP packets, where the second PDCP packets are PDCP packets sent by the base station and actually received by the terminal within the T seconds; Determine, based on the number of the downlink PDCP packets and the number of the second PDCP packets, the number of PDCP packets lost within T seconds, the number of the lost PDCP packets being the difference between the number of the downlink PDCP packets and the number of the second PDCP packets; Based on the number of PDCP packets lost within the T seconds and the number of downlink PDCP packets, a packet loss rate of the first type of voice call within the T seconds is determined.

6. The method according to claim 1, characterized in that When the abnormal event meets the preset condition, setting the type of the next voice call established by the terminal to the second type of voice call includes: Based on the number of occurrences of the abnormal event, determine the duration of the abnormal event, where the duration is the product of the number of occurrences of the abnormal event and T seconds; Determine the occurrence ratio of the abnormal event based on the call duration and the duration of the first type of voice call, where the call duration is in seconds and the occurrence ratio is the ratio of the duration of the abnormal event to the call duration; When the occurrence ratio of the abnormal event is greater than the preset ratio, the abnormal event meets the preset condition, and the type of the next voice call established by the terminal is set as the second type of voice call.

7. The method according to claim 1, characterized in that The first type of voice call is a voice call established through VoNR provided by a 5G network, and the second type of voice call is a voice call established through VoLTE provided by a 4G network. The method further includes: When the type of the next voice call established by the terminal is the second type of voice call, in response to the terminal triggering a voice call request in the 5G network, the network accessed by the terminal is fallen back from the 5G network to the 4G network by means of network fallback, and the network fallback method includes redirection-based evolved packet system fallback EPSFB and switching-based EPSFB; The second type of voice call is established based on VoLTE provided by the 4G network.

8. The method according to claim 1, characterized in that The method further comprises: Detecting the duration of a target event, where the target event is that the type of the voice call established by the terminal is the second type of voice call; When the duration is equal to the time threshold, the type of the next voice call established by the terminal is set to the first type of voice call.

9. A voice call control device, characterized in that: The device comprises: A first detection module is used to detect a packet loss rate of the first type of voice call within T seconds every T seconds during a first type of voice call at the terminal to obtain multiple packet loss rates, wherein the first type of voice call is a voice call established through a new air interface voice bearer VoNR, and T is a positive number; A determination module, configured to determine, in response to the termination of the first type of voice call, a plurality of abnormal events based on the plurality of packet loss rates, wherein the abnormal event is that the packet loss rate is greater than a packet loss rate threshold; A setting module is used to set the type of the next voice call established by the terminal to a second-class voice call when the abnormal event meets a preset condition, wherein the preset condition is that the number of occurrences of the abnormal event is greater than a preset threshold, or the duration of the abnormal event is greater than a preset duration, and the second-class voice call is a voice call established through a long-term evolution voice bearer VoLTE.

10. A terminal, characterized in that: The terminal includes a processor, a memory and a transceiver; the memory stores at least one program code, and the at least one program code is used to be executed by the processor to implement the voice call control method as described in any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: The storage medium stores at least one program code, and the at least one program code is used to be executed by a processor to implement the voice call control method as described in any one of claims 1 to 8.

12. A chip, characterized in that: The chip includes a programmable logic circuit and / or program instructions, and when the chip runs on the terminal, it is used to implement the voice call control method as described in any one of claims 1 to 8.

13. A computer program product, comprising a computer program, characterized in that The computer program product stores at least one program code, and the at least one program code is used to be executed by a processor to implement the voice call control method as claimed in any one of claims 1 to 8.