Call processing method, device, and storage medium

By determining whether the ringback tone process has been triggered in the VoLTE voice service, the calling terminal decides whether to reinitiate the call request, which solves the user's troubles when the user perceives abnormalities and improves the user experience.

WO2024216832A1PCT designated stage expired Publication Date: 2024-10-24HONOR DEVICE CO LTD

Patent Information

Application Number
PCT/CN2023/118858
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-19
Filing Date
2023-09-14
Publication Date
2024-10-24

AI Technical Summary

Technical Problem

In the VoLTE voice service scenario, when the called terminal cannot answer, the calling terminal's reinitiation of the call request may cause abnormal user perception and cause trouble to the user, especially when the calling terminal has already played the ringback tone.

Method used

By judging whether the ringback tone playback process has been triggered, the calling terminal decides whether to reinitiate the call request when receiving the error code. If it has been triggered, it will not initiate it again to avoid trying to call again when the user perceives an abnormality.

Benefits of technology

This effectively avoids re-initiating a call request when the calling terminal has already played the ringback tone, reduces the user's unnecessary perception anomalies and usage troubles, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023118858_24102024_PF_FP_ABST
    Figure CN2023118858_24102024_PF_FP_ABST
Patent Text Reader

Abstract

The present application provides a call processing method, a device, and a storage medium. The method is applied to a calling terminal which initiates a call request, and comprises: in the process of waiting to establish a media session with a called terminal, when receiving an error code sent by a network side, the calling terminal determining whether a ring-back tone playback process has been triggered; when determining that the ring-back tone playback process has not been triggered, re-initiating a call request to the called terminal; and when determining that the ring-back tone playback process has been triggered, not re-initiating a call request to the called terminal. In this way, call retrying is not performed immediately when receiving the error code sent by the network side, so as to prevent the calling terminal from still performing a call retry operation after performing a ring-back tone playback operation, thereby avoiding trouble caused to a user due to the calling terminal still performing call trying when the user perceives that this call is abnormal.
Need to check novelty before this filing date? Find Prior Art

Description

Call processing method, device and storage medium

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on April 19, 2023, with application number 202310421600.4 and invention name “Call Processing Method, Device and Storage Medium”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of communications, and in particular to a call processing method, device, and storage medium. Background Art

[0003] IMS (IP Multimedia Subsystem), a concept proposed by 3GPP, is a universal network architecture for delivering multimedia services over IP-based networks. It provides converged multimedia services and internet applications to users using different access methods. VoLTE (Voice-over-LTE) and VoNR (Voice over New Radio) are currently common voice services that utilize IP data transmission technologies, i.e., IMS-based voice services.

[0004] Taking the voice service scenario of VoLTE as an example, after the calling terminal (such as terminal A) initiates a call request to the called terminal (such as terminal B) in the IMS network (or IMS domain), terminal A is waiting to establish a media session (Media Session) with terminal B, but terminal B may not be able to respond for some reason. Based on the protocol standard, terminal B will send the corresponding error code to the IMS network, and the IMS network will also send the error code to terminal A. In this case, the media session between terminal A and terminal B will not be established, that is, the current call fails. Currently, in order to improve the voice call connection rate, after the above call failure occurs, terminal A will re-initiate a call request to terminal B.

[0005] However, in practice, when the calling terminal receives an error code and re-initiates a call request to the called terminal, it may have already received the ringback tone instruction and started playing the ringback tone. Since the calling user can already hear the ringback tone played by the calling terminal, such as "Sorry, your call is temporarily unavailable," re-initiating the call request at this point can cause user inconvenience.

[0006] Summary of the Invention

[0007] In order to solve the above technical problems, the present application provides a call processing method, device and storage medium, which aims to prevent the calling terminal from retrying the call after playing the ringback tone, so as to avoid the calling terminal still trying to call when the user has already perceived that the call is abnormal, causing trouble to the user.

[0008] In a first aspect, the present application provides a call processing method, applied to a calling terminal initiating a call request. The method comprises: when the calling terminal receives an error code sent by the network while waiting to establish a media session with the called terminal, determining whether a ringback tone playback process has been triggered; if it is determined that the ringback tone playback process has not been triggered, the calling terminal re-initiates a call request to the called terminal; if it is determined that the ringback tone playback process has been triggered, the calling terminal does not re-initiate a call request to the called terminal.

[0009] The calling terminal may be, for example, the terminal A mentioned below, and the called terminal may be, for example, the terminal B mentioned below.

[0010] The network side is, for example, the IMS network mentioned below.

[0011] It should be understood that in actual applications, any terminal can serve as both a calling terminal and a called terminal, depending on whether the current call service is initiated by it. That is, if the call service is initiated by it, the terminal device will serve as the calling terminal, otherwise it will be the called terminal.

[0012] Therefore, by setting the prerequisite for triggering a call retry, that is, determining whether the calling terminal has not currently triggered the ringback tone playing process, the call retry is triggered only when it is determined that the ringback tone playing process has not currently been triggered. If the ringback tone playing process has currently been triggered, the calling terminal will no longer re-initiate a call request to the called terminal, thereby avoiding the situation where the calling terminal has already played the ringback tone, that is, the user has already perceived that the call is abnormal, and the calling terminal still attempts to call, causing usage inconvenience to the user.

[0013] According to the first aspect, determining whether the ringback tone playing process has been triggered includes: determining whether the ringback tone playing process has been triggered according to a signaling message sent by the network side for indicating the ringback tone type.

[0014] Among them, the signaling message may be, for example, the 183 message, Update message, 180 message, etc. mentioned below.

[0015] It is understandable that this method of judging whether the ringback tone playing process has been triggered only based on the signaling message, for example, when the signaling message indicates that the network plays the sound, in the usage scenario where the user demand is the following method 1, directly when the signaling message indicates that the network plays the sound, it is determined that the ringback tone playing process is triggered.

[0016] According to the first aspect, or any implementation method of the above first aspect, the signaling message includes a first signaling message, which is the first signaling message indicating the type of ringback tone sent by the network side after the calling terminal initiates a call request, and the ringback tone type is used to instruct the calling terminal to play the tone locally or over the network; based on the signaling message for indicating the type of ringback tone sent by the network side, determining whether the process of playing the ringback tone has been triggered includes: when the first signaling message is received, determining that the process of playing the ringback tone has been triggered.

[0017] When the network side supports resource reservation, the first signaling message is, for example, the 183 message mentioned below; when the network side does not support resource reservation, the first signaling message is, for example, the Update message mentioned below.

[0018] The local sound playback, ie, the ringback tone to be played mentioned below, is pre-stored in the calling terminal.

[0019] The network playback, that is, the ringback tone to be played mentioned below, is sent to the calling terminal by the IMS network through the ringback tone RTP packet.

[0020] In this way, by setting it up that when the first signaling message is received, no matter the ringback tone type indicated by the first signaling information is network playback or local playback, it is directly considered that the ringback tone playback process has been triggered, which directly avoids the calling terminal from re-initiating a call request to the called terminal.

[0021] According to the first aspect, or any implementation method of the above first aspect, the signaling message includes a first signaling message, which is the first signaling message indicating the type of ringback tone sent by the network side after the calling terminal initiates a call request, and the ringback tone type is used to instruct the calling terminal to perform local playback or network playback; according to the signaling message for indicating the ringback tone type sent by the network side, it is determined whether the process of playing the ringback tone has been triggered, including: when the ringback tone type indicated by the first signaling message instructs the calling terminal to perform network playback, it is determined that the process of playing the ringback tone has been triggered.

[0022] When the network side supports resource reservation, the first signaling message is, for example, the 183 message mentioned below; when the network side does not support resource reservation, the first signaling message is, for example, the Update message mentioned below.

[0023] The local sound playback, ie, the ringback tone to be played mentioned below, is pre-stored in the calling terminal.

[0024] The network playback, that is, the ringback tone to be played mentioned below, is sent to the calling terminal by the IMS network through the ringback tone RTP packet.

[0025] Among them, when the first signaling message instructs the network to play the tone, the calling terminal is directly determined to trigger the ringback tone playing process according to the first signaling message. Please refer to the corresponding processing logic in the usage scenario where the user demand is method 1 below.

[0026] In addition, it is understandable that if the first signaling message is not received before the error code is actually received, it can be directly determined that the reference identifier indicating that the calling terminal triggers the process of playing the ringback tone is the first value, that is, the calling terminal has not currently triggered the process of playing the ringback tone, thereby enabling the calling terminal to trigger a call retry, as shown in the implementation scenario in Figure 17.

[0027] Therefore, when the calling terminal receives the error code sent by the network side, if it has already received the first signaling message, it can directly determine whether the calling terminal has currently triggered the ringback tone operation based on the ringback tone type indicated by the first signaling message, and then decide whether to re-initiate a call request to the called terminal based on the determination result, thereby avoiding the situation where the calling terminal has already played the ringback tone, that is, the user has already perceived that the call is abnormal, and the calling terminal still attempts to call, causing usage inconvenience to the user.

[0028] According to the first aspect, or any implementation method of the first aspect above, judging whether the ringback tone playback process has been triggered based on the signaling message sent by the network side for indicating the ringback tone type, also includes: when the ringback tone type indicated by the first signaling message indicates that the calling terminal performs local playback, determining that the ringback tone playback process has not been triggered.

[0029] According to the first aspect, or any implementation of the first aspect above, determining whether the ringback tone playback process has been triggered includes: determining whether the ringback tone playback process has been triggered based on a signaling message and RTP packet sent by the network side for indicating the ringback tone type; wherein the RTP packet is an audio packet corresponding to a ringback tone whose ringback tone type is network playback.

[0030] Among them, the signaling message may be, for example, the 183 message, Update message, 180 message, etc. mentioned below.

[0031] It is understandable that this method determines whether the ringback tone playback process has been triggered based on both the signaling message and the RTP packet. For example, when the signaling message instructs the network to play the sound, in the usage scenario of the following method 2, the ringback tone playback process is triggered only when the RTP packet is actually received.

[0032] According to the first aspect, or any implementation method of the first aspect above, the signaling message includes a first signaling message, which is the first signaling message indicating the type of ringback tone sent by the network side after the calling terminal initiates a call request, and the ringback tone type is used to instruct the calling terminal to perform local playback or network playback; based on the signaling message and RTP packet sent by the network side to indicate the ringback tone type, it is determined whether the process of playing the ringback tone has been triggered, including: when the ringback tone type indicated by the first signaling message instructs the calling terminal to perform network playback, detecting whether the RTP packet sent by the network side is received; when the RTP packet is received, it is determined that the process of playing the ringback tone has been triggered.

[0033] For the specific implementation of this aspect, please refer to the description of scenario 1.1a in the part shown in Figure 7 below, which will not be repeated here.

[0034] According to the first aspect, or any implementation method of the first aspect above, the signaling message also includes a second signaling message, and the second signaling message is the last signaling message indicating the ringback tone type sent by the network side; detecting whether the RTP packet sent by the network side is received includes: detecting whether the RTP packet sent by the network side is received before the second signaling message is received; wherein, when the RTP packet is received, determining that the ringback tone playback process has been triggered includes: when the RTP packet is received before the second signaling message is received, determining that the ringback tone playback process has been triggered.

[0035] For the specific implementation of this aspect, please refer to the description of scenario 1.1a in the part shown in Figure 7 below, which will not be repeated here.

[0036] According to the first aspect, or any implementation of the first aspect above, when the second signaling message is received but no RTP packet is received, the method further includes: determining that a ringback tone playing process has been triggered.

[0037] For the specific implementation of this aspect, please refer to the description of the 180 message instructing network announcement playback in scenario 1.1 below, in the usage scenario where the user requirement is mode 1.

[0038] According to the first aspect, or any implementation method of the above first aspect, when the second signaling message is received and the RTP packet is not received, the method also includes: when the ringback tone type indicated by the second signaling message indicates that the calling terminal performs local playback, determining that the ringback tone playback process has been triggered; when the ringback tone type indicated by the second signaling message indicates that the calling terminal performs network playback, starting a timer; detecting whether the RTP packet sent by the network side is received within the timer duration; when the RTP packet is received within the timer duration, determining that the ringback tone playback process has been triggered.

[0039] For the specific implementation of this aspect, please refer to the description of scenario 1.1b below.

[0040] According to the first aspect, or any implementation of the first aspect above, the method further includes: when no RTP packet is received within the timer duration, generating a local playback indication, instructing the calling terminal to perform local playback, and determining that the ringback tone playback process has been triggered.

[0041] For the specific implementation of this aspect, please refer to the description of scenario 1.1c below.

[0042] According to the first aspect, or any implementation of the first aspect above, the second signaling message is a 180 message.

[0043] According to the first aspect, or any implementation method of the above first aspect, the signaling message also includes a third signaling message, and the third signaling message is a signaling message received by the calling terminal between the first signaling message and the second signaling message for indicating the type of ringback tone; the second signaling message is the last signaling message indicating the type of ringback tone sent by the network side; after receiving the first signaling message, the method also includes: when the third signaling message is received, determining that the process of playing the ringback tone has been triggered.

[0044] The third signaling message is, for example, the Update message mentioned below.

[0045] In this way, by setting it to receive the third signaling message, no matter the ringback tone type indicated by the third signaling information is network playback or local playback, it is directly considered that the current ringback tone playback process has been triggered, which directly avoids the calling terminal from re-initiating a call request to the called terminal.

[0046] According to the first aspect, or any implementation method of the above first aspect, the signaling message also includes a third signaling message, which is a signaling message received by the calling terminal between the first signaling message and the second signaling message for indicating the type of ringback tone; the second signaling message is the last signaling message indicating the type of ringback tone sent by the network side; after receiving the first signaling message, the method also includes: when the third signaling message is received, and the ringback tone type indicated by the third signaling message indicates the calling terminal to perform local playback, determining that the ringback tone playback process is not currently triggered; when the third signaling message is received, and the ringback tone type indicated by the third signaling message indicates the calling terminal to perform network playback, detecting whether the RTP packet sent by the network side is received; when the RTP packet is received, determining that the ringback tone playback process has currently been triggered.

[0047] For the specific implementation of this aspect, please refer to the description of Figure 9 below. The user demand is the usage scenario of the following method 2.

[0048] According to the first aspect, or any implementation of the first aspect above, when the ringback tone type indicated by the first signaling message instructs the calling terminal to play the tone locally, or when the ringback tone type indicated by the third signaling message instructs the calling terminal to play the tone locally, the method further includes: detecting whether a second signaling message is received; when the second signaling message is received, determining that the ringback tone playback process has been triggered.

[0049] For the specific implementation of this aspect, please refer to the description of scenario 1.2 below.

[0050] According to the first aspect, or any implementation method of the above first aspect, when the ringback tone type indicated by the first signaling message instructs the calling terminal to perform local playback, or when the ringback tone type indicated by the third signaling message instructs the calling terminal to perform local playback, the method also includes: detecting whether a second signaling message is received; when the second signaling message is received and the ringback tone type indicated by the second signaling message instructs the calling terminal to perform local playback, determining that the ringback tone playback process has been triggered; when the second signaling message is received and the ringback tone type indicated by the second signaling message instructs the calling terminal to perform network playback, starting a timer; detecting whether an RTP packet sent by the network side is received within the timer duration; when the RTP packet is received within the timer duration, determining that the ringback tone playback process has been triggered.

[0051] For the specific implementation of this aspect, please refer to the description of scenario 1.2a and scenario 1.2b below.

[0052] According to the first aspect, or any implementation of the first aspect above, the method further includes: when no RTP packet is received within the timer duration, generating a local playback indication, instructing the calling terminal to perform local playback, and determining that the ringback tone playback process has been triggered.

[0053] For the specific implementation of this aspect, please refer to the description of scenario 1.2c below.

[0054] According to the first aspect, or any implementation of the first aspect above, the third signaling message is an Update message.

[0055] According to the first aspect, or any implementation of the first aspect above, the first signaling message is a 183 message or an Update message.

[0056] Among them, the specific implementation when the first signaling message is a 183 message can be found in the description of scenario 1 below; the specific implementation when the first signaling message is an Update message can be found in the description of scenario 2 below.

[0057] According to the first aspect, or any implementation of the first aspect above, the network side is an IMS network.

[0058] According to the first aspect, or any implementation of the first aspect above, the calling terminal re-initiates a call request to the called terminal, including: the calling terminal switches from the IMS network to the circuit exchange CS network, and re-initiates a call request to the called terminal on the CS network; or the calling terminal re-initiates a call request to the called terminal on the IMS network.

[0059] According to the first aspect, or any implementation of the first aspect above, the calling terminal switches from the IMS network to the circuit-switched CS network, and re-initiates a call request to the called terminal on the CS network, including: the calling terminal re-initiates a call request to the called terminal on the CS network through Extended Service Request signaling.

[0060] Regarding the implementation of the calling terminal re-initiating a call request to the called terminal in the CS network through the Extended Service Request signaling, please refer to the corresponding text part of Figure 14.

[0061] According to the first aspect, or any implementation of the first aspect above, the calling terminal re-initiates a call request to the called terminal in the IMS network, including: the calling terminal re-initiates a call request to the called terminal in the IMS network through INVITE signaling.

[0062] Regarding the implementation of the calling terminal re-initiating a call request to the called terminal in the IMS network through the INVITE signaling, please refer to the corresponding text part of Figure 13.

[0063] In a second aspect, the present application provides a terminal device. The terminal device includes: a memory and a processor, the memory and the processor being coupled; the memory storing program instructions, which, when executed by the processor, cause the terminal device to execute instructions of the method of the first aspect or any possible implementation of the first aspect.

[0064] The second aspect and any implementation of the second aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the second aspect and any implementation of the second aspect can be referred to the technical effects corresponding to the first aspect and any implementation of the first aspect, and will not be repeated here.

[0065] In a third aspect, the present application provides a computer-readable medium for storing a computer program, wherein the computer program includes instructions for executing the method in the first aspect or any possible implementation of the first aspect.

[0066] The third aspect and any implementation of the third aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the third aspect and any implementation of the third aspect can be referred to the technical effects corresponding to the first aspect and any implementation of the first aspect, and will not be repeated here.

[0067] In a fourth aspect, the present application provides a computer program comprising instructions for executing the method in the first aspect or any possible implementation of the first aspect.

[0068] The fourth aspect and any implementation of the fourth aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the fourth aspect and any implementation of the fourth aspect can be referred to the technical effects corresponding to the first aspect and any implementation of the first aspect, and will not be repeated here.

[0069] In a fifth aspect, the present application provides a chip system comprising a processor for calling and running a computer program from a memory, so that a terminal device equipped with the chip system executes the method in the first aspect or any possible implementation of the first aspect.

[0070] The fifth aspect and any implementation of the fifth aspect correspond to the first aspect and any implementation of the first aspect, respectively. The technical effects corresponding to the fifth aspect and any implementation of the fifth aspect can be referred to the technical effects corresponding to the first aspect and any implementation of the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] FIG1 is a schematic diagram illustrating a communication environment in which a terminal device implements a call service;

[0072] FIG2 is a schematic diagram illustrating an exemplary call processing process;

[0073] FIG3 is a schematic diagram illustrating another exemplary call processing process;

[0074] FIG4 is a schematic diagram illustrating another exemplary call processing process;

[0075] FIG5 is a schematic diagram showing an exemplary hardware structure of a terminal device;

[0076] FIG6 is a flow chart illustrating an exemplary call processing method according to an embodiment of the present application;

[0077] FIG7 is a schematic diagram illustrating an exemplary scenario of determining whether a process for playing a ringback tone has been triggered;

[0078] FIG8 is a schematic diagram showing another exemplary scenario of determining whether the process of playing a ringback tone has been triggered;

[0079] FIG9 is a schematic diagram showing another exemplary scenario of determining whether the process of playing a ringback tone has been triggered;

[0080] FIG10 is a schematic diagram showing another exemplary scenario of determining whether the process of playing a ringback tone has been triggered;

[0081] FIG11 is a flow chart illustrating another call processing method provided by an embodiment of the present application;

[0082] FIG12 is a schematic diagram showing an exemplary scenario in which a call retry is not performed when the ringback tone type is a network tone;

[0083] FIG13 is a schematic diagram showing an exemplary scenario of performing a PS retry when the ringback tone type is a network playback tone;

[0084] FIG14 is a schematic diagram showing an exemplary scenario of performing a CS retry when the ringback tone type is a network tone playback;

[0085] FIG15 is a schematic diagram showing an exemplary scenario in which a call retry is not performed when the ringback tone type is local playback;

[0086] FIG16 is a schematic diagram showing an exemplary scenario of a call retry when the ringback tone type is local playback;

[0087] FIG. 17 is a schematic diagram showing an exemplary scenario of performing a call retry when an error code is received before a message indicating the type of ringback tone is received. DETAILED DESCRIPTION

[0088] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0089] The term "and / or" in this article is merely a description of the association relationship between associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0090] In the description and claims of the embodiments of this application, the terms "first" and "second" are used to distinguish different objects, rather than to describe a specific order of objects. For example, the terms "first target object" and "second target object" are used to distinguish different objects, rather than to describe a specific order of objects.

[0091] In the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0092] In the description of the embodiments of this application, unless otherwise specified, "multiple" means two or more. For example, "multiple processing units" means two or more processing units; "multiple systems" means two or more systems.

[0093] Before describing the technical solutions provided by the various embodiments of the present application, the SIP signaling messages (SIP request messages and SIP responses) involved in the call service are first described.

[0094] The SIP request message involved in this case is:

[0095] INVITE: Indicates that the calling user initiates a session request, inviting other users to join a session. It can also be used to update the session after the call is established (in this case, the INVITE is also called a Re-invite).

[0096] ACK: The client confirms to the server that it has received the final response to the INVITE request.

[0097] Media Session: Indicates that a media session has been established.

[0098] BYE: Indicates terminating an established call.

[0099] Extended Service Request: Extended Service Request. Initiating the "Extened Service Request" SIP request message indicates that the call should be retried on the CS network, which is referred to as CS retry below.

[0100] CANCEL: Indicates that the request is canceled before the final response to the request is received. It has no effect on completed requests.

[0101] PRACK: Indicates a confirmation request message for a response message starting with "1".

[0102] Update: SIP signaling message that updates session parameters.

[0103] The SIP response messages involved in this case are:

[0104] 200 OK: 200 successful response.

[0105] The response information starting with "1" involved in this case:

[0106] 100 Trying: 100 try calls.

[0107] 183 Session Progress: 183 session progress indicates the progress of the current call. The ringback tone type can be indicated in the SIP request message.

[0108] 180 Ringing: 180 Ringing. After the called party receives the INVITE request message sent by the calling party, it responds, indicating that the calling party's phone has been connected and is waiting for the called party to answer. After receiving this SIP signaling message, the calling party can start playing the ringback tone.

[0109] In order to better understand the technical solutions provided by the embodiments of the present application, the following describes the communication environments to which the technical solutions provided by the embodiments of the present application are applicable.

[0110] First of all, it should be noted that the embodiments of the present application can be applied to the 4th generation (4G), 5th generation (5G) mobile communication network architecture, or future networks. For ease of description, the 4G network architecture is used as an example for description.

[0111] Referring to Figure 1 , terminals A and B, which want to establish a media session, need to access the wireless access network through the base stations of their respective cells. For example, terminal A accesses the wireless access network through base station A, and terminal B accesses the wireless access network through base station B.

[0112] Continuing with Figure 1, for example, when the calling party's terminal A calls the called party's terminal B, that is, when terminal A initiates a call request to terminal B, terminal A transmits the initiated call request to the calling party's IMS domain via the wireless access network it is connected to. The calling party's IMS domain processes the call request initiated by terminal A and forwards the processed call request to the called party's IMS domain. The called party's IMS domain processes the call request processed by the calling party's IMS domain and sends the call request to terminal B via base station B corresponding to terminal B in the wireless access network.

[0113] Continuing to refer to Figure 1, illustratively, in the process of establishing a media session, the response made by terminal B to the call request initiated by terminal A, or the instruction / command issued, will be transmitted to the called IMS domain through the wireless access network accessed by base station B, and then transmitted to the calling IMS domain via the called IMS domain, and then issued to the wireless access network accessed by base station A via the calling IMS domain, and finally issued to terminal A by the wireless access network accessed by base station A.

[0114] Thus, the interaction between the calling party and the called party in the call service is realized through the network architecture shown in FIG1 .

[0115] Regarding the above-mentioned IMS, namely IP Multimedia Subsystem (IP Multimedia Subsystem), it is a concept proposed by 3GPP. It is a general network architecture that provides multimedia services on IP-based networks. It can provide integrated multimedia services and Internet applications for users using different access methods. Among them, VoLTE and VoNR are currently common voice services that use IP data transmission technology, that is, IMS-based voice services. For the sake of convenience, the call service initiated by the calling party in each embodiment of the present application takes the voice service scenario of VoLTE as an example.

[0116] In addition, it can be seen from the above description that the IMS domain may include a calling IMS domain and a called IMS domain. Among them, the calling IMS domain and the called IMS domain may both include an IMS domain core network and an evolved packet core network (EPC). Among them, the IMS domain core network may include a serving-call session control function (S-CSCF), an interrogating-call session control function (I-CSCF), a proxy-call session control function (P-CSCF), a home subscriber server (HSS), a session border controller (SBC), and several dedicated servers, such as a multimedia telephony application server (MMTelAS).

[0117] Since the above network elements are corresponding network elements in the wireless communication network in the prior art, this embodiment does not describe in detail the interactions and services processed between the above network elements. For specific implementation details, please refer to the existing protocol documents.

[0118] From the above description of the media session establishment between Terminal A and Terminal B in the communication environment shown in Figure 1, we can see that during this process, the radio access network (base station A and base station B) and the IMS network (calling and called IMS domains) are primarily used to transmit requests, responses, and instructions. Ignoring the radio access network and IMS network, these two network-side objects, the call service processing flow between the calling and called parties can be shown in Figure 2.

[0119] 2 , illustratively, when terminal A needs to establish a media session with terminal B, terminal A, as the calling party, initiates an INVITE request to terminal B (the called party).

[0120] Accordingly, after receiving the INVITE request transmitted by Terminal A via the corresponding radio access network or IMS network, Terminal B will issue a 100 Trying response to Terminal A, i.e., a trial call. Specifically, if the trial call is successful, Terminal B will respond with a 180 Ringing response to Terminal A, i.e., the 180 Ringing response shown in Figure 2.

[0121] 2 , illustratively, if the call service continues to proceed normally, terminal B will make a 200 OK success response (the final response to the INVITE request) to terminal A. Accordingly, after receiving the 200 OK from terminal B, terminal A will make an ACK response to terminal B, informing terminal B that terminal A has received terminal B's final response to the INVITE request.

[0122] 2 , illustratively, after terminal A makes an ACK response to terminal B, a media session is successfully established between terminal A and terminal B. At this point, terminal A can talk with terminal B.

[0123] Continuing with Figure 2, for example, if Terminal B hangs up after a certain duration, Terminal B will initiate a BYE command to Terminal A to terminate the established call. Accordingly, upon receiving the BYE command, Terminal A ends the call with Terminal B and responds with a 200 OK message, informing Terminal B that it has received Terminal B's instruction to terminate the current session and has therefore terminated it.

[0124] It is understandable that the BYE instruction can also be initiated by terminal A to terminal B, that is, the calling user first performs the on-hook operation using terminal A. Correspondingly, the 200 OK response confirming the end of the current session is made by terminal B.

[0125] This completes a normal call service between terminals A and B. However, in practice, during the media session establishment process, some reasons may prevent the media session from being successfully established. In this case, the IMS network (the called IMS domain) sends the error code reported by terminal B to terminal A, as shown in Figure 3.

[0126] For example, the error codes mentioned above may be, for example, 400 (error request), 401 (unauthorized), 403 (forbidden), 404 (user does not exist), 408 (request timeout), 480 (no one answered the call temporarily), 486 (line busy), 504 (server timeout), 600 (all busy), etc., which are not listed here one by one, and this embodiment does not limit this.

[0127] According to existing protocol identifiers, if Terminal A receives an error code from the IMS network before receiving Terminal B's 200 OK response to the INVITE request (the first 200 OK shown in Figure 2), Terminal A and Terminal B cease interaction, and the call service fails. For example, if Terminal A receives an error code from the IMS network, such as 486 (Line Busy), the initial INVITE request initiated by Terminal A is canceled, and Terminal A and Terminal B will not be able to establish a media session.

[0128] In order to improve the voice call completion rate, in some implementations, terminal A can be set to automatically trigger a call retry after receiving an error code sent by the IMS network, that is, terminal A automatically initiates another call request to terminal B.

[0129] For example, in some implementations, the call request re-initiated by terminal A to terminal B can be performed within the current IMS network. That is, terminal A can simply re-initiate an INVITE request to terminal B. This call request re-initiated within the IMS network can also be referred to as a packet switched (PS) retry.

[0130] For example, in some other implementations, the call request re-initiated by terminal A to terminal B may also be a circuit switched (CS) retry. For a CS retry, terminal A needs to first switch from the IMS network to the CS network, and then terminal A initiates a CS retry to terminal B via the CS network, i.e., the "Extened Service Request" shown in FIG3 .

[0131] When Terminal A receives an error code from the IMS network, the call retry triggered by it is either a PS retry or a CS retry. This is determined by the network that actually supports the call service. Specifically, if the currently available network is an IMS network, the call retry triggered by Terminal A is a PS retry. Correspondingly, if the currently available network is a CS network and the called party has subscribed to VoLTE, the call retry triggered by Terminal A is a CS retry.

[0132] Therefore, after receiving the error code sent by the network side, the caller can automatically re-initiate a call request to the called party by triggering a PS retry or a CS retry without user intervention. However, in actual applications, Terminal A will play a ringback tone according to the progress of the current media session to remind the user of the current progress. Therefore, if Terminal A receives an error code (such as a CANCEL message) sent by the IMS network, it has already triggered the ringback tone playback process, as shown in Figure 4. At this time, Terminal A has already started playing the ringback tone, that is, the user can already hear the ringback tone played by Terminal A and know that there is an abnormality in this call. If Terminal A automatically triggers a CS retry or a PC retry in this case, it will cause trouble to the user.

[0133] In view of this, an embodiment of the present application provides a call processing method, which aims to prevent the calling terminal from retrying the call after playing the ringback tone, so as to avoid the calling terminal still attempting to call when the user has already perceived that the call is abnormal, causing usage troubles to the user.

[0134] In order to better understand the call processing method provided in the embodiment of the present application, the hardware structure of the terminal device to which the method is applicable is described below with reference to FIG5 .

[0135] Referring to FIG. 5 , there is shown a schematic diagram of the hardware structure of a terminal device 100 for exemplarily implementing the call processing method provided in an embodiment of the present application.

[0136] It should be noted that the terminal device may also be expressed as User Equipment (UE). Specifically in this embodiment, it refers to a user registered with the IMS network, and may include a mobile terminal, a fixed terminal, a SIP soft terminal, and the like.

[0137] SIP stands for Session Initiation Protocol. SIP is a multimedia communication protocol developed by the Internet Engineering Task Force (IETF). It is a text-based application layer control protocol used to create, modify, and release sessions between one or more participants.

[0138] It should be understood that the above description is merely an example listed for a better understanding of the technical solution of this embodiment, and is not intended to be the sole limitation on this embodiment.

[0139] For ease of description, this embodiment takes a mobile terminal, such as a mobile phone, as an example to illustrate the hardware structure of the terminal device 100.

[0140] 5 , illustratively, the terminal device 100 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, a battery 142, 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, an earphone interface 17047D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.

[0141] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in terminal device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.

[0142] It should be noted that, specifically in each embodiment of the present application, the INVITE request, 200 OK, CS retry request, PS retry request, PRACK confirmation request message 100 Trying, 183 response, Update signaling, RTP packet, etc. sent or received by the terminal device 100 are all implemented through antenna 1 or antenna 2.

[0143] 5 , illustratively, the mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the terminal device 100. The mobile communication module 150 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The wireless communication module 160 can provide solutions for wireless communications including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc., applied to the terminal device 100.

[0144] Exemplarily, in some implementations, the antenna 1 of the terminal device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the terminal device 100 can communicate with the network and other devices through wireless communication technology.

[0145] 5 , illustratively, the audio module 170 of the terminal device 100 includes a speaker 170A, a receiver 170B, a microphone 170C, an earphone jack 170D, and the like.

[0146] For example, the terminal device 100 can implement audio functions such as music playback, recording, and the call services described in the various embodiments of this application through the speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor in the audio module 170.

[0147] Specifically in this embodiment, the ringback tone is played through the audio module 170. Exemplarily, in some implementations, such as when a wired headset is connected through the headset interface 170D, or a Bluetooth headset is connected through Bluetooth, the ringback tone is played through the currently connected headset.

[0148] For example, in some other implementations, for example, when no headset (wired headset or Bluetooth headset) is connected, the ringback tone is played through the speaker 170A.

[0149] It should be understood that the above description is merely an example listed for a better understanding of the technical solution of this embodiment, and is not intended to be the sole limitation on this embodiment.

[0150] In addition, regarding the sensor module 180 in the terminal device 100, in some embodiments, it may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc., which are not listed one by one here and this application does not impose any restrictions on this.

[0151] In addition, it should be noted that, in some implementations, the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc.

[0152] It is understandable that, in a specific implementation, different processing units may be independent devices or integrated into one or more processors.

[0153] Furthermore, it should be noted that, in some implementations, the controller may be the nerve center and command center of the terminal device 100. In practical applications, the controller may generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution.

[0154] Furthermore, it should be noted that, in some implementations, processor 110 may also include a memory for storing instructions and data. In some implementations, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the instruction or data again, it can directly retrieve it from the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

[0155] In addition, it should be noted that, in some implementations, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.

[0156] Continuing with FIG5 , illustratively, the charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging implementations, the charging management module 140 may receive charging input from the wired charger via the USB interface 130. In some wireless charging implementations, the charging management module 140 may receive wireless charging input via a wireless charging coil of the terminal device 100. While the charging management module 140 is charging the battery 142, it may also power the terminal device via the power management module 141.

[0157] Continuing to refer to FIG5 , illustratively, the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In some other implementations, the power management module 141 can also be provided in the processor 110. In other implementations, the power management module 141 and the charging management module 140 can also be provided in the same device.

[0158] 5 , illustratively, the wireless communication function of the terminal device 100 may be implemented through antenna 1 , antenna 2 , mobile communication module 150 , wireless communication module 160 , a modem processor, and a baseband processor.

[0159] Furthermore, the terminal device 100 shown in FIG5 implements display functionality through a GPU, display screen 194, and an application processor. The GPU is a microprocessor for image processing that connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.

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

[0161] In addition, the terminal device 100 can realize the shooting function through the ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0162] The camera 193 is used to capture static images or videos. In some embodiments, the terminal device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0163] In addition, FIG5 shows that the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage. For example, files such as music and videos can be stored on the external memory card.

[0164] 5 shows that the internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes the instructions stored in the internal memory 121 to execute various functional applications and data processing of the terminal device 100.

[0165] Specifically in the technical solution provided in the embodiments of the present application, the local ringtone and related instructions for implementing the call processing method are pre-stored in the internal memory 121. The processor 110 executes the instructions stored in the internal memory 121, thereby enabling the terminal device 100 to execute the call processing method provided in each embodiment of the present application.

[0166] Continuing with FIG5 , illustratively, the buttons 190 include a power button, a volume button, and the like. The buttons 190 may be mechanical buttons or touch buttons. The terminal device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the terminal device 100.

[0167] Continuing to refer to Figure 5, illustratively, the motor 191 can generate a vibration prompt. The motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. The motor 191 can also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 194. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0168] 5 , illustratively, the indicator 192 may be an indicator light, which may be used to indicate the charging status, power level changes, messages, missed calls, notifications, and the like.

[0169] Continuing with Figure 5, illustratively, the SIM card interface 195 is used to connect a SIM card or a USIM card. The SIM card can be connected to and disconnected from the terminal device 100 by inserting or removing the SIM card interface 195. The terminal device 100 can support 1 or N (N is an integer greater than 1) SIM card interfaces 195. That is, multiple SIM cards or USIM cards can be inserted into the terminal. Specifically, in the technical solution provided in this embodiment, VoLTE is implemented based on a SIM card or a USIM card.

[0170] This concludes the introduction to the hardware structure of the terminal device 100. It should be understood that the terminal device 100 shown in FIG5 is merely an example. In a specific implementation, the terminal device 100 may have more or fewer components than shown in the figure, may combine two or more components, or may have a different component configuration. The various components shown in FIG5 may be implemented in hardware, including one or more signal processing and / or application-specific integrated circuits, software, or a combination of hardware and software.

[0171] Taking the terminal device with the hardware structure shown in FIG5 as an example, for the communication environment shown in FIG1 , the process of implementing the call processing method provided in this application by the terminal device is specifically described.

[0172] It should be noted that the implementation of call services requires processing based on the modem protocol stack. Therefore, when implementing the call processing methods provided in the various embodiments of this application, the policies and processing logic followed by the terminal devices can be set as control points in the modem protocol stack. In other words, in the call processing methods provided in the following embodiments, the operations performed by the calling terminal (such as terminal A) and the called terminal (such as terminal B) are all completed in the modem protocol stack.

[0173] Referring to FIG6 , the call processing method provided in the embodiment of the present application specifically includes:

[0174] S101: When a calling terminal receives an error code sent by a network side while waiting to establish a media session with a called terminal, it determines whether a ringback tone playing process has been triggered.

[0175] Specifically, in the call processing method provided in this embodiment, in order to avoid the situation where the calling terminal plays the ringback tone and triggers a call retry simultaneously, which would cause trouble to the user, the calling terminal, upon receiving an error code sent by the network (hereinafter referred to as a CANCEL message), can first determine whether the ringback tone playback process has been triggered, that is, whether the calling terminal has already played the ringback tone, before triggering a call retry.

[0176] Correspondingly, if the calling terminal determines that the ringback tone playing process is not currently triggered, the calling terminal can retry the call, that is, execute step S102. Otherwise, the calling terminal does not retry the call, that is, execute step S103.

[0177] The network side mentioned in step S101 is, for example, an IMS network. As can be seen from the above description of the communication environment shown in Figure 1, the IMS network may include a calling IMS domain and a called IMS domain. Regarding the sending of the CANCEL message, it is mainly when the called terminal is unable to answer the call, that is, when the media session is established, the called IMS domain sends it to the calling terminal according to the error code provided by the called terminal. Therefore, the CANCEL message sent by the network side mentioned above is specifically sent by the called IMS domain to the calling IMS domain, and then sent by the calling IMS domain to the calling terminal through the base station of the wireless access network accessed by the calling terminal (such as the base station A mentioned above).

[0178] The processing logic for determining whether the ringback tone playing process has been triggered may be determined, for example, based on the content carried in the signaling message sent by the network side and capable of instructing the calling terminal to play the ringback tone, the network transmission protocol packet, etc.

[0179] Illustratively, the signaling message sent by the network side that can instruct the calling terminal to play the ringback tone may be, for example, 183 Session Progress (hereinafter referred to as 183 message), Update message, 180 Ringing (hereinafter referred to as 180 message), etc.

[0180] For example, the content instructing the calling terminal to play the ringback tone carried in the signaling messages such as the 183 message, the Update message, and the 180 message is, for example, an Early Media Mechanism (P-Early-Media, PEM) header field.

[0181] It's important to note that a ringback tone (RBT) or callback tone (CBT) is the ringtone played on the calling terminal when the calling terminal dials the called terminal. The rules for playing ringback tones vary across different IMS domains. For example, in the fixed-line IMS domain (i.e., the IMS core network mentioned above), ringback tones are typically provided by the network. In the VoLTE domain (i.e., the evolved packet core network mentioned above), ringback tones are typically local to the calling terminal.

[0182] In other words, playing a ringback tone can be divided into playing a local ringback tone (local playback) and playing a network ringback tone (network playback). Based on this, when determining the type of ringback tone played by the calling terminal based on the PEM header field carried in the 183 message, Update message, and 180 message, the standards that can be followed are shown in Tables 1 and 2.

[0183] Table 1 183 message determines the ringback tone type

[0184] Table 2 Non-183 message confirmed ringback tone type table

[0185] As shown in Table 1, for the 183 message, when it carries a PEM header field and the PEM header field = Inactive, the indicated ringback tone type is local playback, that is, the audio file corresponding to the ringback tone is provided by the calling terminal itself.

[0186] Continuing to refer to Table 1, for the 183 message, if it does not carry a PEM header field; or carries a PEM header field but the PEM header field ≠ Inactive, the indicated ringback tone type is network playback, that is, the audio file corresponding to the ringback tone is provided by the network side.

[0187] For example, when playing audio over the network, the audio file provided by the network side, ie the aforementioned network transmission protocol packet, may be an RTP (Real-time Transport Protocol) packet.

[0188] As shown in Table 2, in scenarios where the network supports resource reservation, that is, where the 183 message can be used as a ringback tone indication, the Update message and the 180 message carry a PEM header field, and the previously determined ringback tone playback has not yet taken effect. For example, if the ringback tone determined by the 183 message has not yet started playing, when the PEM header field = Inactive, the indicated ringback tone type is local playback; when the PEM header field ≠ Inactive, the indicated ringback tone type is network playback.

[0189] Continuing with Table 2, if resource reservation is supported on the network side, when Update and 180 messages do not carry the PEM header, the previously determined ringback tone type is retained. If the 183 message indicates that the announcement is played over the network, the ringback tone type will remain as a network type. If the 183 message indicates that the announcement is played locally, the ringback tone type will remain as a local type.

[0190] Continuing with Table 2, in scenarios where resource reservation is not supported on the network side, that is, the 183 message cannot be used for ringback tone indication, the Update message and the 180 message carry a PEM header field. When the PEM header field = Inactive, the indicated ringback tone type is local playback; when the PEM header field ≠ Inactive, the indicated ringback tone type is network playback.

[0191] Continuing with Table 2, in a scenario where the network side does not support resource reservation, that is, the 183 message cannot be used for ringback tone indication, the Update message and the 180 message do not carry a PEM header field, and the indicated ringback tone type is network playback.

[0192] In addition, it should be noted that for scenarios where the ringback tone is played locally, the calling terminal needs to receive a 180 message and the 180 message also indicates local playback before actually starting to play the tone, i.e., triggering the ringback tone playback process. For scenarios where the ringback tone is played over the network, in one implementation, the ringback tone playback process can be triggered without relying on the 180 message. For example, if the RTP packet corresponding to the network playback has been received before the 180 message is received, the calling terminal will not pay attention to the ringback tone indication in the 180 message. In another implementation, if the calling terminal still has not received the RPT packet after receiving the 180 message, the calling terminal needs to pay attention to the ringback tone indication in the 180 message. The specific processing logic can be found in the description of the following scenarios.

[0193] In addition, it should be noted that when the ringback tone type is determined to be network playback, in one implementation, it can be directly determined that the calling terminal has triggered the play ringback tone process. In another implementation, it can be truly determined that the calling terminal has triggered the play ringback tone process after the calling terminal receives the RTP packet.

[0194] Based on this, the calling terminal can determine whether the ringback tone is played locally or over the network, and then determine whether the calling terminal currently triggers the ringback tone playback process based on the conditions followed by local and network playback.

[0195] S102: The calling terminal re-initiates a call request to the called terminal.

[0196] Specifically, after receiving the CANCEL message sent by the IMS network, if the calling terminal determines through the above judgment that the ringback tone playing process is not currently triggered, the calling terminal can re-initiate a call request to the called terminal, that is, trigger the call retry process.

[0197] It should be noted that the call retry mentioned in this embodiment can be, for example, the PS retry performed on the IMS network mentioned above (specifically, it can be implemented through "INVITE" signaling), or the CS retry performed on the CS network (specifically, it can be implemented through "Extened Service Request" signaling). The selection and specific implementation of PS retry and CS retry can be found above and will not be repeated here.

[0198] S103: The calling terminal does not re-initiate a call request to the called terminal.

[0199] Specifically, after receiving the CANCEL message sent by the IMS network, if the calling terminal determines through the above judgment that the ringback tone playing process has been triggered, the calling terminal will no longer re-initiate a call request to the called terminal.

[0200] It should be noted that in this embodiment, if the calling terminal has triggered the ringback tone process, it will not re-initiate a call request to the called terminal. Specifically, it means that the calling terminal will not automatically perform a PS retry or a CS retry. If the calling user triggers the on-hook operation and then dials the called number again, the calling terminal can continue to initiate a call request to the called terminal.

[0201] Therefore, by setting the prerequisite for triggering a call retry, that is, determining whether the calling terminal has not currently triggered the ringback tone playing process, the call retry is triggered only when it is determined that the ringback tone playing process has not currently been triggered. If the ringback tone playing process has currently been triggered, the calling terminal will no longer re-initiate a call request to the called terminal, thereby avoiding the situation where the calling terminal has already played the ringback tone, that is, the user has already perceived that the call is abnormal, and the calling terminal still attempts to call, causing usage inconvenience to the user.

[0202] In order to better understand the operation of the calling terminal determining whether the process of playing the ringback tone has been triggered, several specific scenarios are described below.

[0203] Before explaining the process of determining whether the ringback tone has been triggered, we first explain the specific objects within the calling terminal that perform this operation. As can be seen from the above description, call services are implemented within the modem protocol stack, specifically within the Session Initiation Protocol (SIP) module within the modem protocol stack. As will be appreciated, the SIP module within the modem protocol stack is located in the IMS protocol layer. The IMS protocol layer resides within the Non-Access Stratum (NAS) layer of the modem protocol stack.

[0204] Furthermore, as can be seen from the above description of the terminal device's hardware structure, the ringback tone is specifically played via the audio module. Therefore, in the following scenario description, the functional modules included in the calling terminal are primarily the audio module and SIP. Furthermore, since the operation to determine whether the ringback tone playback process has been triggered is primarily performed after the calling terminal receives an error code from the network (IMS network), the object interacting with the calling terminal shown in the accompanying figures is the IMS network; other objects involved in the call service, such as the base station and the called terminal, are not shown.

[0205] For the specific structure of the Modem protocol stack and the functions that each layer can implement, please refer to the standard document of the Modem protocol stack, which will not be repeated here.

[0206] Scenario 1: The network supports resource reservation (message 183 can be used as a ringback tone indication)

[0207] For example, in some implementations, when a calling terminal needs to conduct a call service with a called terminal, the SIP module in the calling terminal will initiate an INVITE request. After the INVITE request is transmitted to the IMS network, the IMS network will forward it to the called terminal to be called, as shown in Figures 7 and 8.

[0208] Continuing to refer to FIG. 7 and FIG. 8 , illustratively, the IMS network will also feed back the 100 Trying signal generated by the called terminal in response to the INVITE request to the calling terminal.

[0209] Continuing to refer to Figures 7 and 8, for example, after the calling terminal initiates an INVITE request, while the calling terminal waits to establish a media session with the called terminal, the IMS network will feedback the session progress response of this call service to the SIM module of the calling terminal based on the actual call service progress, and make a ringback tone indication. For scenarios where the network side supports resource reservation, the IMS network will generate a 183 message that can indicate a ringback tone based on the status information identifying the current session progress fed back by the called terminal, such as an error code or response information, and send the 183 message to the calling terminal to inform the calling terminal of the current progress and the ringback tone indication. In this way, the calling terminal will make corresponding feedback based on the 183 message. For example, the corresponding ringback tone is played to let the user know the current session progress, thereby improving the user experience.

[0210] From the above description of the signaling message and RTP packet that determine whether the calling terminal plays the ringback tone, it can be seen that the 183 message can be used to indicate the type of ringback tone. Therefore, after the SIP module of the calling terminal receives the 183 message sent by the IMS network, it can perform the above-mentioned operation of determining whether the ringback tone playback process has been triggered.

[0211] In addition, as can be seen from the above description, the ringback tone indicated by the 183 message can be divided into network playback and local playback. The following describes the scenarios of these two types of ringback tones in detail.

[0212] Scenario 1.1: Message 183 instructs the network to play a ring tone. Between messages 183 and 180, the calling terminal does not receive any other signaling messages instructing the ringback tone.

[0213] For example, the 183 message sent in the IMS network does not carry a PEM header field; or as shown in FIG7 "183 Session Progress (PEM, non-Inactive)", that is, carries a PEM header field, and the PEM header field ≠ Inactive, based on the standards shown in Table 1 above, it can be seen that in the scenario shown in FIG7, the SIP module determines that the ringback tone type determined by the 183 message is network playback.

[0214] For example, when the ringback tone type is network playback, in one implementation, the calling terminal may directly determine that the ringback tone playback process has been triggered without considering whether the RTP packet sent by the IMS network has been received (hereinafter referred to as: Mode 1).

[0215] For example, in another implementation method, after the 183 message indicates network playback (without carrying a PEM header field, or carrying a non-Inactive PEM header field), the calling terminal needs to further detect the RTP packet corresponding to the network ringback tone. When the RTP packet is received, it is determined that the ringback tone playback process has been triggered (this method will be referred to as: Method 2 later).

[0216] In practical applications, in order to facilitate the calling terminal to determine whether to trigger a call retry, a reference identifier can be introduced. By setting different values ​​for the reference identifier, it is possible to identify whether the calling terminal has currently triggered the ringback tone playing process.

[0217] For example, when the reference identifier is set to a first value (such as 1 or true), it indicates that the calling terminal has not yet triggered the ringback tone play process. When the reference identifier is set to a second value (such as 0 or false), it indicates that the calling terminal has currently triggered the ringback tone play process.

[0218] That is, when the calling terminal receives the error code sent by the IMS network, it first reads the value corresponding to the reference identifier. If the reference identifier is the first value, a call retry is triggered. Correspondingly, if the reference identifier is the second value, a call retry is not triggered.

[0219] Furthermore, it should be noted that the initial value of the reference identifier can be set to the aforementioned first value as needed. That is, before receiving any signaling message or RTP packet indicating the type of ringback tone, the reference identifier defaults to the first value. At this point, if an error code is received from the IMS network, the calling terminal can directly trigger a call retry.

[0220] Based on this, in the usage scenario where the user requirement is the above-mentioned method 1, when the SIP module determines that the ringback tone type is network playback according to the 183 message, the SIP module can directly update the reference identifier to the second value.

[0221] For example, in another implementation, for example, in the scenario where the user requirement is the above-mentioned method 2, when the SIP module determines that the ringback tone type is network playback based on the 183 message and has not yet received the RTP packet, the value of the reference identifier is not updated, that is, the reference identifier continues to maintain the first value; when the SIP module receives the RTP packet, the reference identifier is updated from the first value to the second value.

[0222] It should be understood that the above description is merely an example listed for a better understanding of the technical solution of this embodiment, and is not intended to be the sole limitation on this embodiment.

[0223] Furthermore, it should be noted that in the Mode 2 scenario, the calling terminal will only determine that the ringback tone process has been triggered and update the reference identifier from the first value to the second value after receiving the RTP packet. Therefore, it is possible that the calling terminal may not have received the RTP packet by the time it receives the 180 message, meaning that it has not yet played the tone. Therefore, for Mode 2, the 180 message can be further combined to determine whether the ringback tone process has been triggered.

[0224] Continuing to refer to FIG. 7 , for example, in scenario 1.1, the usage scenarios of mode 2 can be divided into three specific implementation scenarios: 1.1a, 1.1b, and 1.1c.

[0225] Scenario 1.1a:

[0226] For example, after the calling terminal determines that the ringback tone type is network playback based on the 183 message, if it receives the RTP packet before receiving the 180 message, that is, the reference identifier has been updated from the first value to the second value, and the calling terminal has already played the ringback tone, then the calling terminal does not need to pay attention to the 180 message. In this case, the calling terminal can directly determine that the ringback tone playback process has been triggered and no longer needs to consider the ringback tone indication issued by the 180 message to determine whether the ringback tone playback process is triggered.

[0227] Scenario 1.1b:

[0228] For example, after the calling terminal determines that the ringback tone type is network playback according to the 183 message, if the calling terminal has not received the RTP packet corresponding to the network ringback tone when receiving the 180 message, that is, the calling terminal has not played the ringback tone, in scenario 1.1b, the calling terminal can determine whether the ringback tone type has changed according to the content of the 180 message, and then determine whether the ringback tone playback process has been triggered according to the ringback tone type indicated by the 180 message.

[0229] For example, when the 180 message does not carry a PEM header field; or as shown in "180 Ringing (PEM, non-Inactive)" in Figure 7, that is, it carries a PEM header field and the PEM header field ≠ Inactive, based on the network side supporting resource reservation shown in Table 2 above, the standard corresponding to the 180 message shows that in scenario 1.1b, the ringback tone type determined by the SIP model based on the 180 message is network playback.

[0230] For example, the signaling message before the 180 message, such as the 183 message, or other signaling messages that can indicate the ringback tone, such as the Update message, all indicate that the ringback tone type is network playback. When the 180 message is received, the calling terminal does not perform network playback, that is, in the scenario where the RTP packet is received, when the 180 message indicates network playback, and the user needs to use the scenario of the above-mentioned method 1, the reference identifier can be directly updated from the first value to the second value, that is, it is determined that the calling terminal has currently triggered the playback of the ringback tone.

[0231] In another implementation, if the user needs to use the scenario described in Method 2 above, a timer can be started, as shown in Figure 7. Accordingly, if the SIP module receives an RTP packet sent by the network within the timer, the RTP packet is sent to the audio module, allowing the audio module to play the audio content in the RTP packet and start network playback.

[0232] That is to say, within the timer duration, if the calling terminal does not receive the RTP packet, the reference identifier always maintains the first value. During this period, if the calling terminal receives an error code sent by the network side, it will determine that the ringback tone play process is not currently triggered, and then execute the above step S102.

[0233] Accordingly, if the calling terminal receives the RTP packet within the timer, the SIP module will update the reference identifier from the first value to the second value upon determining that the RTP packet has been received. Thus, after the reference identifier is updated to the second value, if the calling terminal receives an error code sent by the network, it will determine that the ringback tone playback process has been triggered and will proceed to step S103.

[0234] Scenario 1.1c:

[0235] For example, based on scenario 1.1b, if the SIP module does not receive the RTP packet sent by the network within the timer, to ensure that the ringback tone is always played to the calling terminal and thus maintain a good user experience, the SIP module can directly send a local playback instruction to the audio module, enabling the audio module to retrieve the audio content locally from the calling terminal and start local playback. Simultaneously, the SIP module updates the reference identifier from the first value to the second value.

[0236] That is, if no RTP packet is received within the timer, the SIP module may update the reference identifier from the first value to the second value after the timer expires. Thus, after the reference identifier is updated to the second value, if the calling terminal receives an error code sent by the network, it will determine that the ringback tone playback process has been triggered and then execute the above-mentioned step S103.

[0237] In addition, it should be noted that if the 180 message indicates local playback, the SIP module can directly send a local playback instruction to the audio module, so that the audio module can obtain audio content locally from the calling terminal and start local playback.

[0238] Therefore, resource reservation is supported on the network side, and the 183 message indicates the situation of network playback. According to the adjustment method of the reference identifier value shown in the above scenarios 1.1a, 1.1b and 1.1c, and the correspondence between different values ​​of the reference identifier and the ringback tone playback process, it is possible to quickly and accurately determine whether the calling terminal has triggered the ringback tone playback process when receiving the error code in the usage scenarios of different user needs, and then control the calling terminal to perform PS retry or CS retry based on the judgment result.

[0239] Furthermore, it should be noted that, in actual applications, the calling terminal can be configured to determine, based on user needs, that the ringback tone playback process has been triggered upon receiving the 183 message. In other words, regardless of the ringback tone type indicated in the 183 message, the calling terminal will directly determine that the ringback tone playback process has been triggered, regardless of whether the 183 message indicates network playback or local playback. This can directly prevent the calling terminal from initiating a new call request to the called terminal.

[0240] It should be understood that the above description is merely an example listed for a better understanding of the technical solution of this embodiment, and is not intended to be the sole limitation on this embodiment.

[0241] Scenario 1.2: Message 183 indicates local audio playback. Between messages 183 and 180, the calling terminal does not receive any other signaling messages indicating a ringback tone.

[0242] For example, the 183 message sent by the IMS network is "183 Session Progress (PEM, Inactive)" as shown in FIG8 , that is, it carries a PEM header field, and the PEM header field = Inactive. Based on the standards shown in Table 1 above, it can be seen that in the scenario shown in FIG8 , the SIP module determines the ringback tone type as local playback according to the 183 message.

[0243] As can be seen from the above description, for local playback, the calling terminal will only begin playing the ringback tone after receiving the 180 message, and the ringback tone type indicated in the 180 message is still local playback. In other words, the 180 message does not carry a PEM header field, or carries an Inactive PEM header field. Therefore, if the ringback tone type is local playback, the parameter identifier value can remain at the first value before the calling terminal receives the 180 message.

[0244] Furthermore, as shown in the above description of the 180 message, the 180 message can also indicate a ringback tone. That is, the type of ringback tone can be modified based on the content of the 180 message. Therefore, if the 183 message indicates local playback, and the calling terminal does not receive any other signaling message indicating a ringback tone between the 183 message and the 180 message, whether the calling terminal will proceed with local playback requires further consideration of the 180 message. Specifically, for local playback, the 180 message is used to determine whether the calling terminal has triggered the ringback tone playback process.

[0245] Continuing to refer to FIG8 , for example, in scenario 1.2, it can be divided into three specific implementation scenarios: 1.2a, 1.2b, and 1.2c.

[0246] Scenario 1.2a:

[0247] For example, after the calling terminal determines that the ringback tone type is local playback according to the 183 message, if it does not receive other signaling messages indicating the ringback tone type before receiving the 180 message, during this period, the reference identifier may always maintain the first value.

[0248] 8 , for example, when the ringback tone type has always been local playback, when the calling terminal receives the 180 message, it can determine whether the ringback tone type has changed based on the content of the 180 message, and then determine whether the ringback tone playback process has been triggered based on the ringback tone type indicated in the 180 message.

[0249] For example, if the 180 message does not carry a PEM header field, or carries an Inactive PEM header field (the ringback tone type is still local playback), the SIP module will send a local playback instruction to the audio module, so that the audio module can obtain the audio content locally from the calling terminal and start local playback. At the same time, the SIP module will also update the reference identifier from the first value to the second value.

[0250] That is, if the calling terminal receives an error code sent by the network side in scenario 1.2a, since the reference identifier is the second value, the calling terminal will determine that the ringback tone playing process has been triggered and then execute the above step S103.

[0251] Scenario 1.2b:

[0252] Exemplarily, when the 180 message carries a non-Inactive PEM header field, the SIP module changes the ringback tone type from local playback to network playback.

[0253] For example, after the SIP module changes the ringback tone type from local playback to network playback, if the user needs to use the above-mentioned method 1, the reference identifier can be directly updated from the first value to the second value, that is, it is determined that the calling terminal has currently triggered the ringback tone.

[0254] In another implementation, if the user needs to use the scenario of the above-mentioned method 2, a timer can be started as shown in FIG8 .

[0255] Regarding the processing in scenario 1.2b after the timer is started after the ringback tone type is changed from local playback to network playback via the 180 message, please refer to the above scenario 1.1b and will not be repeated here.

[0256] Scenario 1.2c:

[0257] For example, based on scenario 1.2b, if the SIP module does not receive the RTP packet sent by the network within the timer, to ensure that the ringback tone is always played to the calling terminal and thus maintain a good user experience, the SIP module can directly send a local playback instruction to the audio module, enabling the audio module to retrieve the audio content locally from the calling terminal and start local playback. Simultaneously, the SIP module updates the reference identifier from the first value to the second value.

[0258] Regarding the processing in scenario 1.2c after the timer is started after the ringback tone type is changed from local playback to network playback via the 180 message, please refer to the above scenario 1.1c and will not be repeated here.

[0259] Scenario 1.3: Between the 183 and 180 messages, the calling terminal receives another signaling message indicating a ringback tone.

[0260] For example, consider a 183 message indicating local playback, such as "183 Session Progress (PEM, Inactive)" in Figure 9, which carries a PEM header field with the value "Inactive." After determining that the 183 message indicates local playback and waiting for the 180 message from the network, the calling terminal receives another signaling message from the network indicating a ringback tone, such as an Update message or other signaling message capable of carrying a PEM message (this embodiment uses the Update message as an example). Since Update messages can indicate ringback tones, upon receiving the Update message, the calling terminal can determine whether the ringback tone type has changed based on the content of the Update message, thereby updating the reference identifier value.

[0261] For example, take the example of a 183 message indicating local audio playback and an Update message received before the 180 message indicating network audio playback. If the user requires the above-mentioned method 1, the reference identifier can be directly updated from the first value to the second value, i.e., it is determined that the calling terminal has currently triggered the ringback tone.

[0262] In another implementation, if the user needs to use the scenario described in Method 2 above, Scenario 1.3 may include specific implementation scenarios such as Scenario 1.1a, Scenario 1.1b, and Scenario 1.1c. For processing details not shown in this scenario, refer to Scenario 1.1a, Scenario 1.1b, and Scenario 1.1c above and will not be repeated here.

[0263] Furthermore, it should be noted that, in actual applications, the calling terminal can be configured to determine that the ringback tone playback process has been triggered upon receiving an Update message (between the time between receiving the 183 message and the time before receiving the 180 message) based on user needs. In other words, regardless of the ringback tone type indicated in the Update message, the calling terminal will directly determine that the ringback tone playback process has been triggered, regardless of whether the Update message indicates network playback or local playback. This can directly prevent the calling terminal from initiating a new call request to the called terminal.

[0264] It should be understood that the above description is merely an example listed for a better understanding of the technical solution of this embodiment, and is not intended to be the sole limitation on this embodiment.

[0265] Scenario 2: The network does not support resource reservation (the 183 message cannot be used as a ringback tone indication)

[0266] For example, if the IMS network does not support resource reservation, that is, the 183 message cannot be used for ringback tone indication, the IMS network will not send the 183 message to the calling terminal. Therefore, the SIP module of the calling terminal cannot determine whether the current ringback tone playback process is network playback or local playback based on the 183 message, that is, it cannot determine whether the ringback tone playback process has been triggered. Therefore, in order to determine whether the current ringback tone playback process has been triggered in this scenario, it is possible to directly determine whether the current ringback tone playback process is network playback or local playback based on other signaling messages that can carry PEM header fields. After determining whether the current ringback tone playback process is local playback or network playback, the reference identifier value can be changed according to the method for determining whether the current ringback tone playback process has been triggered in the specific implementation scenarios described in Scenario 1 above.

[0267] 10 , a schematic diagram illustrating a situation where the IMS network does not support sending 183 messages, in which the SIP module determines whether the ringback tone to be played is a network tone or a local tone according to the PEM header field carried in the Update message sent by the IMS network.

[0268] As shown in Figure 10, while the calling terminal is waiting to establish a media session with the called terminal, if the SIP module receives an "Update (PEM, non-Inactive)" message from the IMS network, that is, an Update message carrying a PEM header field and indicating that the PEM header field does not equal Inactive, then based on the criteria shown in Table 2 above, in the scenario shown in Figure 10, the SIP module determines, based on the Update message, that the ringback tone type is network playback.

[0269] Regarding the processing in the scenario where the Update message instructs network announcement playback, the method will also vary according to user needs.

[0270] For example, for the scenario where the user requirement is the above-mentioned method 1, when the ringback tone type is determined to be network playback according to Update, the reference identifier can be directly updated from the first value to the second value, that is, it is determined that the calling terminal has currently triggered the ringback tone.

[0271] In another implementation, if the user requires the use scenario of the above-mentioned method 2, scenario 2 may include specific implementation scenarios such as the above-mentioned scenarios 1.1a, 1.1b, and 1.1c. For processing details not shown in this scenario, please refer to the above-mentioned scenarios 1.1a, 1.1b, and 1.1c and will not be repeated here.

[0272] In addition, it should be noted that if the ringback tone type determined by the SIP module based on the Update message is a local ringback tone, then the processing logic of the specific implementation scenarios such as scenario 1.2a, scenario 1.2b, and scenario 1.2c shown in Figure 8 above can be used to determine whether the calling terminal has triggered the ringback tone playback process, as well as the update processing of the reference identifier value, which will not be repeated here.

[0273] From the description of the above scenario, it can be seen that before the SIP module of the calling terminal receives the 180 message, if there is a 183 message or other signaling message indicating that the network playback is required this time. For this scenario, in the usage scenario where the user demand is the above-mentioned method 1, the reference identifier can be directly changed to the second value, that is, it is determined that the ringback tone playback process has been triggered; in the usage scenario where the user demand is the above-mentioned method 2, the judgment can be made in combination with the RTP packet. For example, after receiving the RTP packet sent by the IMS network, the reference identifier is changed to the second value, that is, it indicates that the ringback tone playback process has been triggered. Before the RTP packet is received, the reference identifier maintains the first value, that is, it indicates that the ringback tone playback process has not been triggered.

[0274] Furthermore, the above scenario also illustrates that, upon receiving the 180 message, if the SIP module of the calling terminal determines, based on the content of the 180 message, that local playback is currently required, local playback will immediately begin. At this point, the reference identifier will change to the second value, indicating that the ringback tone playback process has been triggered. If, based on the content of the 180 message, network playback is currently required, in the scenario where the user requirement falls under Method 1, the triggering of the ringback tone playback process can be determined directly based on the signaling message. In the scenario where the user requirement falls under Method 2, the triggering of the ringback tone playback process can be determined based on the RTP packet. For example, the triggering of the ringback tone playback process can be determined only after receiving the RTP packet sent by the IMS network.

[0275] In addition, it should be noted that before the ringback tone is played, when the ringback tone type currently determined by the calling terminal is local playback, it can be processed according to the processing logic of the specific implementation scenarios such as scenario 1.2a, scenario 1.2b, and scenario 1.2c shown in Figure 8.

[0276] Accordingly, when the ringback tone type currently determined by the calling terminal is changed to network playback, processing can be performed according to the processing logic of specific implementation scenarios such as 1.1a, scenario 1.1b, and scenario 1.1c shown in FIG. 7 .

[0277] Based on this, when the reference identifier is the second value, no matter the ringback tone type played by the calling terminal is local playback or network playback, call retry will not be performed. Conversely, when the reference identifier is the first value, call retry can be attempted.

[0278] According to the above-mentioned process of determining whether the ringback tone has been triggered by the calling terminal, the determination is based on the introduced reference identifier. The call processing method provided by this embodiment may be shown in FIG11 and specifically includes:

[0279] S201, while waiting to establish a media session with the called terminal, the calling terminal sets the value of the reference identifier according to the signaling message for indicating the ringback tone type sent by the network side; or sets the value of the reference identifier according to the signaling message for indicating the ringback tone type and the real-time transport protocol packet sent by the network side.

[0280] Among them, the network side, such as the IMS network.

[0281] Correspondingly, the signaling message sent by the network side to indicate the type of ringback tone is, for example, the 183 message, Update message, 180 message, etc. mentioned in the above embodiment.

[0282] Correspondingly, the Real-time Transport Protocol (RTP) packet sent by the network side, such as the RTP packet mentioned in the above embodiment, is specifically a data packet providing the audio content of the network ringback tone in this embodiment.

[0283] It should be noted that when the value of the reference identifier needs to be set according to the signaling message and the RTP packet, the ringback tone type indicated by the signaling message is network playback.

[0284] In addition, regarding the setting logic of the reference identifier value, please refer to the description of the processing logic in each specific implementation scenario in scenario 1 and scenario 2 in the above embodiments, which will not be repeated here.

[0285] S202: When receiving the error code sent by the network side, the calling terminal obtains the value of the reference identifier.

[0286] S203: When the reference identifier is the first value, the calling terminal re-initiates a call request to the called terminal.

[0287] S204: When the reference identifier is the second value, the calling terminal no longer re-initiates a call request to the called terminal.

[0288] For better understanding, the call processing method provided in this embodiment is described below with reference to specific examples.

[0289] Referring to Figure 12, illustratively, when the calling terminal initiates an INVITE request and waits for a media session to be established with the called terminal, the IMS network will feedback a session progress response of this call service to the SIM module of the calling terminal based on the actual progress of the call service. For example, in the case of supporting resource reservation, the session progress will be informed through the 183 message, and the ringback tone type will be indicated through the 183 message.

[0290] Correspondingly, upon receiving the 183 message from the IMS network, the SIP module of the calling terminal will also send a PRACK message back to the IMS network. During the media session establishment process, the SIP module of the calling terminal sets a reference identifier indicating whether the ringback tone playback process is currently triggered based on the received signaling message, such as the 183 message shown in FIG. 12 .

[0291] As can be seen from the above description, for a 183 message that does not carry a PEM header field, the ringback tone type indicated is a network ringback tone. In the scenario where the user requirement is Method 1, the reference identifier will be updated from the first value to the second value. That is, in this scenario, the SIP module of the calling terminal will set the reference identifier to the second value. In the scenario where the user requirement is Method 2, upon receiving the 183 message indicating network ringback tone playback and before receiving the RTP packet, the reference identifier will remain at the first value. Only upon receiving the RTP packet will the reference identifier be updated to the second value. That is, in this scenario, upon receiving the 183 message indicating network ringback tone playback and before receiving the RTP packet, the SIP module of the calling terminal will set the reference identifier to the first value. Upon receiving the RTP packet, the SIP module will then set the reference identifier to the second value.

[0292] For ease of explanation, this embodiment takes the user demand as the usage scenario of the above-mentioned method 2 as an example.

[0293] For example, if the reason for the failure to establish a media session is "Busy Here," the corresponding error code is 486. After the IMS network sends a CANCEL message corresponding to 486 to the calling terminal, the SIP module of the called terminal obtains the current value of the receive reference identifier and decides whether to trigger a call retry.

[0294] Continuing with Figure 12, illustratively, the reference identifier has already been set to the second value by the SIP module before receiving the CANCEL message. As can be seen from the above explanation of the first and second values ​​of the reference identifier, the second value indicates that the calling terminal has already triggered the ringback tone playback process. Furthermore, according to the description of steps S101 to S103, and no longer S204 in the above embodiment, when the calling terminal has already triggered the ringback tone playback process, the calling terminal will no longer re-initiate a call request to the called terminal. Therefore, based on the call processing method provided in the embodiments of the present application, upon determining that the calling terminal has already triggered the ringback tone playback process, the SIP module will no longer retry the call to the called terminal upon receiving the CANCEL message. This prevents the calling terminal from simultaneously playing the network ringback tone and triggering a call retry, thus preventing user inconvenience.

[0295] It should be understood that the description of the scenario shown in Figure 12 is merely an example to facilitate a better understanding of the technical solution of this embodiment and is not intended to be the sole limitation of this embodiment. Based on the call processing method provided in this embodiment, when applied to any of the aforementioned scenarios, upon receiving an error code, if the reference identifier is the first value, the calling terminal can trigger a call retry, i.e., re-initiate a call request to the called terminal. Correspondingly, if the reference identifier is the second value, the calling terminal will no longer trigger a call retry, i.e., will not initiate a call request to the called terminal.

[0296] 13 and 14 , which exemplify a scenario in which the calling terminal determines that network announcement playback is in progress only after receiving an RTP packet sent by the IMS network, when the 183 message indicating network announcement playback arrives at the SIP module of the calling terminal, the current reference identifier is determined to be the first value based on the reference identifier determination process described in the above embodiment.

[0297] Continuing to refer to Figures 13 and 14, illustratively, if the calling terminal receives a CANCEL message sent by the IMS network before receiving the RTP packet, since the reference identifier determined before receiving the CANCEL message is the first value mentioned above, that is, the calling terminal has not currently triggered the ringback tone, the calling terminal can trigger a call retry in this scenario.

[0298] Exemplarily, for the calling terminal triggering the call retry shown in FIG. 13 , specifically, the calling terminal directly performs a call retry to the called terminal in the IMS network, that is, performs a PS retry.

[0299] Since the previous call service ends after a PS retry is triggered, the IMS network will not send an RTP packet to the calling terminal again if it has not yet sent the RTP packet. Instead, it will directly respond to the calling terminal's re-initiated INVITE request. Therefore, during the PS retry process, the calling terminal will not play the network ringback tone and trigger a call retry, thus avoiding user inconvenience.

[0300] Exemplarily, for the calling terminal triggering a call retry shown in FIG14 , specifically, the calling terminal first switches from the IMS network to the CS network, and then performs a call retry to the called terminal in the CS network, ie, performs a CS retry.

[0301] Since the previous call service is already received after a CS retry is triggered, the IMS network will not send an RTP packet to the calling terminal if it has not yet sent the RTP packet. Therefore, during the CS retry process, the calling terminal will not experience the situation where the network ringback tone is played and the call retry is triggered, thus avoiding user inconvenience.

[0302] It should be understood that the descriptions of the scenarios shown in FIG. 13 and FIG. 14 are merely examples listed for a better understanding of the technical solution of this embodiment, and are not intended to be the sole limitation on this embodiment.

[0303] 15 , which exemplarily illustrates a scenario in which the IMS network sends a 183 message to the calling terminal, instructing the calling terminal to play a local ringback tone, while the calling terminal is waiting to establish a media session with the called terminal.

[0304] For example, while the calling terminal is waiting to establish a media session with the called terminal, when it receives a 183 message indicating a local ringback tone ("183 Session Progress (PEM, Inactive)" as shown in Figure 15), the calling terminal determines the reference identifier to be the first value, as local tone playback requires receiving a 180 message to be triggered. Therefore, when the reference identifier is the first value, upon receiving a CANCEL message from the IMS network, the calling terminal can trigger a call retry, i.e., re-initiate a call request to the called terminal.

[0305] Continuing with FIG15 , for example, in this scenario, the call retry triggered by the calling terminal can also be a PS retry (corresponding to the second "INVITE" in FIG15 ) or a CS retry (corresponding to the "Extened Service Request" in FIG15 ). In this way, the calling terminal does not play the local ringback tone and trigger a call retry at the same time, thus avoiding user inconvenience.

[0306] It should be understood that the description of the scenario shown in FIG15 is merely an example listed for a better understanding of the technical solution of this embodiment, and is not intended to be the sole limitation on this embodiment.

[0307] Figure 16 illustrates an example scenario where the IMS network sends a 183 message to the calling terminal, instructing it to play a local ringback tone, while the calling terminal is waiting to establish a media session with the called terminal. Furthermore, in this scenario, the calling terminal does not receive any other signaling messages to modify the ringback tone type before receiving the 180 message from the IMS network. Consequently, the 180 message ultimately received does not modify the ringback tone type, meaning the ringback tone type remains local.

[0308] For example, when the calling terminal is waiting to establish a media session with the called terminal, when the calling terminal receives a 183 message indicating a local ringback tone ("183 Session Progress (PEM, Inactive)" as shown in FIG16 ), since the local playback needs to be triggered only after receiving a 180 message, the reference identifier determined by the calling terminal is the first value.

[0309] Since the calling terminal does not receive a CANCEL message from the IMS network after the reference identifier is set to the first value, but instead receives a 180 message indicating local announcement playback, the reference identifier value update process is triggered again. In this case, the reference identifier is changed from the first value to the second value.

[0310] Continuing with Figure 16 , for example, after the reference identifier changes to the second value, the calling terminal receives a CANCEL message from the IMS network. Since the reference identifier is the second value, the calling terminal has already triggered the ringback tone process. Therefore, even after receiving the CANCEL message, the SIP module will not retry the call to the called terminal. This prevents the calling terminal from simultaneously playing the local ringback tone and triggering a call retry, thus minimizing user inconvenience.

[0311] It should be understood that the description of the scenario shown in FIG16 is merely an example listed for a better understanding of the technical solution of this embodiment, and is not intended to be the sole limitation on this embodiment.

[0312] In addition, it should be noted that in some implementations, the error code sent by the IMS network indicating that the media session call is abnormal (still represented by a CANCEL message) may be sent to the calling terminal first, after which the signaling message and RTP packet related to the ringback tone may arrive at the calling terminal, as shown in Figure 17.

[0313] Referring to Figure 17, in an exemplary embodiment, after the calling terminal initiates an INVITE call request to the called terminal and receives a 100 Trying response from the called terminal via the IMS network, it receives a CANCEL message corresponding to error code 486, but before receiving a 183 message from the IMS network. In this scenario, where no signaling message or RTP packet capable of updating the reference identifier value is received before the CANCEL message is received, the reference identifier's initial value is the first. Therefore, in this scenario where the CANCEL message is received first, the calling terminal can directly trigger a call retry.

[0314] It should be understood that the description of the scenario shown in FIG17 is merely an example listed for a better understanding of the technical solution of this embodiment, and is not intended to be the sole limitation on this embodiment.

[0315] In addition, it is understood that in order to implement the above functions, the terminal device includes hardware and / or software modules corresponding to the execution of each function. In combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of this application.

[0316] Furthermore, it should be noted that the call processing methods provided in the above embodiments, implemented by a terminal device in an actual application scenario, may also be executed by a chip system included in the terminal device, wherein the chip system may include a processor. The chip system may be coupled to a memory so that, when the chip system is running, it calls a computer program stored in the memory to implement the steps performed by the above terminal device. The processor in the chip system may be an application processor or a processor other than an application processor.

[0317] In addition, an embodiment of the present application also provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed on a terminal device, the terminal device executes the above-mentioned related method steps to implement the call processing method in the above-mentioned embodiment.

[0318] In addition, an embodiment of the present application further provides a computer program product. When the computer program product is run on a terminal device, the terminal device executes the above-mentioned related steps to implement the call processing method in the above-mentioned embodiment.

[0319] In addition, an embodiment of the present application further provides a chip system, which includes a processor for calling and running a computer program from a memory, so that a terminal device equipped with the chip system executes the method in any one of the possible implementations of the above embodiments. In one possible design, the chip system also includes an interface circuit, which can be used to receive signals from other devices (such as a memory) or send signals to other devices (such as a communication interface). The chip system may include a chip and may also include other discrete devices.

[0320] In addition, it can be seen from the above description that the terminal device, computer-readable storage medium, computer program product or chip provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0321] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A call processing method, characterized in that: Applied to a calling terminal initiating a call request, the method comprises: The calling terminal, when waiting to establish a media session with the called terminal, receives an error code sent by the network side, determines whether the ringback tone playing process has been triggered; When it is determined that the ringback tone playing process is not currently triggered, the calling terminal re-initiates a call request to the called terminal; When it is determined that the ringback tone playing process has been triggered, the calling terminal no longer re-initiates a call request to the called terminal.

2. The method according to claim 1, characterized in that The process of judging whether the ringback tone playing has been triggered currently includes: According to the signaling message sent by the network side for indicating the type of the ringback tone, it is determined whether the process of playing the ringback tone has been triggered.

3. The method according to claim 2, characterized in that The signaling message includes a first signaling message, where the first signaling message is the first signaling message indicating the type of ringback tone sent by the network side after the calling terminal initiates the call request, and the type of ringback tone is used to instruct the calling terminal to play the tone locally or over the network; The step of judging whether the ringback tone playing process has been triggered according to the signaling message for indicating the type of the ringback tone sent by the network side comprises: When the first signaling message is received, it is determined that the process of playing the ringback tone has been triggered.

4. The method according to claim 2, characterized in that: The signaling message includes a first signaling message, where the first signaling message is the first signaling message indicating the type of ringback tone sent by the network side after the calling terminal initiates the call request, and the type of ringback tone is used to instruct the calling terminal to play the tone locally or over the network; The step of judging whether the ringback tone playing process has been triggered according to the signaling message for indicating the type of the ringback tone sent by the network side comprises: When the ringback tone type indicated by the first signaling message instructs the calling terminal to play the tone over the network, it is determined that the ringback tone playing process has been triggered.

5. The method according to claim 2, characterized in that: The signaling message includes a first signaling message, where the first signaling message is the first signaling message indicating the type of ringback tone sent by the network side after the calling terminal initiates the call request, and the type of ringback tone is used to instruct the calling terminal to play the tone locally or over the network; The process of judging whether the ringback tone playing process has been triggered according to the signaling message for indicating the type of the ringback tone sent by the network side, further includes: When the ringback tone type indicated by the first signaling message indicates that the calling terminal plays the tone locally, it is determined that the ringback tone playing process is not currently triggered.

6. The method according to claim 1, characterized in that The process of judging whether the ringback tone playing has been triggered currently includes: According to the signaling message and RTP packet sent by the network side to indicate the type of ringback tone, determine whether the ringback tone playing process has been triggered; The RTP packet is an audio packet corresponding to a ringback tone whose ringback tone type is network playback.

7. The method according to claim 6, characterized in that The signaling message includes a first signaling message, where the first signaling message is the first signaling message indicating the type of ringback tone sent by the network side after the calling terminal initiates the call request, and the type of ringback tone is used to instruct the calling terminal to play the tone locally or over the network; The process of judging whether the ringback tone playing process has been triggered currently according to the signaling message and RTP packet sent by the network side for indicating the type of the ringback tone includes: When the ringback tone type indicated by the first signaling message indicates that the calling terminal plays the tone over the network, detecting whether an RTP packet sent by the network side is received; When the RTP packet is received, it is determined that the process of playing the ringback tone has been triggered.

8. The method according to claim 7, characterized in that The signaling message also includes a second signaling message, where the second signaling message is the last signaling message indicating the type of ringback tone sent by the network side; The detecting whether the RTP packet sent by the network side is received includes: Detecting whether an RTP packet sent by the network side is received before receiving the second signaling message; Wherein, when the RTP packet is received, determining that the ringback tone playing process has been triggered currently includes: Before receiving the second signaling message, when the RTP packet is received, it is determined that the process of playing the ringback tone has been triggered.

9. The method according to claim 8, characterized in that When the second signaling message is received but the RTP packet is not received, the method further includes: Determine whether the ringback tone playing process has been triggered.

10. The method according to claim 8, characterized in that When the second signaling message is received but the RTP packet is not received, the method further includes: When the ringback tone type indicated by the second signaling message indicates that the calling terminal plays the tone locally, determining that a ringback tone playing process has been triggered; When the ringback tone type indicated by the second signaling message indicates that the calling terminal plays the tone over the network, starting a timer; Detect whether the RTP packet sent by the network side is received within the timer duration; When the RTP packet is received within the timer duration, it is determined that the ringback tone playing process has been triggered.

11. The method according to claim 10, characterized in that The method further comprises: When the RTP packet is not received within the timer duration, a local sound playing indication is generated to instruct the calling terminal to play the sound locally, and it is determined that the ringback tone playing process has been triggered.

12. The method according to any one of claims 8 to 11, characterized in that The second signaling message is a 180 message.

13. The method according to claim 5, characterized in that The signaling message further includes a third signaling message, where the third signaling message is a signaling message for indicating a type of ringback tone received by the calling terminal between the first signaling message and the second signaling message; The second signaling message is the last signaling message indicating the type of ringback tone sent by the network side; After receiving the first signaling message, the method further includes: When the third signaling message is received, it is determined that the process of playing the ringback tone has been triggered.

14. The method according to claim 5, characterized in that The signaling message further includes a third signaling message, where the third signaling message is a signaling message for indicating a type of ringback tone received by the calling terminal between the first signaling message and the second signaling message; The second signaling message is the last signaling message indicating the type of ringback tone sent by the network side; After receiving the first signaling message, the method further includes: When the third signaling message is received and the type of ringback tone indicated by the third signaling message indicates that the calling terminal plays the tone locally, determining that the ringback tone playing process is not currently triggered; When the third signaling message is received and the type of ringback tone indicated by the third signaling message indicates that the calling terminal plays the tone over the network, detecting whether the RTP packet sent by the network side is received; When the RTP packet is received, it is determined that the process of playing the ringback tone has been triggered.

15. The method according to claim 14, characterized in that When the type of ringback tone indicated by the first signaling message indicates that the calling terminal plays the tone locally, or when the type of ringback tone indicated by the third signaling message indicates that the calling terminal plays the tone locally, the method further includes: detecting whether the second signaling message is received; When the second signaling message is received, it is determined that the process of playing the ringback tone has been triggered.

16. The method according to claim 14, characterized in that When the type of ringback tone indicated by the first signaling message indicates that the calling terminal plays the tone locally, or when the type of ringback tone indicated by the third signaling message indicates that the calling terminal plays the tone locally, the method further includes: detecting whether the second signaling message is received; When the second signaling message is received and the type of the ringback tone indicated by the second signaling message indicates that the calling terminal plays the tone locally, determining that a process of playing the ringback tone has been triggered; When the second signaling message is received and the type of ringback tone indicated by the second signaling message indicates that the calling terminal plays the tone over the network, starting a timer; Detect whether the RTP packet sent by the network side is received within the timer duration; When the RTP packet is received within the timer duration, it is determined that the ringback tone playing process has been triggered.

17. The method according to claim 16, characterized in that The method further comprises: When the RTP packet is not received within the timer duration, a local sound playing indication is generated to instruct the calling terminal to play the sound locally, and it is determined that the ringback tone playing process has been triggered.

18. The method according to claim 13 or 14, characterized in that The third signaling message is an Update message.

19. The method according to any one of claims 3 to 5, characterized in that: The first signaling message is a 183 message or an Update message.

20. The method according to claim 1, characterized in that The network side is an IMS network.

21. The method according to claim 20, characterized in that The calling terminal re-initiates a call request to the called terminal, including: The calling terminal switches from the IMS network to a circuit interaction CS network, and re-initiates a call request to the called terminal on the CS network; or, The calling terminal re-initiates a call request to the called terminal in the IMS network.

22. The method according to claim 21, characterized in that The calling terminal switches from the IMS network to a circuit interaction CS network, and re-initiates a call request to the called terminal on the CS network, including: The calling terminal re-initiates a call request to the called terminal in the CS network through the Extended Eervice Request signaling.

23. The method according to claim 21, characterized in that The calling terminal re-initiates a call request to the called terminal in the IMS network, including: The calling terminal re-initiates a call request to the called terminal in the IMS network through INVITE signaling.

24. A call processing method, characterized in that: Applied to a calling terminal initiating a call request, the method comprises: The calling terminal, in the process of waiting to establish a media session with the called terminal, when receiving an error code sent by the network side, determines whether a process of playing a ringback tone has been triggered, wherein the ringback tone process includes a process of playing a ringback tone of a network playback type or a process of playing a ringback tone of a local playback type; wherein determining whether the process of playing a ringback tone has been triggered includes: when it is determined that the process of playing a ringback tone of a network playback type and the process of playing a ringback tone of a local playback type are not triggered, determining that the process of playing a ringback tone has not been triggered; otherwise, determining that the process of playing a ringback tone has been triggered; When it is determined that the ringback tone playing process is not currently triggered, the calling terminal re-initiates a call request to the called terminal; When it is determined that the ringback tone playing process has been triggered, the calling terminal no longer re-initiates a call request to the called terminal.

25. The method according to claim 24, characterized in that The process of judging whether the ringback tone playing has been triggered currently includes: According to the signaling message sent by the network side for indicating the type of the ringback tone, it is determined whether the process of playing the ringback tone has been triggered.

26. The method according to claim 25, characterized in that The signaling message includes a first signaling message, where the first signaling message is the first signaling message indicating the type of ringback tone sent by the network side after the calling terminal initiates the call request, and the type of ringback tone is used to instruct the calling terminal to play the tone locally or over the network; The step of judging whether the ringback tone playing process has been triggered according to the signaling message for indicating the type of the ringback tone sent by the network side comprises: When the first signaling message is received, it is determined that the process of playing the ringback tone has been triggered.

27. The method according to claim 25, characterized in that The signaling message includes a first signaling message, where the first signaling message is the first signaling message indicating the type of ringback tone sent by the network side after the calling terminal initiates the call request, and the type of ringback tone is used to instruct the calling terminal to play the tone locally or over the network; The step of judging whether the ringback tone playing process has been triggered according to the signaling message for indicating the type of the ringback tone sent by the network side comprises: When the ringback tone type indicated by the first signaling message instructs the calling terminal to play the tone over the network, it is determined that the ringback tone playing process has been triggered.

28. The method according to claim 25, characterized in that The signaling message includes a first signaling message, where the first signaling message is the first signaling message indicating the type of ringback tone sent by the network side after the calling terminal initiates the call request, and the type of ringback tone is used to instruct the calling terminal to play the tone locally or over the network; The process of judging whether the ringback tone playing process has been triggered according to the signaling message for indicating the type of the ringback tone sent by the network side, further includes: When the ringback tone type indicated by the first signaling message indicates that the calling terminal plays the tone locally, it is determined that the ringback tone playing process is not currently triggered.

29. The method according to claim 24, characterized in that The process of judging whether the ringback tone playing has been triggered currently includes: According to the signaling message and RTP packet sent by the network side to indicate the type of ringback tone, determine whether the ringback tone playing process has been triggered; The RTP packet is an audio packet corresponding to a ringback tone whose ringback tone type is network playback.

30. The method according to claim 29, characterized in that The signaling message includes a first signaling message, where the first signaling message is the first signaling message indicating the type of ringback tone sent by the network side after the calling terminal initiates the call request, and the type of ringback tone is used to instruct the calling terminal to play the tone locally or over the network; The process of judging whether the ringback tone playing process has been triggered currently according to the signaling message and RTP packet sent by the network side for indicating the type of the ringback tone includes: When the ringback tone type indicated by the first signaling message indicates that the calling terminal plays the tone over the network, detecting whether an RTP packet sent by the network side is received; When the RTP packet is received, it is determined that the process of playing the ringback tone has been triggered.

31. The method according to claim 29, characterized in that The signaling message also includes a second signaling message, where the second signaling message is the last signaling message indicating the type of ringback tone sent by the network side; The detecting whether the RTP packet sent by the network side is received includes: Detecting whether an RTP packet sent by the network side is received before receiving the second signaling message; Wherein, when the RTP packet is received, determining that the ringback tone playing process has been triggered currently includes: Before receiving the second signaling message, when the RTP packet is received, it is determined that the process of playing the ringback tone has been triggered.

32. The method according to claim 31, characterized in that When the second signaling message is received but the RTP packet is not received, the method further includes: Determine whether the ringback tone playing process has been triggered.

33. The method according to claim 31, characterized in that When the second signaling message is received but the RTP packet is not received, the method further includes: When the ringback tone type indicated by the second signaling message indicates that the calling terminal plays the tone locally, determining that a ringback tone playing process has been triggered; When the ringback tone type indicated by the second signaling message indicates that the calling terminal plays the tone over the network, starting a timer; Detect whether the RTP packet sent by the network side is received within the timer duration; When the RTP packet is received within the timer duration, it is determined that the ringback tone playing process has been triggered.

34. The method according to claim 33, characterized in that The method further comprises: When the RTP packet is not received within the timer duration, a local sound playing indication is generated to instruct the calling terminal to play the sound locally, and it is determined that the ringback tone playing process has been triggered.

35. The method according to any one of claims 31 to 34, characterized in that The second signaling message is a 180 message.

36. The method according to claim 28, characterized in that The signaling message further includes a third signaling message, where the third signaling message is a signaling message for indicating a type of ringback tone received by the calling terminal between the first signaling message and the second signaling message; The second signaling message is the last signaling message indicating the type of ringback tone sent by the network side; After receiving the first signaling message, the method further includes: When the third signaling message is received, it is determined that the process of playing the ringback tone has been triggered.

37. The method according to claim 28, characterized in that The signaling message further includes a third signaling message, where the third signaling message is a signaling message for indicating a type of ringback tone received by the calling terminal between the first signaling message and the second signaling message; The second signaling message is the last signaling message indicating the type of ringback tone sent by the network side; After receiving the first signaling message, the method further includes: When the third signaling message is received and the type of ringback tone indicated by the third signaling message indicates that the calling terminal plays the tone locally, determining that the ringback tone playing process is not currently triggered; When the third signaling message is received and the type of ringback tone indicated by the third signaling message indicates that the calling terminal plays the tone over the network, detecting whether the RTP packet sent by the network side is received; When the RTP packet is received, it is determined that the process of playing the ringback tone has been triggered.

38. The method according to claim 37, characterized in that When the type of ringback tone indicated by the first signaling message indicates that the calling terminal plays the tone locally, or when the type of ringback tone indicated by the third signaling message indicates that the calling terminal plays the tone locally, the method further includes: detecting whether the second signaling message is received; When the second signaling message is received, it is determined that the process of playing the ringback tone has been triggered.

39. The method according to claim 37, characterized in that When the type of ringback tone indicated by the first signaling message indicates that the calling terminal plays the tone locally, or when the type of ringback tone indicated by the third signaling message indicates that the calling terminal plays the tone locally, the method further includes: detecting whether the second signaling message is received; When the second signaling message is received and the type of the ringback tone indicated by the second signaling message indicates that the calling terminal plays the tone locally, determining that a process of playing the ringback tone has been triggered; When the second signaling message is received and the type of ringback tone indicated by the second signaling message indicates that the calling terminal plays the tone over the network, starting a timer; Detect whether the RTP packet sent by the network side is received within the timer duration; When the RTP packet is received within the timer duration, it is determined that the ringback tone playing process has been triggered.

40. The method according to claim 39, characterized in that The method further comprises: When the RTP packet is not received within the timer duration, a local sound playing indication is generated to instruct the calling terminal to play the sound locally, and it is determined that the ringback tone playing process has been triggered.

41. The method according to claim 36 or 37, characterized in that The third signaling message is an Update message.

42. The method according to any one of claims 26 to 28, characterized in that The first signaling message is a 183 message or an Update message.

43. The method according to claim 24, characterized in that The network side is an IMS network.

44. The method according to claim 43, characterized in that The calling terminal re-initiates a call request to the called terminal, including: The calling terminal switches from the IMS network to a circuit interaction CS network, and re-initiates a call request to the called terminal on the CS network; or, The calling terminal re-initiates a call request to the called terminal in the IMS network.

45. The method according to claim 44, characterized in that The calling terminal switches from the IMS network to a circuit interaction CS network, and re-initiates a call request to the called terminal on the CS network, including: The calling terminal re-initiates a call request to the called terminal in the CS network through the Extended Eervice Request signaling.

46. ​​The method according to claim 44, characterized in that The calling terminal re-initiates a call request to the called terminal in the IMS network, including: The calling terminal re-initiates a call request to the called terminal in the IMS network through INVITE signaling.

47. A terminal device, characterized in that: The terminal device includes: a memory and a processor, the memory and the processor are coupled; the memory stores program instructions, and when the program instructions are executed by the processor, the terminal device executes the call processing method as described in any one of claims 1 to 23, or executes the call processing method as described in any one of claims 24 to 46.

48. A computer-readable storage medium, characterized in that It comprises a computer program, which, when executed on a terminal device, enables the terminal device to execute a call processing method as described in any one of claims 1 to 23, or to execute a call processing method as described in any one of claims 24 to 46.

49. A chip system, characterized in that: include: A processor, used to call and run a computer program from a memory, so that a terminal device equipped with the chip system executes a call processing method as described in any one of claims 1 to 23, or executes a call processing method as described in any one of claims 24 to 46.

Citation Information

Patent Citations

  • Call processing system and method, electronic equipment and storage medium

    CN113542512A

  • Call abnormity prompting method, communication system, electronic equipment and medium

    CN114095887A

  • Releasing method and terminal equipment

    CN115190468A

  • Data communication method, electronic equipment and storage medium

    CN115550423A

  • Call processing method and device, and storage medium

    CN116170415A

Cited By

  • Prompt tone playing method and related device

    CN121691275A