Call processing method and apparatus

By switching network standards when an error code is detected, the problem of call interruption was solved, and stable call continuity was achieved.

CN118741437BActive Publication Date: 2025-11-11HONOR DEVICE CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202310363697.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-31
Publication Date
2025-11-11
Estimated Expiration
2043-03-31

AI Technical Summary

Technical Problem

During a call, the call service is frequently interrupted due to error codes such as RTP timeout or 503 Service Unavailable, and existing technologies cannot effectively solve this problem.

Method used

When the first device detects an error code, it determines whether to switch network standards. If a switch is confirmed, the call is re-initiated on the second network standard, thus ensuring call continuity by downgrading the network standard.

Benefits of technology

This effectively avoids multiple call interruptions caused by error codes, improving call stability and continuity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118741437B_ABST
    Figure CN118741437B_ABST
Patent Text Reader

Abstract

This application provides a call processing method and apparatus. The method includes: a first device initiating a first call to a second device using a first network standard; the first device receiving a first error code at a first moment; the first device receiving a first operation at a second moment, the first operation being used to make a call to the second device; in response to the first operation, when the time interval between the first moment and the second moment is less than a preset time interval and the first error code meets the preset error code, the first device initiating a second call to the second device using a second network standard; the second network standard is different from the first network standard. Thus, when the first device detects a dropped call due to the first error code and receives the first operation, it can determine whether to switch network standards, and if it determines to switch network standards, it can re-initiate the call based on the new network standard, thereby solving the problem of multiple call service interruptions caused by error codes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminal technology, and in particular to a call processing method and apparatus. Background Technology

[0002] The rapid development of communication and internet technologies has led to the continuous emergence of new mobile communication services, with voice call services evolving from the second-generation mobile communication technology (2G) and 3G to 4G and 5G.

[0003] Typically, a call will be interrupted when the first device in the middle of a call detects an error code such as a Real-Time Transport Protocol (RTP) timeout or a 503 Server Unavailable error. Furthermore, if the first device attempts to re-initiate a call with the second device after a period of time, the same error code will cause the call to be interrupted again. Summary of the Invention

[0004] This application provides a call processing method and apparatus, enabling a first device to switch from a first network standard to a second network standard when initiating a second call, and to process call services based on the second network standard, thereby solving the problem of call services being interrupted multiple times due to error codes.

[0005] In a first aspect, embodiments of this application provide a call processing method, the method comprising: a first device initiating a first call to a second device using a first network standard; the first device receiving a first error code at a first moment; the first device receiving a first operation at a second moment, the second moment being later than the first moment; the first operation being used to make a phone call to the second device; in response to the first operation, when the time interval between the first moment and the second moment is less than a preset time interval and the first error code satisfies a preset error code, the first device initiating a second call to the second device using a second network standard; the second network standard is different from the first network standard. Thus, when the first device detects a dropped call due to the first error code and receives the first operation, it can determine whether to switch network standards, and when determining to switch network standards, re-initiate the call based on the new network standard, thereby solving the problem of multiple call service interruptions caused by error codes.

[0006] The preset error code can be the preset first whitelist described in the embodiments of this application.

[0007] In one possible implementation, the first network standard is of a higher priority than the second network standard. Thus, when a call anomaly occurs in the first network standard, the first device can initiate another call in a lower-level network, such as the second network standard, thus ensuring normal call quality by downgrading the network standard.

[0008] In one possible implementation, the first network standard is 5G and the second network standard is LTE; or, when the first network standard is LTE, the second network standard is WCDMA or GSM.

[0009] In one possible implementation, the first network standard belongs to the first call domain, and the second network standard belongs to the second call domain, which are different from each other. In this way, the first device can also ensure call quality by switching call domains.

[0010] The first call domain can be an IMS domain, and the second call domain can be a CS domain.

[0011] In one possible implementation, the first device presets a correspondence between error codes and corresponding time intervals. This correspondence includes the relationship between the first error code and the preset time interval. This allows the first device to match different time intervals based on different error codes, thereby improving the accuracy of determining whether to switch network standards.

[0012] In one possible implementation, the first error code includes one or more of the following: 503 server unavailable, which indicates that the service does not exist, or RTPtimeout, which indicates that the Real-Time Transport Protocol has timed out.

[0013] In one possible implementation, when the time interval between the first moment and the second moment is less than a preset time interval and the first error code meets the preset error code, the first device initiates a second call to the second device on the second network standard. This includes: when the time interval between the first moment and the second moment is less than the preset time interval, the first error code meets the preset error code, and a first condition is met, the first device initiates a second call to the second device on the second network standard. The first condition includes one or more of the following: the first public land mobile network (HPLMN) is a preset HPLMN value, or a preset switch is on, and the first HPLMN is the HPLMN corresponding to the first call or the second call. In this way, the first device can also determine whether to switch network standards when initiating a second call based on the specific situation of the first HPLMN and / or the on / off state of the preset switch, thereby improving the accuracy of determining whether to switch network standards.

[0014] In one possible implementation, the first device is provided with an NV configuration file, which includes one or more of the following: a preset error code, a preset HPLMN value, or a preset on or off state of a switch.

[0015] In one possible implementation, the method further includes: when the time interval between the first moment and the second moment is greater than or equal to a preset time interval, and / or the first error code does not conform to the preset error code, the first device initiates a second call to the second device on the first network standard. This can be understood as follows: when the first device does not meet the preset first whitelist, it can be understood that the call drop is not due to a network anomaly, and in this case, it is not necessary to restore the call by switching network standards.

[0016] In one possible implementation, the method further includes: when the time interval between the first moment and the second moment is greater than or equal to a preset time interval, the first error code does not conform to the preset error code, and the second condition is met, the first device initiates a second call to the second device on the second network standard; wherein the second condition includes one or more of the following: the first HPLMN is not a preset HPLMN value, or the preset switch is off.

[0017] The preset HPLMN value can be the preset second whitelist described in the embodiments of this application. When the first HPLMN does not meet the preset second whitelist, it can be understood that the operator indicated by the current first HPLMN does not support network standard switching, and the call cannot be restored by switching the network standard. When the preset switch is off, it can be understood that the terminal device does not support the call processing method provided in the embodiments of this application, and therefore it is also impossible to improve the dropped call by switching the network standard.

[0018] In one possible implementation, the first device includes a Radio Interface Layer (RIL) and a Modem. When the time interval between a first moment and a second moment is less than a preset time interval, the first device initiates a second call to a second device on a second network standard. This includes: when the RIL determines that the time interval between the first moment and the second moment is less than the preset time interval, the RIL sends a first instruction to the modem; the first instruction is used to set the network standard for initiating the call to the second device to the second network standard; in response to the first instruction, the modem returns a response message corresponding to the first instruction to the RIL, which indicates that the second network standard has been successfully set; the RIL sends a second instruction to the modem; the second instruction is used to initiate the second call to the second device. In this way, the first device can notify the modem to switch network standards via a first AT instruction and the corresponding response message.

[0019] Wherein, the first instruction can be the first AT instruction described in the embodiments of this application, and the response message corresponding to the first instruction can be the response message corresponding to the first AT instruction; the second instruction can be the second call instruction described in the embodiments of this application.

[0020] Secondly, embodiments of this application provide a call processing apparatus, the apparatus including a processing unit and a communication unit. The communication unit is configured to initiate a first call to a second device using a first network standard. The processing unit is configured to receive a first error code at a first moment. The processing unit is further configured to receive a first operation at a second moment, the second moment being later than the first moment, the first operation being used to make a phone call to the second device. In response to the first operation, when the processing unit determines that the time interval between the first moment and the second moment is less than a preset time interval and the first error code satisfies the preset error code, the communication unit is further configured to initiate a second call to the second device using a second network standard. The second network standard is different from the first network standard.

[0021] In one possible implementation, the first network standard has a higher priority than the second network standard.

[0022] In one possible implementation, the first network standard is 5G and the second network standard is LTE; or, when the first network standard is LTE, the second network standard is WCDMA or GSM.

[0023] In one possible implementation, the first network standard belongs to the first call domain, and the second network standard belongs to the second call domain. The first call domain and the second call domain are different.

[0024] In one possible implementation, the first device has a preset error code and a correspondence between the error code and the time interval corresponding to the error code. The correspondence includes the correspondence between the first error code and the preset time interval.

[0025] In one possible implementation, the first error code includes one or more of the following: 503 server unavailable, which indicates that the service does not exist, or RTPtimeout, which indicates that the Real-Time Transport Protocol has timed out.

[0026] In one possible implementation, when the processing unit determines that the time interval between the first moment and the second moment is less than a preset time interval, the first error code satisfies the preset error code, and the first condition is met, the communication unit is specifically used to initiate a second call to the second device on the second network standard; wherein, the first condition includes one or more of the following: the first public land mobile network (HPLMN) is a preset HPLMN value, or the preset switch is on, and the first HPLMN is the HPLMN corresponding to the first call or the second call.

[0027] In one possible implementation, the first device is provided with an NV configuration file, which includes one or more of the following: a preset error code, a preset HPLMN value, or a preset on or off state of a switch.

[0028] In one possible implementation, when the processing unit determines that the time interval between the first moment and the second moment is greater than or equal to a preset time interval, and / or the first error code does not conform to the preset error code, the communication unit is further configured to initiate a second call to the second device on the first network standard.

[0029] In one possible implementation, when the processing unit determines that the time interval between the first moment and the second moment is greater than or equal to a preset time interval, the first error code does not conform to the preset error code, and the second condition is met, the communication unit is further configured to initiate a second call to the second device on the second network standard; wherein the second condition includes one or more of the following: the first HPLMN is not a preset HPLMN value, or the preset switch is off.

[0030] In one possible implementation, the first device includes a wireless interface layer (RIL) and a modem. When the processing unit determines that the time interval between the first moment and the second moment is less than a preset time interval, the processing unit is specifically configured to send a first instruction to the modem. The first instruction is used to set the network standard for initiating a call to the second device to a second network standard. In response to the first instruction, the processing unit is also specifically configured to return a response message corresponding to the first instruction to the RIL, which indicates that the second network standard has been successfully set. The processing unit is also specifically configured to send a second instruction to the modem. The second instruction is used to initiate a second call to the second device.

[0031] Thirdly, embodiments of this application provide a terminal device, including a processor and a memory, wherein the memory is used to store code instructions; and the processor is used to run the code instructions, causing the terminal device to perform the method described in the first aspect or any implementation thereof.

[0032] Fourthly, embodiments of this application provide a computer-readable storage medium storing instructions that, when executed, cause a computer to perform the method described in the first aspect or any implementation thereof.

[0033] Fifthly, a computer program product comprising a computer program that, when run, causes a computer to perform the methods described in the first aspect or any implementation thereof.

[0034] It should be understood that the second to fifth aspects of this application correspond to the technical solutions of the first aspect of this application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation are similar, and will not be repeated here. Attached Figure Description

[0035] Figure 1 A scenario diagram provided for an embodiment of this application;

[0036] Figure 2 A schematic diagram of the hardware structure of a first device (or a second device) provided for an embodiment of this application;

[0037] Figure 3 A schematic diagram of the software architecture of a first device (or a second device) provided for embodiments of this application;

[0038] Figure 4 A flowchart illustrating a call processing method provided in an embodiment of this application;

[0039] Figure 5 A flowchart illustrating another call processing method provided for embodiments of this application;

[0040] Figure 6 A schematic diagram illustrating a process for a first device to obtain an error code, provided as an embodiment of this application;

[0041] Figure 7 A schematic diagram illustrating another process for a first device to obtain an error code, provided in an embodiment of this application;

[0042] Figure 8 This is a schematic diagram of the structure of a call processing device provided in an embodiment of this application;

[0043] Figure 9 This is a schematic diagram of the hardware structure of another terminal device provided in an embodiment of this application. Detailed Implementation

[0044] To facilitate a clear description of the technical solutions in the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish identical or similar items with essentially the same function and effect. For example, the first value and the second value are only used to distinguish different values ​​and do not limit their order. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and the terms "first" and "second" are not necessarily different.

[0045] It should be noted that, in this application, the terms "exemplary" or "for example" are used to indicate that something is being described as an example, illustration, or illustration. Any embodiment or design described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0046] In this application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, a and b, a and c, b and c, or a, b, and c, where a, b, and c can be single or multiple.

[0047] For example, Figure 1 This is a schematic diagram of a scenario provided for an embodiment of this application. For example... Figure 1 As shown, this scenario may include: user A who is using a first device and user B who is using a second device. User A and user B may be in a call state.

[0048] During a first call between the first and second devices, if the first device detects an error code such as 503 Server Unavailable or RTP Timeout, it can terminate the first call. Error codes such as 503 Server Unavailable or RTP Timeout indicate a network anomaly. Therefore, if the first device initiates a second call to the second device shortly afterward, it may also receive the same error code due to network issues, causing the second call to be interrupted as well.

[0049] In view of this, embodiments of this application provide a call processing method in which a first device can switch network standards and re-initiate the call based on the new network standard when it detects a dropped call caused by an error code such as 503 server unavailable or RTP timeout and receives a first operation to initiate a second call, thereby solving the problem of multiple interruptions of call services due to error codes.

[0050] It is understood that the aforementioned first device (or second device) can also be referred to as a terminal, user equipment (UE), mobile station (MS), mobile terminal (MT), etc. Terminal devices can be mobile phones, smart TVs, wearable devices, tablets, computers with wireless transceiver capabilities, virtual reality (VR) terminal devices, augmented reality (AR) terminal devices, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, and so on. The embodiments of this application do not limit the specific technology or device form used in the terminal devices.

[0051] Therefore, in order to better understand the embodiments of this application, the structure of the first device (or second device) of the embodiments of this application will be described below. For example, Figure 2 This is a schematic diagram of the hardware structure of a first device (or a second device) provided in an embodiment of this application.

[0052] Understandable Figure 2 The terminal device described in the corresponding embodiments can be either a first device or a second device, and this application does not limit this.

[0053] The terminal device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, an indicator 192, a camera 193, and a display screen 194, etc.

[0054] The processor 110 may include a modem 110A.

[0055] The sensor module 180 may include one or more of the following, such as: pressure sensor, gyroscope sensor, barometric pressure sensor, magnetic sensor, accelerometer, distance sensor, proximity sensor, fingerprint sensor, temperature sensor, touch sensor, ambient light sensor, or bone conduction sensor, etc.

[0056] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the terminal device. In other embodiments of this application, the terminal device may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0057] The processor 110 may include one or more processing units. These processing units may be independent devices or integrated within one or more processors. The processor 110 may also include memory for storing instructions and data.

[0058] USB port 130 is a USB standard compliant interface, which can be a Mini USB port, Micro USB port, USB Type-C port, etc. USB port 130 can be used to connect a charger to charge terminal devices, and can also be used for data transfer between terminal devices and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other devices, such as AR devices.

[0059] The charging management module 140 receives charging input from the charger. The charger can be a wireless charger or a wired charger. The power management module 141 connects the charging management module 140 to the processor 110.

[0060] The wireless communication function of the terminal device can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem 110A, and baseband processor.

[0061] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Antennas in terminal equipment can be used to cover one or more communication frequency bands. Different antennas can also be reused to improve antenna utilization.

[0062] The mobile communication module 150 can provide solutions for wireless communication applications including 2G / 3G / 4G / 5G on terminal devices. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to modem 110A for demodulation.

[0063] The wireless communication module 160 can provide solutions for wireless communication applications on terminal devices, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), etc.

[0064] Modem 110A may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to a baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to an application processor. The application processor outputs sound signals through an audio device (not limited to a speaker, receiver, etc.) or displays images or videos through a display screen 194. In some embodiments, modem 110A may be a standalone device. In other embodiments, modem 110A may be independent of processor 110 and housed within the same device as mobile communication module 150 or other functional modules.

[0065] The terminal device implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connecting the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering.

[0066] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. In some embodiments, the terminal device may include one or N display screens 194, where N is a positive integer greater than 1.

[0067] Terminal devices can achieve shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.

[0068] Camera 193 is used to capture still images or videos. In some embodiments, the terminal device may include one or N cameras 193, where N is a positive integer greater than 1.

[0069] The external storage interface 120 can be used to connect an external storage card, such as a Micro SD card, to expand the storage capacity of the terminal device. The external storage card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external storage card.

[0070] Internal memory 121 can be used to store executable program code, including instructions. Internal memory 121 may include a program storage area and a data storage area.

[0071] The terminal device can implement audio functions such as music playback and recording through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, and an application processor.

[0072] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The speaker 170A, also called a "loudspeaker," is used to convert audio electrical signals into sound signals. The terminal device can listen to music or hands-free calls through the speaker 170A. The receiver 170B, also called a "handpiece," is used to convert audio electrical signals into sound signals. When the terminal device answers a phone call or voice message, it can listen to the voice by bringing the receiver 170B close to the ear. The headphone jack 170D is used to connect wired headphones. The microphone 170C, also called a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. In this embodiment, the terminal device may have one microphone 170C.

[0073] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch-sensitive buttons. The terminal device can receive button input and generate key signal inputs related to user settings and function control of the terminal device. Indicator 192 can be an indicator light, used to indicate charging status, power level changes, messages, missed calls, notifications, etc.

[0074] In addition to the aforementioned components, the device also runs an operating system, such as iOS, Android, or Windows. Applications can be installed and run on this operating system.

[0075] The software system of terminal devices can adopt layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture, etc., which will not be elaborated here.

[0076] For example, Figure 3 This is a schematic diagram of the software architecture of a first device (or a second device) provided in an embodiment of this application.

[0077] like Figure 3 As shown, the layered architecture of the first device (or second device) divides the software into several layers, each with a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the Android system, from top to bottom, consists of: an application layer, an application framework layer, and system libraries. The first device may also include a modem, which can connect to a subscriber identity module (SIM) card or an embedded-SIM (ESIM).

[0078] The application layer can include a series of application packages. For example... Figure 3 As shown, the application package may include applications such as telephone, navigation, Bluetooth, and SMS. The telephone can be used to implement the first call or the second call described in the embodiments of this application.

[0079] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0080] The application framework layer may include a phone manager, which is used to send call requests initiated by the first device from the application layer to the application framework layer or system library.

[0081] In possible implementations, the application framework layer may also include one or more of the following: a window manager, a content provider, a resource manager, a view system, and a notification manager. Figure 3 (not shown in the image), etc., the modules in the above application framework layer are used to implement the scheduling and processing of various resources in the call service.

[0082] The system library may include a hardware abstraction layer (HAL), which may include a radio interface layer (RIL). The RIL is used to implement data processing and data transmission between the modem and the application framework layer.

[0083] Among possible implementations, the RIL may include a radio interfacelayer demon (RILD), etc. Figure 3 (Not shown in the image).

[0084] It is understandable that the modules in the software architecture of the first device may not be limited to... Figure 3 The description in the corresponding embodiments; the software architecture of the second device and Figure 3 The software architecture of the first device in the corresponding embodiment is similar, and the functions in the software architecture can be the same as those in the first device. Figure 3 The functions described in the corresponding embodiments are similar and will not be repeated here.

[0085] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be implemented independently or in combination with each other. The same or similar concepts or processes may not be described again in some embodiments.

[0086] Typically, 3GPP currently supports two ways to provide voice services: circuit-switched (CS) domain voice and packet-switched (PS) domain voice. PS domain voice can include Internet Protocol Multimedia Subsystem (IMS) domain voice.

[0087] The CS domain can enable calls under the Global System for Mobile Communications (GSM), the Code Division Multiple Access (CDMA), and the Wideband Code Division Multiple Access (WCDMA) network standards. The IMS domain can enable calls under the Voice Over Long-Term Evolution (VOLTE) network standard and the Voice Over New Radio (VONR) network standard in 5G networks.

[0088] It is understood that the network standards provided in the embodiments of this application are merely examples and do not constitute a limitation on the embodiments of this application.

[0089] For example, Figure 4 This is a flowchart illustrating a call processing method provided in an embodiment of this application. Figure 4 As shown, the call processing method may include the following steps:

[0090] S401, The first device initiates a first call to the second device on the first network standard.

[0091] The first call meets the first network standard. The first network standard may include one or more of the following: WCDMA, VONR (which can be understood as 5G), or VOLTE (or LTE), etc.

[0092] S402. When the first device obtains the first error code, the first call is dropped.

[0093] The first error code can include one or more of the following, such as: 503 server unavailable, or RTP timeout, etc.

[0094] When the first error code is 503 server unavailable, this 503 server unavailable error code can be an error code received by the first device from the network side. The specific process by which the first device receives a 503 server unavailable error code can be found in [link to documentation]. Figure 6 or Figure 7 Corresponding implementation examples.

[0095] When the first error code is RTP timeout, the RTP timeout can be an error code received by the first device from the network side. For example, normally the first device's modem can send the RTP packets generated by the first device to the network side, which then forwards them to the second device. However, if an error occurs during the network side's transmission of the RTP packets to the second device, causing the second device's modem to fail to receive the RTP packets within a first threshold, the second device can initiate an RTP timeout request to the network side, which will then return the RTP timeout to the first device. Furthermore, when the first device detects an RTP timeout, it can determine that the first call has been dropped.

[0096] S403, In response to the first operation, the first device determines whether to switch network standards.

[0097] When the first device determines to switch network standards, the first device may execute the steps shown in S404; or, when the first device determines not to switch network standards, the first device may execute the steps shown in S405.

[0098] For example, the first device may determine whether to switch network standards based on the following conditions.

[0099] In one implementation, the first device can determine to switch network modes when it detects that the time interval between the first moment and the second moment is less than a preset time interval.

[0100] The first moment refers to the time when the first call is dropped. For example, the first moment could be the time when the first device receives the first error code. It can be understood that the first call is dropped when the first device receives the first error code.

[0101] The second moment is the time when the first device detects the first operation, which is used to initiate a second call to the second device. For example, the first operation could be a user-triggered operation targeting the phone number corresponding to the second device, such as the first operation being an operation where the first device dials a number from the second device; or the first operation could be replaced by a voice command to initiate a call to the second device, or it could be replaced by an application such as... Voice requests initiated by applications, etc. The second moment is later than the first moment.

[0102] Specifically, in combination Figure 3 In a corresponding embodiment, the second moment can be the time when the first device detects that the user clicks the call button in the call interface. The second moment can also be the time when the RIL receives the first message. For example, when the phone application receives a notification that the user has triggered the first operation, the phone application can pass the first message from the application layer through the framework layer to the RIL. Then, the RIL can determine whether to switch network standards based on the second moment and the first moment. The first message may include the call request corresponding to the first operation.

[0103] It is understood that the specific implementation of the first device acquiring the second moment is not limited in the embodiments of this application.

[0104] The preset time interval can be a value such as 1 minute or 2 minutes. This preset time interval can be obtained by training based on historical time data of network recovery after an error code occurs. This application embodiment does not limit this.

[0105] In a possible implementation, the first device can also set a correspondence between error codes and the time intervals corresponding to those error codes. For example, this correspondence could include a relationship between the first error code and a preset time interval. For instance, when the error code is RTP timeout, the preset time threshold could be set to the duration of network recovery after an RTP timeout, such as 2 minutes; or, when the error code is 503 server unavailable, the preset time interval could be set to the duration of network recovery after a 503 server unavailable error, such as 1 minute. This allows the first device to match different time intervals based on different error codes, thereby improving the accuracy of determining whether to switch network standards. The preset time interval can be learned from specific scenarios encountered by multiple terminal devices during a call when they encounter error codes.

[0106] In another implementation, the first device can determine to switch network modes when it detects that the time interval between the first and second moments is less than a preset time interval and the first error code meets the preset first whitelist. The scenario where the time interval between the first and second moments is less than the preset time interval and the first error code meets the preset first whitelist is a more likely implementation.

[0107] The preset first whitelist (or preset error code) may include the reason value corresponding to the error code that requires switching the network standard when initiating a second call. For example, the preset first whitelist may include one or more of the following, such as the reason value corresponding to RTP timeout, or the reason value corresponding to 503 server unavailable, etc. Other reason values ​​may also be set in the preset first whitelist, which is not limited in this embodiment.

[0108] For example, the first device may store call logs over a period of time. These call logs may include the reason for the call being hung up and the time of the call being hung up. The reason for the call being hung up may be an error code corresponding to the call being hung up. The first device receives a first operation from the user. In response to the first operation, the first device determines whether the first error code meets the requirements of a preset first whitelist and whether the time interval between the first moment and the second moment is less than a preset time interval.

[0109] In another implementation, the first device may determine to switch network standards when it detects that the first error code meets the preset first whitelist, the time interval between the first time and the second time is less than the preset time interval, and the first home public land mobile network (HPLMN) meets the preset second whitelist.

[0110] The first device may include a first SIM card, which belongs to a first HPLMN. The first HPLMN is used for the first call.

[0111] A preset second whitelist (or preset HPLMN value) can be pre-set in the NV configuration file. This preset second whitelist can include HPLMN values ​​that allow network standard switching. The HPLMN can reflect the carrier used by the device during a call. For example, the preset second whitelist can include HPLMN values ​​for carriers that frequently experience dropped calls, thus restricting carrier access during calls. This HPLMN could include HPLMN values ​​for domestic carriers and / or HPLMN values ​​for foreign carriers.

[0112] In another implementation, the first device may determine to switch network standards when it detects that a first error code matches a preset first whitelist, the time interval between a first moment and a second moment is less than a preset time interval, and a preset switch is enabled. Alternatively, the first device may determine to switch network standards when it detects one or more of the following: a first error code matches a preset first whitelist, the time interval between the first moment and the second moment is less than a preset time interval, a first home public land mobile network (HPLMN) matches a preset second whitelist, and a preset switch is enabled.

[0113] The preset switch is used to indicate whether the first device supports the call processing method provided in this application embodiment. The on or off status of the preset switch can be preset in the NV configuration file.

[0114] It is understandable that when the time interval between the first moment and the second moment is less than the preset time interval, the first error code meets the preset first whitelist, and the first condition is met, the first device initiates a second call to the second device on the second network standard; wherein, the first condition includes one or more of the following: the first HPLMN belongs to the preset second whitelist, or the preset switch is turned on.

[0115] In one possible implementation, when the first device determines that the time interval between the first moment and the second moment is greater than or equal to a preset time interval, the first device determines not to switch network standards.

[0116] Specifically, if the time interval between the first moment and the second moment is greater than or equal to a preset time threshold, it can be assumed that the network currently in which the call is located has been restored, and in this case, it is not necessary to restore the call by switching network modes.

[0117] Alternatively, when the first device determines that the time interval between the first moment and the second moment is greater than or equal to a preset time interval, and / or when the first error code does not meet the preset first whitelist, the first device determines not to switch network standards.

[0118] When the first error code does not meet the preset first whitelist, it can be understood that the call drop is not due to network abnormality, and there is no need to restore the call by switching network standards.

[0119] Alternatively, the first device determines not to switch network standards when it determines that the following first preset condition is met. The first preset condition includes one or more of the following: when the time interval between the first time and the second time is greater than or equal to a preset time interval, the first error code does not meet the preset first whitelist, or the first HPLMN does not meet the preset second whitelist.

[0120] Alternatively, the first device determines not to switch network standards when it determines that the following second preset conditions are met. The second preset conditions include one or more of the following: when the time interval between the first time and the second time is greater than or equal to a preset time interval, the first error code does not meet the preset first whitelist, the first HPLMN does not meet the preset second whitelist, or the preset switch is off.

[0121] When the default switch is off, it means the current device does not support network standard switching, and the call cannot be resumed by switching network standards. For example, the default switch can be off when the first device is in an environment outside its home country.

[0122] It is understandable that when the time interval between the first moment and the second moment is greater than or equal to the preset time interval, the first error code does not conform to the preset first whitelist, and the second condition is met, the first device initiates a second call to the second device on the second network standard; wherein, the second condition includes one or more of the following: the first HPLMN does not belong to the preset second whitelist, or the preset switch is off.

[0123] Based on the conditions for switching network standards described in step S403, it can be understood that the preset first whitelist, the preset second whitelist, and the preset on / off status of the switch can be pre-written into the NV configuration file, which can be set in the modem of the first device. In one possible implementation, when the modem detects that the first device is powered on, the modem can send the NV configuration file to the RIL via a message, so that the RIL can determine whether to switch network standards subsequently. In this embodiment, the method and time of obtaining the NV configuration file are not specifically limited.

[0124] S404: The first device initiates a second call to the second device on the second network standard.

[0125] The first network standard differs from the second network standard. The second network standard may include one or more of the following: GSM, CDMA, WCDMA, VONR, or VOLTE, etc.

[0126] For example, when the first network standard is 5G, the second call can be LTE, GSM, CDMA, or WCDMA, etc.; when the first network standard is LTE, the second network standard can be GSM, CDMA, or WCDMA, etc. In the case that the first network standard and the second network standard are different, the specific form of the first network standard and the second network standard is not specifically limited in the embodiments of this application.

[0127] Understandably, the first network standard is of a higher priority than the second. For example, when a call anomaly occurs on a higher-standard network, the first device can initiate another call on a lower-standard network, thus ensuring normal communication by downgrading the network standard.

[0128] In possible implementations, the first network standard can belong to the first call domain, and the second network standard can belong to the second call domain. The first and second call domains can be different. For example, the first call domain can be IMS, and the second call domain can be CS; or, if the first call domain is VONR or VOLTE within the IMS domain, the second call domain can be CS. In this case, the first device can also ensure call quality by switching call domains.

[0129] S405. The first device initiates a second call to the second device on the first network standard.

[0130] If a second call is initiated without the first device switching network standards, the second call may be dropped.

[0131] Based on this, when the first device initiates a second call, the first device can determine whether to switch network standards based on the error code that caused the first device to drop the call and the interval between the first and second moments of the first device. By switching network standards, the number of times the same error code causes the second call to drop again during the second call can be reduced.

[0132] exist Figure 4 Based on the corresponding embodiments, in possible implementations, the RIL of the first device can implement the process of handling error codes received during the call.

[0133] For example, Figure 5 This is a flowchart illustrating another call processing method provided in this application embodiment. Figure 5 In the corresponding embodiment, the first device may include RIL and modem. Taking the first network standard as VONR, the second network standard as VOLTE, and the first error code as RTP timeout as an example, the method for handling the first error code during a call is illustrated.

[0134] Understandable Figure 5 The corresponding embodiments can also be applied to scenarios where the first network standard is LTE and the second network standard is GSM, CDMA or WCDMA, etc., where the level of the first network standard is higher than that of the second network standard. This application does not limit this.

[0135] When the first error code is 503 server unavailable, the method for handling the first error code during the call is similar to that described above, and will not be repeated here.

[0136] like Figure 5 As shown, the call processing method may include the following steps:

[0137] S501, the modem of the first device performs VONR IMS registration.

[0138] The first device can be a device that supports VoNR or VoLTE. The first device needs to register for VoNR IMS using parameters provided by the operator, so that users can use the VoNR service in the operator's IMS. For example, the modem of the first device has certain operator parameters pre-configured. After the first device inserts a SIM card from any operator and registers with that operator's network, the first device can use the operator's parameters in the modem to register for VoNR IMS.

[0139] S502, When the first device receives an operation to initiate a first call, the RIL of the first device sends a first call instruction to the modem.

[0140] The first call instruction is used to initiate a first call to the second device. For example, the first call instruction can be ATD from the AT (attention) instruction set. ATD can be understood as a dialing command, such as the first device making a call to the second device by using ATD + phone number.

[0141] S503, the modem of the first device sends a first request to the modem of the second device through the network side.

[0142] The first request is used to establish a first call with the second device on VONR, such as an invite request in the session initialization protocol (SIP).

[0143] S504, The modem of the first device establishes a call link with the modem of the second device through the network side.

[0144] Furthermore, the first device and the second device can conduct a first call based on a call link.

[0145] S505: When the modem of the first device detects the first error code, the first call is interrupted at the first moment.

[0146] For example, the modem of the first device can receive a message sent by the network side to indicate a first error code. The message to indicate the first error code may include an RTP timeout, and the modem of the first device can determine that the first call is interrupted upon receiving the first error code.

[0147] S506, The modem of the first device sends a message to the RIL to indicate that the call has been interrupted.

[0148] The message used to indicate a call interruption may include: the reason value for the call interruption (or the first error code), and the first moment.

[0149] For example, when the first call is interrupted, the modem of the first device can store the cause value of the call interruption and the time of the call interruption, and then send them to the RIL in the first device.

[0150] S507. When the first device receives the first operation, the RIL of the first device determines whether to switch the network standard.

[0151] The first operation can be referred to in the description of the steps shown in S403; the description of determining whether to switch network standards can be referred to in the description of the conditions for switching from the first network standard to the second network standard shown in S403, and will not be repeated here.

[0152] When the RIL of the first device determines that the network standard needs to be switched, the RIL of the first device may perform the steps shown in S508-S512; or, when the RIL of the first device determines that the network standard does not need to be switched, the RIL of the first device may perform the steps shown in S513.

[0153] S508, the RIL of the first device sends the first AT command to the modem.

[0154] The first AT command is used to set the network standard when initiating a second call to the second device to the second network standard. The second network standard can be VoLTE. The second network standard is different from the first network standard, so that the first device can resolve the situation of call interruption due to network abnormalities by switching the network standard.

[0155] In possible implementations, the second network standard can also be GSM, CDMA or WCDMA, and this application embodiment does not specifically limit this.

[0156] S509, The modem of the first device returns the response message corresponding to the first AT command to the RIL.

[0157] The response message corresponding to the first AT command is used to indicate that the network standard setting is successful, such as the second network standard setting being successful.

[0158] S510, the RIL of the first device sends a second call command to the modem.

[0159] The second call instruction is used to initiate a second call to the second device. The second call instruction can also be an ATD. The meaning of the ATD can be found in the steps shown in S502, and will not be repeated here.

[0160] S511, The modem of the first device sends a second request to the modem of the second device through the network side.

[0161] The second request is used to establish a second call with a second device on VoLTE, and the second request can also be an invite.

[0162] S512, the modem of the first device establishes a call link with the modem of the second device through the network side.

[0163] Furthermore, the first device and the second device can conduct a second call based on the call link.

[0164] S513, the RIL of the first device sends a third call command to the modem.

[0165] The third call command is used to establish a second call with the second device. Understandably, since the first device has not switched network standards, the third call command can be executed on VONR.

[0166] In a possible implementation, prior to S513, the RIL of the first device can also send a second AT command to the modem, and the modem returns a response message corresponding to the second AT command to the RIL of the first device. The second AT command is used to indicate that the network standard is set to the first network standard, and the corresponding response message indicates that the second network standard has been successfully set.

[0167] For example, when the first device RIL determines that there is no need to switch network standards and initiates a third call instruction, the modem of the first device can initiate a call request to the modem of the second device. Due to the influence of the first error code, the second call may be interrupted.

[0168] Based on this, the RIL of the first device can determine whether to switch network standards, and when it is determined that a network standard needs to be switched, it can send an instruction to the modem to switch network standards.

[0169] exist Figure 4 Based on the corresponding embodiments, in possible implementations, the process of the first device obtaining error code 503 server unavailable in S402 can be found in [reference needed]. Figure 6 as well as Figure 7 The corresponding implementation examples. Among them, Figure 6 This describes the process by which the first device receives a 503 server unavailable error during the establishment of a communication link with the second device. Figure 7 This describes the process by which the first device receives a 503 server unavailable error during a call with the second device.

[0170] In one implementation, Figure 6 This is a schematic diagram illustrating a process for a first device to obtain an error code, provided as an embodiment of this application. Figure 6 As shown, the process of the first device receiving error codes is as follows:

[0171] S601, The modem of the first device performs IMS registration.

[0172] S602, When the first device receives an operation to initiate a first call, the RIL of the first device sends a first call instruction to the modem.

[0173] The first call can satisfy Figure 4 Any of the first network standards described in the corresponding embodiments.

[0174] S603, The modem of the first device sends a first request to the modem of the second device through the network side.

[0175] For details, see S601-S603. Figure 5 The descriptions shown in S501-S503 of the corresponding embodiments will not be repeated here.

[0176] S604. During the process of establishing a call link between the modem of the first device and the modem of the second device through the network side, the first device receives a 503 server unavailable response from the network side.

[0177] When the first device detects a 503 server unavailable error, the first device can determine that the first call has been interrupted and, upon receiving the first operation, execute the steps shown in S403-S405.

[0178] In another implementation, Figure 7 This is a schematic diagram illustrating another process for a first device to obtain an error code, provided as an embodiment of this application. Figure 7 As shown, the process of the first device receiving error codes is as follows:

[0179] S701, the modem of the first device performs IMS registration.

[0180] S702, When the first device receives an operation to initiate a first call, the RIL of the first device sends a first call instruction to the modem.

[0181] S703, the modem of the first device sends a first request to the modem of the second device through the network side.

[0182] S704, The modem of the first device establishes a call link with the modem of the second device through the network side.

[0183] S705. During a call between the first device and the second device, the first device receives a 503 server unavailable error from the network side.

[0184] Furthermore, when the first device detects a 503 server unavailable error, the first device can determine that the first call has been interrupted and execute the steps shown in S403-S405 upon receiving the first operation.

[0185] It is understandable that the steps involved in the first device receiving a 503 server unavailable error are not limited to... Figure 6 as well as Figure 7 The corresponding implementation examples will not be described in detail here.

[0186] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with relevant laws, regulations and standards, and corresponding operation entry points are provided for users to choose to authorize or refuse.

[0187] The above combination Figures 4-7 The methods provided in the embodiments of this application have been described. The apparatus for performing the above methods provided in the embodiments of this application is described below.

[0188] like Figure 8 As shown, Figure 8 This is a schematic diagram of a call processing device provided in an embodiment of this application. The call processing device may be the first device in the embodiment of this application, or it may be a chip or chip system within the first device.

[0189] like Figure 8As shown, the call processing device 800 can be used in communication equipment, circuits, hardware components, or chips. The call processing device includes a processing unit 801 and a communication unit 802. The processing unit 801 supports the call processing device 800 in performing data processing steps, and the communication unit 802 supports the call processing device 800 in performing data transmission and data reception steps. The communication unit 802 can be an input or output interface, pin, or circuit, etc.

[0190] Specifically, this application provides a call processing device 800, which includes a processing unit 801 and a communication unit 802. The communication unit 802 is used to initiate a first call to a second device using a first network standard. The processing unit 801 is used to receive a first error code at a first moment. The processing unit 801 is also used to receive a first operation at a second moment, the first operation being used to make a phone call to the second device. In response to the first operation, when the processing unit 801 determines that the time interval between the first moment and the second moment is less than a preset time interval and the first error code satisfies the preset error code, the communication unit 802 is also used to initiate a second call to the second device using a second network standard. The second network standard is different from the first network standard.

[0191] In a possible embodiment, the call processing device 800 may further include a storage unit 803. The processing unit 801 and the storage unit 803 are connected via a line. The storage unit 803 may include one or more memories, which may be devices in one or more devices or circuits used for storing programs or data. The storage unit 803 may exist independently and be connected to the processing unit 801 of the call processing device via a communication line. Alternatively, the storage unit 803 may be integrated with the processing unit 801.

[0192] Storage unit 803 may store computer-executable instructions for the methods in the terminal device, so that processing unit 801 executes the methods in the above embodiments. Storage unit 803 may be a register, cache, or RAM, etc., and storage unit 803 may be integrated with processing unit 801. Storage unit 803 may be a read-only memory (ROM) or other types of static storage devices capable of storing static information and instructions, and storage unit 803 may be independent of processing unit 801.

[0193] Figure 9 This is a schematic diagram of the hardware structure of another terminal device provided in an embodiment of this application, such as... Figure 9 As shown, the terminal device includes a processor 901, a communication line 904, and at least one communication interface. Figure 9 (The example provided uses communication interface 903 as an example.)

[0194] The processor 901 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits used to control the execution of the program of the present application.

[0195] Communication line 904 may include circuitry for transmitting information between the aforementioned components.

[0196] Communication interface 903 uses any transceiver-like device for communicating with other devices or communication networks, such as Ethernet, wireless local area networks (WLAN), etc.

[0197] Possibly, the terminal device may also include a memory 902.

[0198] The memory 902 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto. The memory may exist independently and be connected to the processor via communication line 904. The memory may also be integrated with the processor.

[0199] The memory 902 stores computer execution instructions for implementing the scheme of this application, and its execution is controlled by the processor 901. The processor 901 executes the computer execution instructions stored in the memory 902 to implement the method provided in the embodiments of this application.

[0200] It is possible that the computer execution instructions in the embodiments of this application may also be referred to as application code, and the embodiments of this application do not specifically limit this.

[0201] In a specific implementation, as one example, the processor 901 may include one or more CPUs, for example... Figure 9 CPU0 and CPU1 in the CPU.

[0202] In a specific implementation, as one example, the terminal device may include multiple processors, for example... Figure 9 Processors 901 and 905 are mentioned. Each of these processors can be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. Here, "processor" can refer to one or more devices, circuits, and / or processing cores used to process data (such as computer program instructions).

[0203] A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the flow or function according to the embodiments of this application is generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or data center that integrates one or more available media. For example, available media may include magnetic media (e.g., floppy disks, hard disks, or magnetic tapes), optical media (e.g., digital versatile discs (DVDs)), or semiconductor media (e.g., solid-state disks (SSDs)).

[0204] This application also provides a computer-readable storage medium. The methods described in the above embodiments can be implemented, in whole or in part, by software, hardware, firmware, or any combination thereof. The computer-readable medium may include computer storage media and communication media, and may also include any medium capable of transferring a computer program from one place to another. The storage medium can be any target medium accessible by a computer.

[0205] As one possible design, computer-readable media may include compact disc read-only memory (CD-ROM), RAM, ROM, EEPROM, or other optical disc storage; computer-readable media may also include disk storage or other disk storage devices. Furthermore, any connecting cable may also be appropriately referred to as computer-readable media. For example, if software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave, then coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of media. As used herein, disks and optical discs include optical discs (CD), laser discs, optical discs, digital versatile discs (DVD), floppy disks, and Blu-ray discs, where disks typically reproduce data magnetically, while optical discs optically reproduce data using lasers.

[0206] The above combinations should also be included within the scope of computer-readable media. The above are merely specific embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A call processing method, characterized in that, The method includes: The first device initiates a first call to the second device using the first network standard; During the first call between the first device and the second device, the first device receives a first error code from the network side at a first moment, and the first call is dropped; the first error code includes one or more of the following: error code 503 server unavailable for indicating that the service does not exist, or error code RTP timeout for indicating that the Real-Time Transport Protocol timeout has occurred. The first device receives a first operation at a second time, the first operation being used to make a phone call to the second device; the second time is later than the first time. In response to the first operation, when the time interval between the first moment and the second moment is less than a preset time interval and the first error code satisfies the preset error code, the first device initiates a second call to the second device on the second network standard; the second network standard is different from the first network standard; When the time interval between the first time and the second time is greater than or equal to the preset time interval, and / or the first error code does not conform to the preset error code, the first device initiates the second call to the second device on the first network standard.

2. The method according to claim 1, characterized in that, The first network standard has a higher level than the second network standard.

3. The method according to claim 1 or 2, characterized in that, When the first network standard is 5G, the second network standard is LTE; or, when the first network standard is LTE, the second network standard is WCDMA or GSM.

4. The method according to claim 1 or 2, characterized in that, The first network standard belongs to the first call domain, and the second network standard belongs to the second call domain. The first call domain and the second call domain are different.

5. The method according to claim 1, characterized in that, The first device has a preset error code and a corresponding time interval, the corresponding relationship including the first error code and the preset time interval.

6. The method according to claim 1, characterized in that, When the time interval between the first time point and the second time point is less than a preset time interval and the first error code satisfies a preset error code, the first device initiates a second call to the second device on the second network standard, including: When the time interval between the first time and the second time is less than the preset time interval, the first error code satisfies the preset error code, and the first condition is met, the first device initiates the second call to the second device on the second network standard; wherein, the first condition includes one or more of the following: the first public land mobile network (HPLMN) is a preset HPLMN value, or the preset switch is turned on, and the first HPLMN is the HPLMN corresponding to the first call or the second call.

7. The method according to claim 1, characterized in that, The first device is equipped with an NV configuration file, which includes one or more of the following: the preset error code, the preset HPLMN value, or the on or off state of the preset switch.

8. The method according to claim 6, characterized in that, The method further includes: When the time interval between the first time and the second time is greater than or equal to the preset time interval, the first error code does not conform to the preset error code, and the second condition is met, the first device initiates the second call to the second device on the second network standard; wherein, the second condition includes one or more of the following: the first HPLMN is not the preset HPLMN value, or the preset switch is off.

9. The method according to claim 1, characterized in that, The first device includes a wireless interface layer (RIL) and a modem. When the time interval between the first time and the second time is less than a preset time interval, and the first error code satisfies a preset error code, the first device initiates a second call to the second device on the second network standard, including: When the RIL determines that the time interval between the first time and the second time is less than the preset time interval and the first error code satisfies the preset error code, the RIL sends a first instruction to the modem; the first instruction is used to set the network standard when initiating a call to the second device to the second network standard; In response to the first instruction, the modem returns a response message corresponding to the first instruction to the RIL. The response message corresponding to the first instruction is used to indicate that the second network standard has been successfully set. The RIL sends a second instruction to the modem; the second instruction is used to initiate the second call to the second device.

10. A terminal device, characterized in that, include: A processor coupled to a memory for storing a computer program, wherein when the processor invokes the computer program, the terminal device performs the method as described in any one of claims 1 to 9.

11. A computer-readable storage medium, characterized in that, Used to store a computer program, the computer program including instructions for implementing the method as described in any one of claims 1 to 9.

Citation Information

Patent Citations

  • Calling method, terminal and network side equipment

    CN113242583A

  • Call method, terminal equipment and storage medium

    CN113438612A

  • 5G network call optimization method and device, and computer readable storage medium

    CN115396949A