Conversation method and terminal equipment
By using the timer mechanism to control the sending of Update messages on the called terminal side, the problem that the calling terminal shows that the call is not connected after the called terminal answers is solved, the call success rate and user experience are improved, and the message processing flow on the network side is simplified.
Patent Information
- Application Number
- CN202410178105.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-12-29
- Filing Date
- 2024-02-08
- Publication Date
- 2025-07-08
AI Technical Summary
After the called terminal answers the operation side, the calling terminal shows that the call is not connected and automatically hangs up, which affects the user experience.
When the called terminal receives the timeout of the Caizhen media and is not received, it does not send a Update message that turns off the Caizhen media to avoid the network side processing exception caused by the close interval of the Update message. It controls the transmission of the Update message through the timer mechanism to ensure that the network side can handle it normally.
It improves the call success rate, simplifies the message interaction process on the network side, improves the user experience, and meets the requirements of communication operators for color vibration processing.
Smart Images

Figure CN120281750A_ABST
Abstract
Description
[0001] This application claims the priority of a Chinese patent application with the application number 202311868683.8 and the application title "A Method and Device for Calls" submitted to the National Intellectual Property Administration on December 29, 2023, the entire content of which is incorporated herein by reference. Technical Field
[0002] This application relates to the field of communication technologies, and in particular, to a method for calls and a terminal device. Background Art
[0003] Multimedia color ringing (referred to as color ringing for short) is multimedia resources (such as video + ringtone) displayed and played by the called terminal after ringing and before answering a call. Color ringing greatly enriches the user experience from both visual and auditory perspectives.
[0004] However, it is found in use that in some scenarios, when the calling terminal calls the called terminal and during the process of the called terminal displaying and playing color ringing, when the user performs an answer operation on the called terminal side, the calling terminal side will display that the call is not connected, and the call will be automatically hung up after a period of time. This phenomenon will seriously affect the user experience. Summary of the Invention
[0005] This application provides a method for calls and a terminal device to improve the call success rate and user experience.
[0006] In a first aspect, an embodiment of this application provides a method for calls, which includes: after the called terminal sends a ringing message, receiving a first Update message for notifying the called terminal to prepare to receive color ringing media; after receiving the first Update message, the called terminal starts a timer; the called terminal sends a second Update message, where the second Update message is used to notify that the status of the video port of the called terminal has been updated to a receive-only state; in a first case, the called terminal does not send a third Update message for closing the color ringing; where the first case includes: until the timer times out, the called terminal has not received the color ringing media.
[0007] For the method for a call provided by the first aspect, when the called terminal has not received the color ringback media until the timer expires, the called terminal does not send a third Update message for closing the color ringback. In this way, it will not cause the time intervals between the transmissions of the two Update messages to be relatively close (and thus the time intervals between the receptions of the two Update messages are also relatively close), and it will not cause the network side to receive the next Update message before the negotiation of the previous Update message is completed. It will not lead to the situation where the network side does not have time to process the previous Update message first and then process the next Update message, and thus it will not cause the abnormal maintenance of the network state, nor will it cause the network to be unable to initiate an INVITE call session request again. Therefore, the calling terminal and the called terminal can establish a session normally, and the call between them can be connected normally, solving the problem that the calling terminal shows that the call is not connected and the call is automatically hung up after a period of time, improving the success rate of the call, and thus improving the user experience. In addition, by not sending the third Update message for closing the color ringback, there is no need to interact with relevant messages for closing the video port inside the subsequent network side, simplifying the process and improving the session creation efficiency.
[0008] In a possible implementation manner, the first situation further includes: until the timer expires, the called terminal has not received a response message to the second Update message.
[0009] In this implementation manner, when the called terminal has not received a response message to the second Update message until the timer expires, the called terminal does not send a third Update message for closing the color ringback. In this way, the scenario of not sending the third Update message is further limited to the situation that may cause abnormal maintenance of the network state, specifically improving the call connection success rate.
[0010] In a possible implementation manner, the method further includes: after the timer expires and after receiving a response message to the second Update message, the called terminal sends a third Update message.
[0011] In this implementation, when the called terminal has not received the response message of the second Update message before the timer times out, it waits. After receiving the response message of the second Update message, the called terminal sends a third Update message for turning off the color ringing. In this way, on the one hand, when the network side receives the third Update message, the second Update message has been negotiated, and the network side does not need to process two Update messages simultaneously, so it will not cause chaos or abnormal network status maintenance. Subsequently, the network side can normally initiate an INVITE call session request, and the call can be successfully connected, improving the success rate of call connection between the calling terminal and the called terminal and enhancing the user experience. On the other hand, turning off the color ringing through the third Update message fully ensures that the called terminal will not receive the color ringing media and will not play the color ringing in the future, meeting the requirements for the processing of color ringing in the 5G mobile phone product white paper issued by the communication operator and improving the stability and reliability of subsequent interactions.
[0012] In a possible implementation, the method further includes: in a second scenario, the called terminal sends a third Update message; where the second scenario includes: before the timer times out, the called terminal receives the response message of the second Update message, and until the timer times out, the called terminal has not received the color ringing media.
[0013] In this implementation, although the called terminal has not received the color ringing media until the timer times out, before the timer times out, the called terminal has received the response message of the second Update message, that is, the second Update message has been negotiated. In this case, the called terminal sending the third Update message will not cause a situation where the network side needs to process two Update messages simultaneously, so it will not cause abnormal network status maintenance on the network side, and the color ringing can be normally connected subsequently, improving the call connection success rate.
[0014] In a possible implementation, the response message of the second Update message is a 200OK message.
[0015] In a possible implementation, the second Update message carries a first indication information, and the first indication information represents that the status of the audio port of the called terminal has been updated to a state of being able to send and receive, and the status of the video port of the called terminal has been updated to a state of only receiving.
[0016] Specifically, the called terminal updates the status of its own audio port to a state of being able to send and receive, and updates the status of its own video port to a state of only receiving. Then, the called terminal sends a second Update message to the network side carrying the updated port status, triggering the network side to correspondingly update the port status in the network side, so as to realize the synchronous update of the port status between the called terminal and the network side.
[0017] In a possible implementation, the first indication information includes audio sendrecv video recvonly.
[0018] Optionally, audio sendrecv can be reflected in the direction attribute of the audio media line in the SDP, that is, set the direction attribute of the audio media line in the SDP to sendrecv. Video recvonly can be reflected in the direction attribute of the video media line in the SDP, that is, set the direction attribute of the video media line in the SDP to recvonly.
[0019] In a possible implementation, the second indication information is carried in the third Update message, and the second indication information is used to indicate that the video port number of the called terminal has been updated to 0, indicating that the video port of the called terminal has been closed.
[0020] In a possible implementation, the second indication information includes audio sendrecv video 0.
[0021] Optionally, video 0 can be reflected in the video media line in the SDP, that is, set the video media line in the SDP to 0.
[0022] In a possible implementation, the timer is a Pqos timer.
[0023] In a possible implementation, the duration of the timer is 2 seconds.
[0024] In a possible implementation, the ringing message is a 180Ringing message.
[0025] In a possible implementation, the method further includes at least one of the following: the called terminal sends a ringing message to the network side; the called terminal receives the first Update message sent by the network side; the called terminal sends a second Update message to the network side; the called terminal does not send a third Update message to the network side; the network side includes a serving call session control function S-CSCF network element.
[0026] Second aspect, an embodiment of the present application provides a method for a call, the method including: after the called terminal sends a ringing message, receiving a first Update message for notifying the called terminal to prepare to receive the color ringing media; after the called terminal receives the first Update message, starting a timer; the called terminal sending a second Update message, the second Update message being used to notify that the status of the video port of the called terminal has been updated to a receive-only status; in a third case, the called terminal does not send a third Update message for closing the color ringing; wherein, the third case includes: when the called terminal receives an incoming call operation performed by the user on the called terminal, the called terminal has not yet received a response message to the second Update message.
[0027] For the method for a call provided in the second aspect, when the called terminal receives an incoming call operation performed by the user on the called terminal and the called terminal has not yet received a response message to the second Update message, that is, when the previous Update has not been negotiated successfully when answering the call, the called terminal does not send a third Update message for closing the color ringing. In this way, the interval between two Update messages will not be too close, and the network side will not encounter a situation where it is too late to process the previous Update message first and then process the next Update message, and thus needs to process two Update messages simultaneously. Therefore, it will not cause chaos and will not cause abnormal maintenance of the network state. Subsequently, the network side can normally initiate an INVITE call session request, and the call can be normally connected, improving the success rate of call connection between the calling terminal and the called terminal and enhancing the user experience.
[0028] In a possible implementation manner, the method further includes: in the third case, the called terminal sends a 200OK message for indicating that the called terminal has answered the call, and the 200OK message carries second indication information, the second indication information being used to represent that the video port number of the called terminal has been updated to 0, indicating that the video port of the called terminal has been closed.
[0029] In this implementation manner, when the called terminal receives the call answering operation performed by the user on the called terminal and the called terminal has not received the response message of the second Update message, instead of sending the third Update message for closing the color ringing, the second indication information is carried in the 200OK message for indicating that the called terminal has answered the call. In this way, not only the purpose of closing the color ringing is achieved, but also since the types of the 200OK message and the Update message are different, even if the sending time intervals of these two messages are relatively close, it will not cause confusion in the network side processing, nor will it cause abnormal maintenance of the network state on the network side, and it will not lead to the network being unable to initiate an INVITE call session request again. Therefore, the calling terminal and the called terminal can establish a session normally, and the call between the two can be connected normally, solving the problem that the calling terminal displays that the call is not connected and the call is automatically hung up after a period of time, and improving the user experience. In addition, by closing the color ringing by carrying the second indication information in the 200OK message, the message negotiation process is simplified, and the call session creation efficiency is improved.
[0030] In a possible implementation manner, the second indication information includes audio sendrecv video 0.
[0031] In a possible implementation manner, the method further includes: in a fourth case, the called terminal sends a third Update message; wherein, the fourth case includes: when the called terminal receives the call answering operation performed by the user on the called terminal, the called terminal has received the response message of the second Update message.
[0032] In this implementation manner, when the called terminal receives the call answering operation performed by the user on the called terminal and the called terminal has received the response message of the second Update message, the third Update message is sent. In this way, not only the purpose of closing the color ringing is achieved, but also the situation that the next Update message is sent to the network side before the negotiation of the previous Update message is completed will not occur, and the network side can process the Update messages one by one in an orderly manner. Therefore, it will not lead to abnormal maintenance of the network state, nor will it lead to the network being unable to initiate an INVITE call session request again. So the calling terminal and the called terminal can establish a session normally, and the call between the two can be connected normally, solving the problem that the calling terminal displays that the call is not connected and the call is automatically hung up after a period of time, improving the success rate of call connection, and further improving the user experience.
[0033] In a possible implementation manner, when the called terminal receives the call answering operation performed by the user on the called terminal, it includes: before the timer times out, the called terminal receives the color ringing media, and after the timer times out, the called terminal receives the call answering operation performed by the user on the called terminal.
[0034] In a possible implementation, when the called terminal receives an operation by the user to answer a call on the called terminal, it includes: before the timer times out, the called terminal receives an operation by the user to answer the call on the called terminal.
[0035] In a possible implementation, the operation to answer the call is an operation to answer the call by means of an audio call. The call can be a video call or an audio call initiated by the calling terminal.
[0036] In a possible implementation, the second Update message carries first indication information, and the first indication information is used to indicate that the status of the audio port of the called terminal has been updated to a state where it can send and receive, and the status of the video port of the called terminal has been updated to a state of only receiving.
[0037] In a possible implementation, the first indication information includes audio sendrecv video recvonly.
[0038] In a possible implementation, the third Update message carries second indication information, and the second indication information is used to represent that the video port number of the called terminal has been updated to 0, indicating that the video port of the called terminal has been closed.
[0039] In a possible implementation, the second indication information includes audio sendrecv video 0.
[0040] In a possible implementation, the timer is a Pqos timer.
[0041] In a possible implementation, the duration of the timer is 2 seconds.
[0042] In a possible implementation, the ringing message is a 180Ringing message.
[0043] In a possible implementation, the response message of the second Update message is a 200OK message.
[0044] In a possible implementation, the method further includes at least one of the following: the called terminal sends a ringing message to the network side; the called terminal receives a first Update message sent by the network side; the called terminal sends a second Update message to the network side; the called terminal does not send a third Update message to the network side; the network side includes a serving call session control function S-CSCF network element.
[0045] Thirdly, an embodiment of the present application provides a method for a call. The method includes: after the called terminal rings, receiving a first Update message sent by the network side for notifying the called terminal to prepare to receive color ringing; after receiving the first Update message, the called terminal starts a timer; the called terminal sends a second Update message to the network side; in a first case, the called terminal does not send a third Update message for closing the color ringing to the network side; wherein, the first case includes: until the timer times out, the network side still has not sent a color ringing packet.
[0046] In an implementation manner, the first case further includes: until the timer times out, the called terminal has not received a response message from the network side to the second Update message.
[0047] In an implementation manner, the timer is a Pqos timer.
[0048] In an implementation manner, the duration of the timer is 2 seconds.
[0049] In an implementation manner, a first indication information is carried in the second Update message, and the first indication information is audio sendrecv video recvonly.
[0050] In an implementation manner, the method further includes: in a third case, the called terminal sends a third Update message for closing the color ringing to the network side; wherein, the third case includes: before the timer times out, the called terminal receives a response message from the network side to the second Update message; and until the timer times out, the network side still has not sent a color ringing packet.
[0051] In an implementation manner, the method further includes: in a fourth case, the called terminal sends a third Update message for closing the color ringing to the network side; wherein, the fourth case includes: when the called terminal receives an operation of clicking to answer by a user on the called terminal, the called terminal receives a response message from the network side to the second Update message.
[0052] Fourthly, an embodiment of the present application provides a method for a call. The method includes: after the called terminal rings, receiving a first Update message sent by the network side to notify the called terminal to prepare to receive a color ringtone; after receiving the first Update message, the called terminal starts a timer; the called terminal sends a second Update message to the network side; in a second case, the called terminal does not send a third Update message for closing the color ringtone to the network side; wherein, the second case includes: when the called terminal receives an operation of clicking to answer by the user on the called terminal, the called terminal has not received a response message from the network side to the second Update message.
[0053] In one implementation, the called terminal receiving an operation of clicking to answer by the user on the called terminal includes: before the timer times out, the called terminal receives a color ringtone packet sent by the network side; after the timer times out, the called terminal receives an operation of clicking to answer by the user on the called terminal.
[0054] In one implementation, the called terminal receiving an operation of clicking to answer by the user on the called terminal includes: before the timer times out, the called terminal receives an operation of clicking to answer by the user on the called terminal.
[0055] In one implementation, the timer is a Pqos timer.
[0056] In one implementation, the duration of the timer is 2 seconds.
[0057] In one implementation, the method further includes: in the second case, the called terminal sends a 200OK message for indicating that the called terminal has answered to the network side, and the 200OK message carries second indication information, and the second indication information includes audio sendrecv video 0.
[0058] In one implementation, the method further includes: in a third case, the called terminal sends a third Update message for closing the color ringtone to the network side; wherein, the third case includes: before the timer times out, the called terminal receives a response message from the network side to the second Update message; and until the timer times out, the network side still has not sent a color ringtone packet.
[0059] In one implementation, the method further includes: in a fourth case, the called terminal sends a third Update message for turning off the color ringing to the network side; wherein, the fourth case includes: when the called terminal receives an operation of clicking to answer by the user on the called terminal, the called terminal receives a response message from the network side to the second Update message.
[0060] In a fifth aspect, an embodiment of the present application provides a terminal device, including: a processor and a memory;
[0061] The memory stores computer-executable instructions;
[0062] The processor executes the computer-executable instructions stored in the memory, so that the terminal device executes the method described in any implementation manner of the first aspect.
[0063] In a sixth aspect, an embodiment of the present application provides a chip system, including at least one processor and a communication interface, the communication interface and the at least one processor are interconnected by a line, and the at least one processor is used to run a computer program or instruction to execute the method described in any implementation manner of the first aspect.
[0064] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program. When the computer program is executed by a processor, it implements the method of the first aspect and the method described in any possible implementation manner of the first aspect.
[0065] In an eighth aspect, an embodiment of the present application provides a computer program product, the computer program product includes a computer program, and when the computer program is run, it causes a computer to execute the method of the first aspect and the method described in any possible implementation manner of the first aspect.
[0066] Some embodiments and various implementation manners provided by the present application can avoid problems on the network side caused by the two Update messages sent by the called terminal being too close in time interval, which may lead to abnormal calls, and can improve the success rate of calls. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] Figure 1 is a schematic diagram of a network architecture provided by an embodiment of the present application;
[0068] Figure 2 is a schematic diagram of a voice call scenario provided by an embodiment of the present application;
[0069] Figure 3 is a schematic diagram of the display process of a color ringing function and a ringback tone function provided by an embodiment of the present application;
[0070] Figure 4 It is a schematic structural diagram of a terminal provided by an embodiment of the present application;
[0071] Figure 5 It is a software structure block diagram of a terminal provided by an embodiment of the present application;
[0072] Figure 6 It is a schematic flowchart of a method for making a call in the related art;
[0073] Figure 7 It is a schematic flowchart of another method for making a call provided by an embodiment of the present application;
[0074] Figure 8 It is a schematic flowchart of yet another method for making a call provided by an embodiment of the present application;
[0075] Figure 9 It is a schematic flowchart of a method for making a call in the related art;
[0076] Figure 10 It is a schematic diagram of a dialing interface provided by an embodiment of the present application;
[0077] Figure 11 It is a schematic flowchart of a method for making a call provided by an embodiment of the present application;
[0078] Figure 12 It is a schematic flowchart of yet another method for making a call provided by an embodiment of the present application;
[0079] Figure 13 It is a schematic flowchart of yet another method for making a call provided by an embodiment of the present application;
[0080] Figure 14 It is a schematic flowchart of yet another method for making a call provided by an embodiment of the present application. Detailed implementation manners
[0081] Next, the technical solutions in the embodiments of the present application will be described in conjunction with the accompanying drawings in the embodiments of the present application. Among them, in the description of the embodiments of the present application, unless otherwise specified, " / " means "or". For example, A / B may represent A or B; herein, "and / or" is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of the present application, "a plurality" means two or more than two.
[0082] Hereinafter, the terms "first", "second", and "third" are for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first", "second", and "third" may explicitly or implicitly include one or more of such features.
[0083] Reference to "one embodiment" or "some embodiments" or the like described in the specification of this application means that a specific feature, structure, or characteristic described in connection with that embodiment is included in one or more embodiments of this application. Thus, statements such as "in one embodiment", "in some embodiments", "in other some embodiments", "in still other embodiments", etc., which appear at different places in the specification of this application, are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "comprise", "include", "have", and their variants all mean "include but not limited to", unless otherwise specifically emphasized in other ways.
[0084] First, the application scenario of the method for a call provided in the embodiments of this application is described. This method can be applied to a call between two terminal devices. Among them, the two terminal devices can communicate with the network based on their respective network architectures, and then achieve a call with the peer device. For ease of understanding, the network architecture is described first.
[0085] Please refer to Figure 1 , Figure 1 which is a schematic diagram of a network architecture exemplarily provided in the embodiments of this application. As Figure 1 shown, this network architecture may include terminal devices, Long Term Evolution (LTE), NR, a core network, and an Internet Protocol (IP) Multimedia Subsystem (IMS) or the Internet. The following is a specific introduction to them:
[0086] (1) Terminal device: It can also be referred to as a User Equipment (UE), user terminal, Mobile Station (MS), Mobile Terminal (MT), etc. The terminal device can be a mobile phone, or a wearable device (such as a smart watch), etc. Hereinafter, the terminal device can also be simply referred to as a terminal.
[0087] (2) LTE: It can be understood as the radio access network of the 4G network. In the LTE network (i.e., the so-called 4G network), due to the evolution relationship, the access network part is called the Evolved UMTS Terrestrial Radio Access Network (E-UTRAN). In this application, the meaning of LTE is the same as that of E-UTRAN, both referring to the access network part of the 4G network. The terminal device can access LTE through a 4G base station ( Figure 1 not shown in the figure).
[0088] (3) NR: It can be understood as the radio access network of the 5G network. In the 5G network, the access network part is called the Next Generation Radio Access Network (NG-RAN or NG RAN). In this application, the meaning of NR is the same as that of NG-RAN (or NG RAN), both referring to the access network part of the 5G network.
[0089] It can be understood that both LTE and NR are access networks. The access network is responsible for using a certain wired or wireless connection and communication technology to converge a large number of end users level by level into the core network (also known as the backbone network) to achieve connection to the network. The access network is the edge part of the entire network and the part closest to the user, usually also called "the last mile".
[0090] (4) Core network: Its main functions are to provide user connection, user management, and bearer for services, and to provide an interface to the external network as a bearer network. The establishment of user connection includes functions such as mobility management (MM), call management (CM), switching / routing, and announcement recording (combining intelligent network services to complete the connection relationship to intelligent network peripheral devices).
[0091] It can be understood that the core network of the 4G network is the Evolved Packet Core (EPC) network. The EPC network is the core network of the 4G mobile communication network. It belongs to the category of the core network, has traditional capabilities of mobile networks such as user subscription data storage, mobility management, and data exchange, and can provide users with an ultra-high-speed Internet experience. The core network of the 5G network is 5G Core (which can be abbreviated as 5GC). 5GC will use general network function virtualization devices to replace the dedicated communication devices of the 4G network.
[0092] It should be noted that Figure 1The core network in the network architecture shown can be obtained by fusing the EPC and 5GC. That is to say, the core network in this network architecture can include both the network elements in the EPC and the network elements in the 5GC. For example, the core network in this network architecture can include network elements such as the Access and Mobility Management Function (AMF) network element, the Mobility Management Entity (MME) network element, the Serving GateWay (SGW) network element, the Packet Data Network GateWay (PGW) network element, the Session Management Function (SMF) network element, the User Plane Function (UPF) network element, the Unified Data Management (UDM) network element, and the Home Subscriber Server (HSS) network element, etc.
[0093] In some embodiments of the present application, the core network in this network architecture can include fused network elements obtained from the network elements in the EPC and the network elements in the 5GC. For example, SMF + PGW-C, UPF + PGW-U, UDM + HSS, etc. Among them, PGW-C is the control plane node of the PGW network element, and PGW-U is the user plane node of the PGW network element.
[0094] In some embodiments of the present application, Figure 1The core network in the shown network architecture may include a Proxy Session Border Control (PSBC) network element. PSBC is a co-located network element that integrates Session Border Control (SBC), Serving-Call Session Control Function (S-CSCF), Proxy-CSCF (P-CSCF), Access Transfer Control Function (ATCF), and Access Transfer Gateway (ATGW). As an SBC network element, it connects the IMS core network / softswitch network with the external user access area, completes the service access of IMS / softswitch users, realizes the interworking of user services in different network environments, ensures the security of the IMS / softswitch network, supports QoS management, CAC traffic control, media management, CDR media call detail records, and other functions. As an S-CSCF network element, it is a stateful Session Initialization Protocol (SIP) server and can also perform session control functions. In the user registration phase, the S-CSCF network element plays the role of registration management, establishes mutual authentication between the user and the HSS network element, and downloads user information and subscribed service information from the HSS; in the user session phase, the S-CSCF performs session control, including session creation, session release, and service triggering, service routing, service charging, etc. related to services.
[0095] Each network element in the core network can also be referred to as a functional entity, which can be either a network component implemented on dedicated hardware, a software instance running on dedicated hardware, or an instance of virtualized functions on an appropriate platform.
[0096] It should be understood that the names of all network elements in this application are only for illustration. In future communications, such as in 6G, they can also be called other names, or in future communications, such as in 6G, the network elements involved in this application can also be replaced by other entities or devices with the same functions, and this application does not make any limitations in this regard. A unified explanation is made here and will not be repeated later. Optionally, the various network elements in the embodiments of this application can be communication devices, or chips or chip systems that can be used in the communication devices, and the embodiments of this application do not make any limitations in this regard.
[0097] It can be understood that Figure 1The core network in the shown network architecture may further include other devices, network elements, network entities or network subsystems, such as a Policy Control function (PCF) network element, which is not limited in this application. It should be noted that this application does not limit the distribution method of each network element in the core network. The specific distribution method can refer to relevant technical documents and will not be elaborated here.
[0098] (5) IMS is a network architecture that provides voice and multimedia communication services (such as voice, video, and text messages, etc.) based on the Internet Protocol (IP) network. IMS can achieve secure and reliable multimedia communication between different devices on different networks. The architecture model provides a unified infrastructure and common mechanisms for controlling, operating, routing, and managing sessions, as well as implementing authentication, authorization, and accounting control. The IMS specification includes widely used recommendations of the Internet Engineering Task Force (IETF). For example, the Session Initialization Protocol (SIP) for session control signaling.
[0099] Internet generally refers to the Internet, also known as the international network, which refers to the huge network interconnected by networks. These networks are connected by a set of common protocols to form a logically single huge international network. From the perspective of network communication, the Internet is a data communication network that connects computer networks in various countries, regions, and institutions around the world through the Transmission Control Protocol (TCP) / Internet Protocol (IP).
[0100] It should be noted that Figure 1 The shown network architecture is not limited to only including the devices and networks shown in the figure, and may further include other devices not shown in the figure, which will not be exemplified one by one in this application.
[0101] The following describes the scenario of voice calls (also known as audio calls) between two terminal devices. Please refer to Figure 2 , Figure 2 which is a schematic diagram of a voice call scenario provided by an embodiment of this application. As Figure 2As shown in the figure, the terminal device 100 can transmit voice data to the terminal device 200 through the network device_1, IMS, and network device_2. Among them, the network device_1 is the network device corresponding to the cell where the terminal device 100 currently camps, and the network device_2 is the network device corresponding to the cell where the terminal device 200 currently camps. In some embodiments of the present application, the network device_1 and the network device_2 can be the same network device. In some embodiments of the present application, the terminal device 100 can be the party initiating the voice call to request a voice call with the terminal device 200. In this scenario, the terminal device 100 is also referred to as the calling party device or calling terminal, and the terminal device 200 is also referred to as the called party device or called terminal. In still some other embodiments of the present application, the terminal device 200 can be the party initiating the voice call to request a voice call with the terminal device 100. In this scenario, the terminal device 200 is the calling terminal, and the terminal device 100 is the called terminal.
[0102] The network devices (including network device_1 and network device_2) in the embodiments of the present application can be devices used to communicate with terminal devices. For example, the network device can be one or more of the above Figure 1 LTE, NR, core network, and base stations, etc.
[0103] It can be understood that after two terminal devices initiate a call (subsequently collectively referred to as a call), but before the call is connected, that is, during the waiting-to-connect process, the terminal devices can display and play multimedia resources to provide users with rich visual and auditory experiences. Specifically, when the calling terminal calls the called terminal and the called terminal rings, the calling terminal can display and play multimedia resources, and this function is called the multimedia ringback tone (abbreviated as ringback tone) function. The multimedia resources of the ringback tone function (hereinafter referred to as ringback tone media) can be video resources, audio resources, or video resources + audio resources (i.e., video + ringtone). When the ringback tone media includes video resources, the ringback tone function is also called the video ringback tone.
[0104] At the same time, after the called terminal rings, the called terminal side can also display and play multimedia resources, and this function is called the multimedia color ringing (abbreviated as color ringing) function. Similar to the ringback tone function, the multimedia resources of the color ringing function (hereinafter referred to as color ringing media) can be video resources, audio resources, or video resources + audio resources (i.e., video + ringtone). When the color ringing media includes video resources, the color ringing function is also called the video color ringing. Currently, the three major operators, China Mobile, China Telecom, and China Unicom, are promoting the commercialization of color ringing and require that the color ringing function be default enabled when the terminal products of major terminal manufacturers are launched.
[0105] Both the color ringback tone media and the ringback tone media can be obtained from the Customized Alerting Tone-Application Server (CAT-AS). Among them, CAT-AS is also known as the ringback tone platform. The ringback tone platform and the terminal device can communicate through the IMS core network in the above Figure 1 , for example, through the S-CSCF. The following describes the display process of the color ringback tone function and the ringback tone function on the terminal with reference to the accompanying drawings.
[0106] Please refer to Figure 3 , Figure 3 , which is a schematic diagram of the display process of the color ringback tone function and the ringback tone function provided in an embodiment of the present application. As Figure 3 shown, when the calling terminal calls the called terminal, during the process of the calling terminal waiting for the called terminal to answer, the calling terminal can negotiate the ringback tone media with the ringback tone platform, and the ringback tone platform sends the ringback tone media to the calling terminal. The calling terminal displays and plays the ringback tone media to display, for example, Figure 3 the interface 301 shown, and plays the ringtone. In this way, the ringback tone function is realized.
[0107] At the same time, the called terminal can also negotiate the color ringback tone media with the ringback tone platform, and the ringback tone platform sends the color ringback tone media to the called terminal. The called terminal displays and plays the color ringback tone media to display, for example, Figure 3 the interface 302 shown, and plays the ringtone. In this way, the color ringback tone function is realized.
[0108] However, the inventor found that in the current implementation of a call with the color ringback tone function, after the user clicks the call button on the called terminal side, the calling terminal shows that the call is not connected, and after a period of time (for example, 20 s), the call is automatically hung up. This phenomenon will seriously affect the user experience and needs to be solved urgently. The method for calls provided in the embodiments of the present application aims to solve this problem, improve the success rate of call connection, and improve the user experience.
[0109] The method for calls provided in the embodiments of the present application can be applied to a terminal, and a hardware structure of the terminal is as Figure 4As shown, it may include: a processor, an external memory interface, an internal memory, a Universal Serial Bus (USB) interface, a charging management module, a power management module, a battery, antenna 1, antenna 2, a mobile communication module, a wireless communication module, a sensor module, a button, a motor, an indicator, a camera, a display screen, and a SIM card slot, etc. Among them, the audio module may include a speaker, a receiver, a microphone, a headphone interface, etc., and the sensor module may include a pressure sensor, a gyroscope sensor, a barometric 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.
[0110] It can be understood that the structure schematically shown in the embodiments of this application does not constitute a specific limitation on the terminal. In other embodiments, the terminal may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or have different component arrangements. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0111] Among them, the processor may include one or more processing units. For example, the processor may include an Application Processor (AP), a Modem (which can also be called a baseband processor), a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), and / or a Neural-network Processing Unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors. The processor is the nerve center and command center of the terminal. The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of fetching instructions and executing instructions.
[0112] The wireless communication function of the terminal can be implemented through antenna 1, antenna 2, the mobile communication module, the wireless communication module, and the Modem, etc. In some embodiments, antenna 1 of the terminal is coupled to the mobile communication module, and antenna 2 is coupled to the wireless communication module, so that the terminal can communicate with network-side devices and other terminals through wireless communication technologies.
[0113] In addition, an operating system runs on the above components. For example, the iOS operating system developed by Apple Inc., the Android open-source operating system developed by Google Inc., the Windows operating system developed by Microsoft Corporation, etc.
[0114] The operating system of the terminal can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservices architecture, or a cloud architecture. In the embodiments of the present application, taking the Android system with a layered architecture as an example, the software and hardware structure of the terminal is exemplarily described. It should be noted that although the embodiments of the present application take the Android system as an example for description, its basic principles are equally applicable to terminals based on operating systems such as iOS or Windows.
[0115] Figure 5 It is a software structure block diagram of the terminal. The software structure adopts a layered architecture. The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. Taking the Android system as an example, when the Android system runs on the AP, in some embodiments, the Android system is divided into five layers, from top to bottom, namely the application layer, the application framework layer (Framework), the Android runtime and system libraries, the hardware abstraction layer (HAL), and the system kernel layer (Kernel).
[0116] Among them, the application layer may include a series of application packages. The application packages may include APPs such as a camera, a gallery, a calendar, a call, a map, WLAN, Bluetooth, music, video, short message, etc. The application layer may also include systemUI (system UI), and systemUI is used to display the interface of the terminal, such as displaying the signal icon corresponding to the SIM card, displaying the call interface, etc. The application framework layer provides application programming interfaces (Application Programming Interface, API) and programming frameworks for the applications in the application layer. The application framework layer includes some predefined functions. For example, the application framework layer may include a window manager, a content provider, a view system, a telephone manager, a resource manager, a notification manager, etc. The telephone manager is used to provide the call function of the terminal. For example, the management of the call state (including connection, disconnection, etc.), and the telephone manager is represented by telephony in Figure 5 It. The application framework layer may also include RIL (Radio Interface Layer, wireless communication interface layer), and the modem can interact with telephony through RIL.
[0117] The modem may include an IMS module, a NAS (Non-Access Stratum) layer, an RRC (radio resource control) layer, a Packet Data Convergence Protocol (PDCP) layer, a Radio Link Control (RLC) layer, a Medium Access Control (MAC) layer, and a Physical (PHY) layer. The foregoing IMS module and each layer may be software modules. Among them, the IMS module is used to interact with the IMS core network, such as interacting with the S-CSCF. For the method for call provided in the embodiments of the present application, the relevant steps on the terminal side may be implemented by the IMS module. The modem may interact with the base station through an antenna, and then through the base station, the terminal accesses the network. Specifically, reference may be made to Figure 1 .
[0118] Next, in combination with Figures 1 to 5 the scenarios, network architectures, and terminal structures shown below, the method provided in the embodiments of the present application will be briefly described first.
[0119] First, before the description, the status codes corresponding to the IMS messages involved in the embodiments of the present application will be described through Table 1.
[0120] Table 1
[0121] Status Code Message Name Meaning Description 100 Trying Trying to Call 180 Ringing Ringing 183 Session Progress Session in Progress 200 OK Successful Session Response (or Answer)
[0122] It can be understood that generally, a message can be expressed by combining a status code and a message name. In this article, for the sake of simplicity of description, the message can be expressed only by the message name. Specifically, the 100Trying message can be simply described as the Trying message, and the format can be IMS_SIP_INVITE / TRYING. Among them, IMS_SIP indicates that this message is a message based on the Session Initiation Protocol under the IP multimedia subsystem. INVITE characterizes the type of this message. TRYING indicates the message name, that is, this message is a message named TRYING under the INVITE type. Other message types based on the Session Initiation Protocol under the IP multimedia subsystem also include the PRACK type, the ACK type, Update, etc. The format meanings of other types of messages are similar to this and will not be elaborated.
[0123] The 180 Ringing message can be simply described as a Trying message, and its format can be IMS_SIP_INVITE / RINGING. The 183 Session Progress message can be simply described as a Session Progress message, and its format can be
[0124] IMS_SIP_INVITE / SESSION_PROGRESS. The 200 OK message can be simply described as an OK message.
[0125] It can be understood that as an answer message (or a response message), the OK message can answer different types of messages. For example, it can answer an Update message or an INVITE message. In the embodiments of the present application, in order to distinguish different OK messages, the message type that the OK message is used to answer is added before the OK message for distinction. For example, the PRACK OK message is an OK message used to answer a PRACK message, and the Update OK message is an OK message used to answer an Update message. According to the different message types that the OK message answers, the format of the OK message can be different. The format of the PRACK OK message can be IMS_SIP_PRACK / OK, and the format of the Update OK message can be IMS_SIP_UPDATE / OK. In addition, in the embodiments of the present application, in order to distinguish two messages with the same type but different indicated meanings or carried information, a digital number can be added after the message name. For example, the message types of Update message 1 and Update message 2 are both Update, but their indicated meanings and / or carried information may be different.
[0126] In addition, as described above, between the calling terminal and the called terminal, they can communicate through the IMS core network (including S-CSCF) corresponding to their respective resident cells to realize a call between them. Moreover, the calling terminal and the called terminal respectively communicate with the ringback tone platform through the S-CSCF corresponding to their respective resident cells to negotiate the ringback tone media or the visual ringing media. Among them, the S-CSCF corresponding to the resident cell of the calling terminal and the S-CSCF corresponding to the resident cell of the called terminal may be the same S-CSCF or different S-CSCFs. In the embodiments of the present application, for the convenience of description, the S-CSCFs corresponding to the resident cells of the calling terminal and the called terminal are collectively referred to as S-CSCF without specific distinction. Moreover, for the convenience of description, the S-CSCF, the ringback tone platform, and other network devices can be collectively referred to as the network or the network side.
[0127] Regarding visual ringing, the 5G mobile phone product white paper released by the operator requires that in the following two cases, the called terminal needs to turn off visual ringing:
[0128] 1) When the called terminal timer (e.g., 2 - second (S) timer) times out without the color ringback media being sent, the color ringback needs to be turned off:
[0129] Specifically, for video color ringback, when the called terminal receives the video color ringback media negotiation Update (update) message sent by the ringback platform and successfully completes the audio - video media negotiation, the called terminal locally starts the Pqos timer (it is recommended to be set to 2S and can be configured). When it is found that the network has not sent the color ringback media after the timer times out, the called terminal sends an Update message to close the color ringback port (which can be understood as closing the video port to turn off the color ringback).
[0130] Among them, the Pqos timer can be understood as a timer used to limit the time for sending the color ringback media. It should be understood that the Pqos timer can also be a timer with other names. For the understanding of the Pqos timer, the regulations of relevant timers in the communication field in the prior art can be referred to.
[0131] Optionally, before the Pqos timer times out, if the called terminal receives the color ringback media sent by the network, the Pqos timer can also terminate the timing in advance.
[0132] It can be understood that to play the color ringback media, it is necessary to receive the video media through the video port. Therefore, the color ringback can be turned off by closing the video port of the called terminal.
[0133] 2) The color ringback needs to be turned off after the user of the called terminal clicks the answer button:
[0134] Specifically, if the called user selects to answer a video call or an audio call, the called terminal should support closing the incoming call details page and stopping playing the video color ringback audio - video in it, and support updating the status through any one of the following two methods:
[0135] a. When the called party sends a 200OK response message, the SDP video media line is set to 0;
[0136] b. Before the called party sends the 200OK message, by sending an Update update message, the video media line in the SDP is set to 0.
[0137] It can be understood that the user of the called terminal clicking the answer button is only a way to perform the answer operation. In some other embodiments, the user can also answer the call through other answer operations, and the embodiments of the present application do not make any limitations in this regard. The process of the user performing the answer operation on the called terminal is also called the called party going off - hook.
[0138] The above 200OK response message or 200OK message both refer to the INVITE OK message indicating that the called terminal has answered the call (i.e., the called party has gone off - hook).
[0139] "The user selects to answer a video call or an audio call" can be understood as follows: The calling terminal initiates a video call to the called terminal, and the user of the called terminal selects to answer the call in the form of an audio call on the side of the called terminal.
[0140] It should be understood that the above only extracts the relevant content regarding the need to turn off the color ringing in a called off-hook scenario in the 5G mobile phone product white paper. According to the records in the 5G mobile phone product white paper, when the calling terminal initiates an audio call (i.e., a voice call) to the called terminal and the called terminal answers the audio call, it is also necessary to turn off the color ringing, and the method of turning off the color ringing is the same as the above method.
[0141] In addition, when the called terminal goes off-hook, the called terminal confirms whether the video port is open. If the video port is already closed, there is no need to turn off the color ringing through the above method.
[0142] That is to say, when the video port of the called terminal is not closed, regardless of whether the call initiated by the calling terminal is a video call or an audio call, as long as the called terminal selects to answer the call in the form of an audio call (referred to as the called audio off-hook), the called terminal needs to close the video port of the called terminal to turn off the color ringing.
[0143] The applicant has discovered the following problem scenarios in actual research.
[0144] Problem phenomenon: After the called party with color ringing answers the call, the calling party sees that the call is not connected, and the call is automatically hung up after 20S. Specifically, please refer to Figure 6 In the related art, the method for a call includes the following steps:
[0145] 1) After the called party with color ringing rings, the network sends an update message (such as 9 shown in Figure 6 , which is also referred to as the first update message in this article) to notify the called terminal to prepare to receive the color ringing, and the called terminal starts a 2S Pqos timer;
[0146] The called party with color ringing can be understood as a called terminal with the color ringing function enabled. In the embodiments of the present application, the update message is the same as the Update message, and the ok message is the same as the OK message.
[0147] 2) The called terminal sends an update message (such as 11 shown in Figure 6 , which is also referred to as the second update message in this article) to the network to refresh its own port and set its own receiving state to video recvonly;
[0148] The local end refers to the called terminal, and the local end port refers to the video port of the called terminal. The local end receiving state refers to the receiving state of the called terminal. In this embodiment, the receiving state of the port is used to characterize the state of the port for sending or receiving data, and is also referred to as the state of the port. The state of the port can include a receive-only state, a send-only state, and a send-receive state.
[0149] video recvonly can be understood as video receive only, indicating that the receiving state of the video port is the receive-only state, that is, it can only receive video and cannot send video.
[0150] "Refreshing the local end port and setting the local end receiving state to video recvonly" can be understood as: updating the state of the video port of the called terminal to the receive-only state. That is to say, the called terminal updates the state of its local video port to the receive-only state, and at the same time, sends an update message to the network side to notify the network side of the updated state of the video port of the called terminal. After the network receives this update message, it simultaneously updates the state of the video port (hereinafter referred to as the 2# video port) used by the network side to send video to the called terminal to the send-only state, and informs the called terminal through an update ok message.
[0151] 3) Until the 2S timer in the called terminal times out and the network still has not sent the color ringing packet, the called terminal sends an update message for closing the color ringing (such as Figure 6 12 shown in, which is also referred to as the third update message in this article). This update message carries information for refreshing the video port to 0 (such as Figure 6 audio sendrecv video 0 shown in 12).
[0152] It should be understood that when the port number of the video port (i.e., the video port) is not 0 (for example, it is 50024), this port can transmit video media. When the video port number is 0, it means that the video port is closed. Refreshing the video port to 0 can be understood as setting the video port number to 0, indicating that the video port is closed. After closing the video port, the called terminal cannot receive video nor send video. That is to say, the called terminal updates its local video port number to 0, and at the same time, sends an update message to the network side to notify the network side that the video port of the called terminal side has been set to 0. After receiving this update message, the network also updates the 2# video port number on the network side to 0, that is, closes the 2# video port, and informs the called terminal through an update ok message. In this way, the video ports of both the called terminal and the network side are closed, that is, the color ring back tone is turned off. In this embodiment, the update message sent by the called terminal to the network, which carries information for refreshing the video port to 0, is called the message for turning off the color ring back tone.
[0153] Optionally, the video media line of the SDP can be set to 0 in the update message, indicating that the video port of the terminal is closed. Specifically, the update message can carry audio sendrecv video 0. Among them, audio sendrecv can be understood as audio send and receive, indicating that the status of the audio port is in a state where it can both send and receive, that is, it can receive and send audio. Video 0 means that the video media line of the SDP is set to 0, that is, the video port number is 0.
[0154] 4) Previously, the called terminal has sent an update message (such as Figure 6 shown as 11 in the figure). When the two update messages (the second update message and the third update message, that is, 11 and 12 shown in the figure) are sent at a relatively close interval, the network status maintenance is abnormal;
[0155] 5) The network sends an ok message (such as Figure 6 shown as 13 and 14 in the figure) in response to the first and second update messages sent by the terminal to the called terminal;
[0156] It should be understood that the "first update message" in the "first and second update messages" refers to the second update message in step 2) above (that is, Figure 6 the message shown as 11 in the figure). The "second update message" refers to the third update message in step 3) above (that is, Figure 6 the message shown as 12 in the figure). The "ok message for the first update message" refers to the ok message for answering the second update message (that is,Figure 6 (the message shown in 13), the "ok message of the second update message" refers to the ok message used to reply to the third update message (i.e., Figure 6 the message shown in 14).
[0157] 6) The called end-user clicks to answer the call, and the called terminal sends IMS_SIP_INVITE / OK(15);
[0158] 7) The network receives the message sent by the called terminal indicating that the called terminal has answered the call
[0159] IMS_SIP_INVITE / OK(15) and replies with ACK(16);
[0160] 8) However, the network does not initiate IMS_SIP_INVITE(17) again (the reason may be that the sending intervals of the two update messages sent by the called terminal are relatively close, resulting in an exception on the network side);
[0161] 9) The network also does not send the message IMS_SIP_INVITE / OK(18) indicating that the called has answered the call to the calling terminal (the reason may be that the sending intervals of the two update messages sent by the called terminal are relatively close, resulting in an exception on the network side), and thus the calling terminal will see that the call is not connected, and the call will be automatically hung up after a period of time.
[0162] Regarding Figure 6 and the detailed implementation process of the above steps, please refer to the subsequent Figure 9 illustrated embodiment.
[0163] Embodiment 1:
[0164] As Figure 7 shown:
[0165] 1) After the color ringtone of the called rings, the network sends an update message (such as Figure 7 9 shown in, also referred to as the first update message in this article) to notify the called terminal to prepare to receive the color ringtone, and the called terminal starts a 2S Pqos timer;
[0166] 2) The called terminal sends an update message to the network (such as Figure 7 11 shown in, also referred to as the second update message in this article) to refresh the local port and set the local receiving status to video recvonly;
[0167] 3) Until the 2S timer of the called terminal times out and the network still has not sent the color ringtone packet, in this case, the called terminal does not send an update message for closing the color ringtone (such as Figure 712 shown in , also referred to as the third update message in this article).
[0168] It is understandable that when the color ringing timer (2S timer) of the called terminal times out, if the network still has not sent the color ringing packet, and the called terminal has not received the last update message (such as Figure 7 11 shown in , also referred to as the second update message in this article) Figure 7 13), the called terminal does not send an update message for closing the color ringing message (such as Figure 7 12 shown in , also referred to as the third update message in this article);
[0169] The color ring timer can be understood as a timer used to limit the time for sending color ring media, that is, the above-mentioned Pqos timer.
[0170] 4) The called terminal user clicks to answer the call, and the called terminal sends IMS_SIP_INVITE / OK (14);
[0171] 5) The network receives the message IMS_SIP_INVITE / OK (14) indicating that the called terminal has answered the call and responds with ACK (15);
[0172] 6) The network initiates IMS_SIP_INVITE again (16);
[0173] 7) The network sends a message IMS_SIP_INVITE / OK (19) to the calling terminal indicating that the called party has answered the call, and the call is connected normally.
[0174] about Figure 7 For the detailed implementation process of the above steps, please refer to the subsequent Figures 10 to 12 The embodiment shown.
[0175] Embodiment 2:
[0176] like Figure 8 As shown:
[0177] After the color ringing call is set, the called terminal (UE#2 as shown in the figure) successfully negotiates the color ringing with the network, and the network sends the color ringing message normally or does not send the color ringing message. The called terminal needs to turn off the color ringing when answering the call, but the previous update has not been negotiated. In this case, the called terminal no longer sends an update to turn off the color ringing, but sends a 200OK message (such as UE#2) to indicate that the called terminal has answered the call. Figure 8 14) in the SDP video media line is set to 0 (as shown in Figure 8 The audio sendrecv video 0) shown in 14 is as follows.
[0178] 1) After the color ringing call is rung, the network sends update(9) to notify the terminal to prepare to receive the color ringing call, and the terminal starts the 2SPqos timer;
[0179] 2) The terminal sends update(11) to the network to refresh the local port and set the local receiving state to videorecvonly;
[0180] 3) The network sends the color vibration packet normally or does not send it within 2S after the timer starts, and the user clicks to answer the call on the called terminal within 2S after the timer starts; or, the network sends the color vibration packet normally within 2S after the timer starts, and the user clicks to answer the call on the called terminal after 2S after the timer starts (for example, the 6th second);
[0181] 4) When the user clicks to answer the call on the called terminal, the called terminal normally needs to send an update message for turning off the color ringing. In this embodiment, the called terminal does not send an update message for turning off the color ringing at this time (such as Figure 8 12), but directly sends IMS_SIP_INVITE / OK with the SDP video media line set to 0 (as shown in Figure 8 14) as shown in FIG.
[0182] It is understandable that when the user clicks to answer the call on the called terminal, if the called terminal has not received the last update message (such as Figure 8 11 shown in , also referred to as the second update message in this article) Figure 8 13), the called terminal does not send an update message for closing the color ringing message (such as Figure 8 12 shown in , also referred to as the third update message in this article).
[0183] 5) The network receives the message IMS_SIP_INVITE / OK (14) indicating that the called terminal has answered the call and responds with ACK (15);
[0184] 6) The network initiates IMS_SIP_INVITE again (16);
[0185] 7) The network sends a message IMS_SIP_INVITE / OK (19) to the calling terminal (UE#1 shown in the figure) indicating that the called terminal has answered the call, and the call is connected normally.
[0186] about Figure 8 For the detailed implementation process of the above steps, please refer to the subsequent Figures 13 to 14 The embodiment shown.
[0187] Next, the method provided by the embodiments of the present application will be further described in detail.
[0188] First, the method for making a call in the related art will be described again. As Figure 9 shown, the method includes:
[0189] S101. In response to the user dialing on the calling terminal (which can also be referred to as UE#1) and clicking the call control, the calling terminal sends an invitation (INVITE) message 1 for initiating a call session request to the S-CSCF.
[0190] Please refer to Figure 10 , Figure 10 which is a schematic diagram of a dialing interface provided by an embodiment of the present application. The user can dial the number of the called terminal in the Figure 10 shown dialing interface 701 and trigger a call to the called terminal through the call control 702.
[0191] Optionally, the format of the INVITE message 1 can be IMS_SIP_INVITE / INFORMAL_RESPONSE. Information such as the phone number of the calling terminal and the phone number of the called terminal can be carried in the INVITE message 1.
[0192] S102. After receiving the INVITE message 1, the S-CSCF sends a trying (Trying) message 1 for answering the INVITE message 1 to the calling terminal.
[0193] Optionally, the format of the Trying message 1 can be IMS_SIP_INVITE / TRYING. The Trying message 1 indicates that the INVITE message has been received and a call is being attempted.
[0194] S103. Based on the INVITE message 1, the S-CSCF sends an INVITE message 2 for initiating a call session request to the called terminal (which can also be referred to as UE#2).
[0195] The INVITE message 2 can be the same as or different from the INVITE message 1.
[0196] S104. After receiving the INVITE message 2, the called terminal sends a trying (Trying) message 2 for answering the INVITE message 2 to the S-CSCF.
[0197] The format of the Trying message 2 can be IMS_SIP_INVITE / TRYING. The Trying message 2 indicates that the INVITE message has been received and a call is being attempted.
[0198] S105. The called terminal sends a Session Progress message to the S-CSCF.
[0199] The Session Progress message is used to indicate that the called terminal is creating a session.
[0200] Optionally, the format of the Session Progress message can be IMS_SIP_INVITE / SESSION_PROGRESS.
[0201] S106. After receiving the Session Progress message, the S-CSCF forwards the Session Progress message to the calling terminal.
[0202] Based on the Session Progress message, the calling terminal can learn that the S-CSCF has found the calling terminal. It should be noted that the Session Progress message does not represent the successful establishment of the session.
[0203] S107. After receiving the Session Progress message, the calling terminal sends a Provisional Response ACKnowledgement (PRACK) message 1 to the S-CSCF. The PRACK message 1 carries information for requesting resource reservation.
[0204] Optionally, the format of the PRACK message 1 can be IMS_SIP_PRACK / INFORMAL_RESPONSE.
[0205] S108. In response to the PRACK message 1, after performing resource reservation, the S-CSCF sends a PRACK OK message 1 to the calling terminal for answering the PRACK message 1.
[0206] It can be understood that the S-CSCF sending the PRACK OK message 1 for answering the PRACK message 1 represents the successful resource reservation.
[0207] Optionally, the format of the PRACK OK message 1 can be IMS_SIP_PRACK / OK.
[0208] S109. The S-CSCF sends a PRACK message 2 to the called terminal. The PRACK message 2 carries the information of resource reservation.
[0209] Optionally, the format of the PRACK message 2 can be IMS_SIP_PRACK / INFORMAL_RESPONSE.
[0210] S110. After the called terminal receives the PRACK message 2, it replies to the S-CSCF with a PRACKOK message 2 for answering the PRACK message 2.
[0211] S111. The calling terminal updates the status of the audio port on the calling terminal side to the send-receive state and sends an Update message 1 to the S-CSCF. The Update message 1 carries audio sendrecv.
[0212] The Update message 1 is used to notify the S-CSCF that the status of the audio port of the calling terminal has been updated to the send-receive state. Specifically, the direction attribute of the audio media line in the SDP of the Update message 1 is sendrecv, indicating that the audio stream direction is not restricted, that is, it can receive and send audio (send-receive state).
[0213] Optionally, the format of the Update message 1 can be IMS_SIP_UPDATE / INFORMAL_RESPONSE.
[0214] S112. After the S-CSCF receives the Update message 1, it updates the status of the #1 audio port on the network side to the send-receive state and replies to the calling terminal with an Update OK message 1 for answering the Update message 1. The Update OK message 1 carries audio sendrecv.
[0215] The #1 audio port refers to the port on the network side used to send audio to the calling terminal or receive audio sent by the calling terminal. The network side here can be, for example, a ringback tone platform.
[0216] Optionally, the format of the Update OK message 1 can be IMS_SIP_UPDATE / OK, and the direction attribute of the audio media line in the SDP of the Update OK message 1 is sendrecv.
[0217] S113. The S-CSCF updates the status of the #1 video port on the network side to the send-only state and sends an Update message 2 to the calling terminal. The Update message 2 carries audio sendrecv video sendonly.
[0218] The #1 video port refers to the port on the network side used to send audio to the calling terminal or receive audio sent by the calling terminal.
[0219] The Update message 2 is used to notify the calling terminal that the status of the #1 video port has been updated to the send-only state.
[0220] Optionally, in this embodiment, the information in the Update message can be carried incrementally, that is, the information is added on the basis of the information carried in the previous same-type message. In this embodiment, the message carried in the Update message 2 can add video sendonly on the basis of the Update OK message 1, that is, the Update message 2 carries audio sendrecvvideo sendonly. Specifically, the direction attribute of the audio media line in the SDP of the Update message 2 is sendrecv, and the direction attribute of the video media line is sendonly, indicating that only the video stream is sent.
[0221] Optionally, the format of the Update message 2 can be IMS_SIP_UPDATE / INFORMAL_RESPONSE.
[0222] S114. After receiving the Update message 2, the calling terminal replies to the S-CSCF with an Update OK message 2 for answering the Update message 2. The Update OK message 2 carries audio sendrecv video recvonly local none, and local none is used to inform the S-CSCF that the audio port and video port of the calling terminal are not currently ready.
[0223] Specifically, the direction attribute of the audio media line in the SDP of the Update OK message 2 is sendrecv, and the direction attribute of the video media line is recvonly. At the same time, the Update OK message 2 also carries local none, indicating that the audio port and video port of the current calling terminal are not yet ready.
[0224] It should be understood that after the calling terminal replies to the S-CSCF with the Update OK message 2, the state of the video port of the calling terminal is updated to the receive-only state, and the preparation work related to the audio port and video port is performed. After being ready, the following step S117 is executed.
[0225] S115. The S-CSCF updates the state of other ports used to interact with the called terminal on the network side and sends an Update message 3 to the called terminal. The Update message 3 is used to notify the network side that the state of the ports for other updated data has been updated.
[0226] Other ports refer to ports for other data except for the color ringback media data.
[0227] S116. After the called terminal receives Update message 3, it synchronously updates the status of the corresponding port on the called terminal side and sends an Update OK message 3 for answering Update message 3 to the S-CSCF.
[0228] S117. The calling terminal sends an Update message 4 to the S-CSCF. The Update message 4 carries audio sendrecvvideo recvonly local sendrecv to inform the S-CSCF that the audio receiving port and video receiving port on the calling terminal side are ready for sending and receiving.
[0229] Specifically, the local sendrecv carried in the Update message 4 indicates that the local audio port and video port are ready for sending and receiving audio and video.
[0230] S118. After the S-CSCF receives the Update message 4, it sends an Update OK message 4 for answering the Update message 4 to the calling terminal.
[0231] It can be understood that the processes shown in the above steps S111 to S114, as well as steps S117 and S118, are also referred to as the calling terminal negotiating the ringback tone media with the network.
[0232] S119. The called terminal rings (Ringing) and sends a Ringing message to the S-CSCF to indicate that the called terminal is ringing.
[0233] Optionally, the format of the Ringing message can be IMS_SIP_INVITE / RINGING.
[0234] S120. After the S-CSCF receives the Ringing message, it forwards the Ringing message to the calling terminal.
[0235] S121. The S-CSCF forwards the Ringing message to the ringback tone platform.
[0236] S122. After the ringback tone platform receives the Ringing message, it replies with a Ringing response message for answering the Ringing message. The Ringing response message carries the parameters of the color ringing media.
[0237] The Ringing response message indicates that the Ringing message has been received.
[0238] Specifically, the SDP in the Ringing response message carries the A_cat parameter, that is, it carries the parameters of the color ringing media.
[0239] After receiving the Ringing response message, the S-CSCF sends an Update message 5 (also referred to as the first Update message in this document) to the called terminal, notifying the called terminal to prepare to receive the color ringback media data packet (hereinafter referred to as the color ringback packet, or the color ringback message).
[0240] Specifically, both the audio and video media lines in the Update message 5 carry the parameter a = content: g.3gpp.crs, indicating that the color ringback audio and video are ready.
[0241] After receiving the Update message 5, the called terminal starts a timer and sends an Update OK message 5 to the S-CSCF to respond to the Update message 5.
[0242] Optionally, the timer can be a Pqos timer, and the duration of the timer can be, for example, 2S, so it can also be called a 2S timer.
[0243] The called terminal updates the status of its local (i.e., the called terminal) audio port to a state where it can send and receive, updates the status of its local video port to a state of only receiving, and sends an Update message 6 (also referred to as the second Update message in this document) to the S-CSCF. The Update message 6 carries information indicating that the status of the audio port of the called terminal has been updated to a state where it can send and receive, and the status of the video port has been updated to a state of only receiving (also referred to as the first indication information in this document).
[0244] Specifically, the Update message 6 can carry audio sendrecv video recvonly. Audiosendrecv indicates that the status of the audio port is a state where it can send and receive, and video recvonly indicates that the status of the video port is a state of only receiving.
[0245] Specifically, in the SDP of the Update message 5, the direction attribute of the audio media line is sendrecv, indicating that the audio stream direction is not restricted; the direction attribute of the video media line is recvonly, indicating that only the video stream is received.
[0246] Generally, in step S125, after the S-CSCF receives Update message 6, it will send an Update OK message 6 to the called terminal to respond to Update message 6. After that, the S-CSCF obtains the color ring vibration package from the color ring platform and sends it to the called terminal. However, the inventor found that in some cases, due to the abnormal functions related to color ring vibration of the S-CSCF and / or the color ring platform (i.e., the network side), the color ring vibration package still cannot be sent until the timer in the called terminal times out. Then, according to the requirements for handling color ring vibration in the 5G mobile phone product white paper issued by the above-mentioned communication operator, when the color ring vibration media is not sent after the timer times out, the video port needs to be closed and the color ring vibration needs to be turned off. Therefore, in this case, it is possible that after step S125, before the S-CSCF has time to send the Update OK message 6 to the called terminal, it receives the Update message 7 sent by the terminal device to turn off the color ring vibration, that is, step S126 is executed after S125.
[0247] S126. If the network still does not send the color ring vibration package until the timer of the called terminal times out, the called terminal sends an Update message 7 (also called the third Update message in this article) to the S-CSCF to turn off the color ring vibration. This Update message 7 carries information indicating that the video port (video port) number of the called terminal has been updated to 0 (also called the second indication information in this article).
[0248] Specifically, if the called terminal determines that the timer times out and the network still does not send the color ring vibration package, it sets the video port number of the called terminal to 0 and sends an Update message 7 to the S-CSCF. The Update message 7 carries audio sendrecv video0, indicating that the status of the audio port is transceivable and the video port has been closed.
[0249] As a specific implementation, the direction attribute of the audio media line in the SDP of the Update message 7 is sendrecv, indicating that the audio media is transceivable. The direction attribute set in the video media line is 0, indicating that the video port is closed and the video color ring vibration audio and video is stopped from playing, that is, the color ring vibration is turned off.
[0250] As in step S125 above, before sending the Update message 7, the called terminal has already sent an Update message (i.e., Update message 6) to the S-CSCF. When the two Update messages (i.e., the second Update message and the third Update message) are sent relatively close to each other, the network status maintenance is abnormal. The abnormal network status maintenance will cause the subsequent calling terminal and the called terminal to be unable to establish a session normally, as described in the following.
[0251] After the S-CSCF receives Update message 7, it sends Update message 8 to the ringback tone platform, notifying the ringback tone platform to close video port 2#.
[0252] S128. After the ringback tone platform receives Update message 8, it closes video port 2# and replies to the S-CSCF with Update OK message 8 for answering Update message 8.
[0253] S129. The S-CSCF replies to the called terminal with Update OK message 6 for answering Update message 6 (sent by the called terminal).
[0254] It can be understood that the processes shown in the above steps S123 to S125 and S129 are also referred to as the called terminal negotiating the color ringback media with the network. The successful negotiation of the color ringback media is characterized by the completion of the execution of step S129. In addition, after sending an Update message and receiving an OK message for answering the Update message, it is called the completion of the negotiation of the Update message.
[0255] S130. The S-CSCF sends Update OK message 7 to the called terminal for answering Update message 7 (sent by the called terminal).
[0256] S131. In response to the called terminal user clicking the answer button (i.e., the called picks up the phone), the called terminal sends INVITE OK message 1 to the S-CSCF. INVITE OK message 1 indicates that the called terminal has answered the call (i.e., the called picks up the phone).
[0257] Optionally, the format of the INVITE OK message can be IMS_SIP_INVITE / OK.
[0258] S132. After the S-CSCF receives INVITE OK message 1 sent by the called terminal indicating that the called terminal has answered the call, it closes video port 1# and sends Update message 9 to the calling terminal. The information indicating that the video port number of 1# has been set to 0 (such as Figure 9 the shown video 0) is carried in Update message 9 to turn off the ringback tone on the calling terminal side.
[0259] Specifically, the direction attribute of the video media line in the SDP of Update message 9 is set to 0, indicating to close the video port and stop playing the ringback tone audio and video, that is, to turn off the ringback tone.
[0260] After the calling terminal receives Update message 9, it closes the video port of the calling terminal and replies to the S-CSCF with an Update OK message 9 for acknowledging Update message 9. The Update OK message 9 carries "video 0", indicating that the video port of the calling terminal has been closed.
[0261] The direction attribute of the video media line in the SDP of the Update OK message 9 is set to 0.
[0262] S134. Additionally, after the S-CSCF receives an INVITE OK message 1 sent by the called terminal indicating that the called terminal has answered the call, it forwards the INVITE OK message 1 to the ringback tone platform.
[0263] After the ringback tone platform receives the INVITE OK message 1, it replies to the S-CSCF with an ACK (ACKnowledge Character) message 1 for acknowledging the INVITE OK message 1.
[0264] Optionally, the format of the ACK message 1 can be IMS_SIP_ACK / INFORMAL_RESPONSE.
[0265] After the S-CSCF receives the ACK message 1, it forwards the ACK message 1 to the called terminal.
[0266] Generally, after the ringback tone platform replies to the S-CSCF with the ACK message 1, it sends an INVITE message (denoted as INVITE message 3) for initiating a call session request again to the S-CSCF. After the S-CSCF receives the INVITE message 3, it forwards the INVITE message 3 to the called terminal, and the called terminal replies with an INVITE OK message 3 for acknowledging the INVITE message 3 to connect the call. Moreover, the S-CSCF sends an OK message (referred to as INVITE OK message 2, and the format can be IMS_SIP_INVITE / OK) indicating that the called party has answered to the calling terminal, and the calling terminal replies with an ACK message (referred to as ACK message 2) for acknowledging the INVITE OK message 2. After these steps are executed, the call can be connected normally.
[0267] However, as described in step S126 above, since the two Update messages sent by the called terminal are sent in a relatively short interval, the S-CSCF and / or the ringback tone platform (network side) do not have enough time to process the previous Update message before processing the next Update message, but need to process the two Update messages simultaneously, causing chaos on the network side, resulting in an exception, and causing at least one of the following situations to occur: 1) The ringback tone platform fails to successfully send the INVITE message 3 for initiating a call session request again to the S-CSCF, resulting in the inability to execute the subsequent process; 2) The S-CSCF fails to successfully forward the INVITE message 3 (IMS_SIP_INVITE) to the called terminal, resulting in the inability to execute the subsequent process. The occurrence of any one of these two situations will cause the session between the calling terminal and the called terminal not to be successfully established, and further cause the calling terminal to see that the call is not connected, and the call will be automatically hung up after a period of time.
[0268] The above has described the reason why the call cannot be connected in the scenario where the ringback tone packet fails to be normally sent when the timer times out and the user answers the call after the timer times out. In some other embodiments, when the ringback tone packet is normally sent before the timer times out and the user answers the call before the timer times out, the phenomenon that the calling terminal's call is not connected and the call is automatically hung up after a period of time may also occur. This is because, although the ringback tone packet is normally sent, according to the requirements for handling ringback tones in the 5G mobile phone product white paper issued by the communication operator, after the called party picks up the phone, the video media line in the SDP can be set to 0 by sending an Update message to turn off the ringback tone. Then, if an Update message for turning off the ringback tone is sent, if the previous Update (such as the Update message 6 for notifying the update of the audio and video port status in step S125) has not been answered, there will also be a situation where the two Update messages are sent in a relatively short interval, resulting in abnormal network status maintenance, and finally resulting in the inability to successfully establish a session between the calling terminal and the called terminal, and then the calling terminal will see that the call is not connected and the call will be automatically hung up after a period of time.
[0269] Of course, in some other embodiments, there may be other scenarios that cause the calling terminal to see that the call is not connected and the call is automatically hung up after a period of time, which will not be listed one by one here.
[0270] Based on the above research and analysis, an embodiment of the present application proposes a method for a call. For the scenario where the color ringtone packet has not been sent until the timer times out, an Update message for closing the color ringtone is not sent, or an Update message for closing the color ringtone is sent after the negotiation of the previous Update message is completed, so as to prevent the two Update messages from being too close to each other, prevent the network side from receiving the next Update before the negotiation of the previous Update message is completed, causing the network side to be too late to process the previous Update message before processing the next Update message, and need to process the two Update messages simultaneously, preventing abnormal network status maintenance, and further preventing abnormal calls, which can improve the call success rate and user experience. For the scenario where "the called party picks up the call before the timer times out", or, "the color ringtone packet is normally sent before the timer times out, and the called party picks up the call after the timer times out", when the called party picks up the call, it is determined whether the negotiation of the previous Update message is completed. If not, the video media line of the SDP in the response INVITE OK message is set to 0 to close the video port and close the color ringtone. In this way, not only the color ringtone is closed according to the processing requirements of the color ringtone in the 5G mobile phone product white paper published by the communication operator, but also, since the types of the INVITE OK message and the Update message are different, even if the sending time intervals of these two messages are close, it will not cause confusion in network side processing or abnormal network status maintenance on the network side, thus being able to prevent abnormal calls and improve the call success rate and user experience. If the negotiation of the previous Update message is completed when the called party picks up the call, an Update message for closing the color ringtone is sent. In this case, the network side can process the two Update messages one by one, and there will be no situation where the two Update messages are processed simultaneously, thus not causing processing disorder and not leading to abnormal network status maintenance, and further preventing abnormal calls, which can improve the call success rate and user experience.
[0271] The method provided by the embodiment of the present application will be described in detail below with reference to the accompanying drawings. In the method provided by the embodiment of the present application, the called terminal and the calling terminal may be terminals with the structures shown above Figure 4 and Figure 5 . The step processes related to the called terminal and the calling terminal may be executed by the IMS module in the Modem in the terminal, which will not be elaborated below.
[0272] Embodiment Three:
[0273] This embodiment relates to the scenario of "the network still has not sent the color ringing packet until the timer times out". In this scenario, there are two cases: 1) The user answers the call before the timer times out, that is, the called party picks up the phone before the timer times out; 2) The user answers the call after the timer times out, that is, the called party picks up the phone after the timer times out. This embodiment is applicable to both cases. Below, mainly taking case 2), "the called party picks up the phone after the timer times out" as an example for description. It can be understood that for case 1), the execution process is similar to the following process. The difference lies in that the timing of the called party picking up the phone is different, and the timing of the relevant processes after the called party picks up the phone is different, which will not be introduced in detail here.
[0274] As Figure 11 shown, the method for call provided by this embodiment includes:
[0275] S101 to S122, and the following steps. Among them, for the specific implementation of steps S101 to S122, refer to the above Figure 9 , which will not be elaborated here.
[0276] S123. After receiving the Ringing response message, the S-CSCF sends an Update message 5 (also referred to as the first Update message in this article) to the called terminal, notifying the called terminal to prepare to receive the color ringing packet.
[0277] S124. After receiving the Update message 5, the called terminal starts a timer (such as a 2S Pqos timer), and sends an Update OK message 5 for answering the Update message 5 to the S-CSCF.
[0278] S125. The called terminal updates the status of its own (i.e., the called terminal) audio port to a state of being able to send and receive, updates the status of its own video port to a state of only receiving, and sends an Update message 6 (also referred to as the second Update message in this article) to the S-CSCF. The Update message 6 carries information indicating that the status of the audio port of the called terminal has been updated to a state of being able to send and receive, and the status of the video port has been updated to a state of only receiving (also referred to as the first indication information in this article).
[0279] Steps S124 and S125 are the same as those in the above Figure 9 shown embodiment, which will not be elaborated here.
[0280] S201. The called terminal determines that until the timer of the called terminal (such as 2s) times out, the network still has not sent the color ringing packet, and the called terminal has not received an Update OK message 6 for answering the Update message 6. In this case, the called terminal does not send an Update message 7 (also referred to as the third Update message in this article) for closing the color ringing.
[0281] It is understandable that when the timer of the called terminal (such as a 2S timer) times out, the called terminal can determine whether it has received the color ringback packet and whether it has received the response message from the network for the previous Update message (i.e., Update message 6) (also referred to as the reply message, OK message, etc., i.e., Update OK message 6). If the network still has not sent the color ringback packet and the called terminal has not received the response message from the network for the previous Update message 6 (also referred to as the second Update message in this article) sent by the called terminal (also referred to as the reply message, OK message, etc., i.e., Update OK message 6), then the called terminal does not send the Update message 7 (also referred to as the third Update message in this article) for closing the color ringback. If the network still has not sent the color ringback packet, but the called terminal has already received the response message from the network for the previous Update message 6 sent by the called terminal, then the called terminal may not send the Update message 7 for closing the color ringback to the network side.
[0282] It is understandable that if the called terminal does not send the Update message 7 for closing the color ringback, the S-CSCF will not reply to the called terminal with the Update OK message 7 for answering the Update message 7, and the S-CSCF will not send the Update message 8 to the ringback platform to notify the ringback platform to close the video port, and the ringback platform will not reply to the S-CSCF with the Update OK message 8 for answering the Update message 8. That is to say, different from the above embodiments, in this embodiment, after step S125, steps S126 to S128 and S130 are not executed.
[0283] After step S201, step S129 is executed, and after step S129, step S131 is executed.
[0284] S129. The S-CSCF replies to the called terminal with the Update OK message 6 for answering the Update message 6 (sent by the called terminal).
[0285] S131. In response to the user clicking the answer button on the called terminal (i.e., the called party goes off-hook), the called terminal sends an INVITE OK message 1 (IMS_SIP_INVITE / OK) to the S-CSCF, and the INVITE OK message 1 indicates that the called terminal has answered the call (i.e., the called party goes off-hook).
[0286] S132. After receiving the INVITE OK message 1 sent by the called terminal, which indicates that the called terminal has answered the call, the S-CSCF closes the 1# video port and sends an Update message 9 to the calling terminal. The Update message 9 carries information indicating that the 1# video port number has been set to 0 (such as Figure 11The video shown (video 0) indicates turning off the ringback tone on the calling terminal side.
[0287] S133. After the calling terminal receives the Update message 9, it closes the video port of the calling terminal and replies to the S-CSCF with an Update OK message 9 for answering the Update message 9. The Update OK message 9 carries video 0, indicating that the video port of the calling terminal has been closed.
[0288] S134. The S-CSCF receives the INVITE OK message 1 (IMS_SIP_INVITE / OK) indicating that the called terminal has answered the call.
[0289] (IMS_SIP_INVITE / OK) and then forwards the INVITE OK message 1 to the ringback tone platform.
[0290] S135. After the ringback tone platform receives the INVITE OK message 1, it replies to the S-CSCF with an ACK message 1 for answering the INVITE OK message 1.
[0291] S136. The S-CSCF forwards the ACK message 1 to the called terminal.
[0292] The above steps S129, S131 to S136 are the same as those in the Figure 9 illustrated embodiment and will not be elaborated further.
[0293] It should be noted that the execution order of the above steps S132 to S136 is not limited in any way. The order shown in the figure is S134, S132, S135, S133, S136. In actual applications, it may also be other orders. For example, S132 can also be executed after S134, and S133 can also be executed before the S135 step, etc. The same is true for other steps in this application and steps in other embodiments of this application. According to different actual requirements, the execution order of the steps can be different.
[0294] S202. The ringback tone platform sends an INVITE message 3 (IMS_SIP_INVITE) to the S-CSCF to initiate a call session request again.
[0295] S203. After the S-CSCF receives the INVITE message 3, it forwards the INVITE message 3 to the called terminal.
[0296] S204. After the called terminal receives the INVITE message 3, it replies to the S-CSCF with an INVITE OK message 3 for answering the INVITE message 3.
[0297] S205. The S-CSCF sends an INVITE OK message 2 indicating that the called party has answered to the calling terminal.
[0298] (IMS_SIP_INVITE / OK).
[0299] S206. After the calling terminal receives the INVITE OK message 2, it replies to the S-CSCF with an ACK message 2 for answering the INVITE OK message 2. After that, the call is normally connected.
[0300] In this embodiment, since the network still does not send the color ringback packet to the called terminal when the timer times out, it is highly probable that the network will not send the color ringback packet subsequently, and the called terminal will not play the color ringback. Therefore, in this case, not closing the color ringback can also achieve the effect that the called terminal does not play the color ringback. Thus, the Update message 7 for closing the color ringback does not need to be sent, and after the terminal goes off-hook, the Update message 7 for closing the color ringback does not need to be sent either. In this way, on the one hand, it will not cause the sending time intervals of the two Update messages to be relatively close (and thus the receiving times of the two Update messages are also relatively close), and it will not cause the situation that the network side receives the next Update message before the negotiation of the previous Update message is completed, and it will not lead to the network side not having enough time to process the previous Update message first and then process the next Update message and thus needing to process the two Update messages simultaneously. Therefore, it will not lead to abnormal network status maintenance, nor will it cause the network to be unable to initiate an INVITE call session request again. So, the calling terminal and the called terminal can establish a session normally, and the call between them can be connected normally, solving the problem that the calling terminal shows that the call is not connected and the call is automatically hung up after a period of time, improving the call success rate, and thus improving the user experience. On the other hand, by not sending the Update message 7 for closing the color ringback, there is no need to interact with the related messages for closing the video port between the subsequent S-CSCF, the ringback platform, and the calling terminal, simplifying the process and improving the session creation efficiency.
[0301] Optionally, as another possible implementation, when the timer expires and the called terminal still has not received the color ringback packet sent by the network side, but the called terminal receives the Update OK message 6 for responding to the Update message 6, the called terminal may also not send the Update message 7 for closing the color ringback. That is to say, when the timer expires, regardless of whether the called terminal receives the Update OK message 6 for responding to the Update message 6, the called terminal does not send the Update message 7 for closing the color ringback. The above step S201 may also be replaced by: The called terminal determines that until the timer (e.g., 2s) of the called terminal expires and the network still has not sent the color ringback packet. In this case, the called terminal does not send the Update message 7 for closing the color ringback. In this way, the called terminal does not need to pay attention to whether it receives the Update OK message 6 for responding to the Update message 6, simplifies the process execution, and improves the session establishment efficiency.
[0302] It should be noted that in the third embodiment, the operation of closing the color ringback is not performed. Therefore, the video port of the called terminal has not been closed yet. Therefore, when the called terminal answers the call in an audio manner, that is, when the called audio goes off-hook, the operation of closing the color ringback can be performed. Figure 10 and Figure 11 are both shown with the called audio going off-hook.
[0303] Embodiment 4:
[0304] This embodiment relates to the scenario of "until the timer expires and the network still has not sent the color ringback packet". This embodiment continues to use case 2), "the called party goes off-hook after the timer expires" as an example for description.
[0305] Exemplarily, Figure 12 is a schematic flowchart of a method for a call provided by another example embodiment of the present application. As Figure 12 shown, in this embodiment, on the basis of the above third embodiment, after step S129 and before step S131, the following steps are performed:
[0306] S301. After determining that the called terminal has received the Update OK message 6, the called terminal sends an Update message 7 for closing the color ringback (also referred to as the third Update message in this article) to the S-CSCF. This Update message 7 carries information indicating that the video port number of the called terminal (video port) has been updated to 0 (also referred to as the second indication information in this article, such as Figure 12 shown as audio sendrecv video 0).
[0307] After the S-CSCF receives Update message 7, it sends Update message 8 to the ringback tone platform, notifying the ringback tone platform to close video port 2#.
[0308] S128: After the ringback tone platform receives Update message 8, it closes video port 2# and sends an Update OK message 8 for answering Update message 8 to the S-CSCF.
[0309] S130: The S-CSCF sends an Update OK message 7 for answering Update message 7 (sent by the called terminal) to the called terminal.
[0310] Steps S127, S128, and S130 are the same as Figure 9 the embodiments shown and will not be elaborated here.
[0311] The remaining steps in this embodiment are the same as those in Embodiment 3 and will not be further described. It can be understood that for the sake of brevity, Figure 12 steps S101 to S118 are not shown in detail herein, and these steps can be referred to Figure 9 or Figure 11 .
[0312] In this embodiment, since in step 201, it has been determined that no ringback tone packet has been received when the timer times out, and no Update OK message 6 for answering Update message 6 has been received. Then, it is possible to continue waiting. After receiving the Update OK message 6 for answering Update message 6, the called terminal then sends an Update message 7 for closing the ringback tone to the S-CSCF. In this way, on the one hand, when the network side receives Update message 7, the Update OK message 6 has been negotiated, and the network side does not need to process two Update messages simultaneously, so it will not cause chaos, and thus will not cause abnormal network status maintenance. Subsequently, the network side can normally initiate an INVITE call session request, and the call can be normally connected, improving the success rate of call connection between the calling terminal and the called terminal and enhancing the user experience. On the other hand, closing the ringback tone through Update message 7 fully ensures that the called terminal will no longer receive ringback tone packets and will not play the ringback tone, meeting the requirements for handling the ringback tone in the 5G mobile phone product white paper released by the communication operator and improving the stability and reliability of subsequent interactions.
[0313] It should be noted that in Embodiment 4, after the 2S timer times out and after determining the Update OK message 6, the video port of the called terminal is closed. Therefore, whether the called terminal picks up the audio or video, there is no need to close the ringback tone anymore.
[0314] Embodiment 5:
[0315] This embodiment relates to the scenarios of "the called party answers the call before the timer expires" and "the network normally sends a color ringback packet before the timer expires and the called party answers the call after the timer expires". The method in this embodiment is applicable to both scenarios.
[0316] Among them, in the scenario of "the timer has not expired and the called party answers the call", there are two cases: 1) The network normally sends a color ringback packet before the timer expires; 2) The network does not send a color ringback packet before the timer expires. Taking the 2S timer as an example, in the scenario of "the called party answers the call before the timer expires", there are two cases: 1) Within 2S after the timer starts, the network normally sends a color ringback packet and the called party answers the call within 2S after the timer starts; 2) No color ringback packet is sent within 2S after the timer starts and the called party answers the call within 2S after the timer starts. The method in this embodiment is applicable to both of these cases.
[0317] Continuing to take the 2S timer as an example, the scenario of "the network sends a color ringback packet before the timer expires and the called party answers the call after the timer expires" is also: within 2S after the timer starts, the network normally sends a color ringback packet, and after 2S (such as 3S, 6S, etc.) after the timer starts, the called party answers the call.
[0318] For the convenience of understanding, the following will all be described taking the 2S timer as an example.
[0319] It can be understood that when the called party answers the call before the 2S timer expires, at this time, regardless of whether the color ringback packet is received normally, the video port of the called terminal is not closed, because according to the requirements for handling color ringback in the 5G mobile phone product white paper released by the communication operator, only when the timer expires, it is judged whether the color ringback packet is received and then a decision is made on whether to close the video port. For the scenario where the network normally sends a color ringback packet before the timer expires and the called party answers the call after the timer expires, the normal sending of the color ringback packet does not close the video port. Therefore, at this time, the video port is also not closed. So, in these two scenarios, the video port is not closed. In these two scenarios, if the called terminal selects the audio call mode to answer the call, that is, the called party's audio answers the call, it meets the requirement of closing the color ringback in the above-mentioned 5G mobile phone product white paper released by the communication operator, and the color ringback needs to be closed.
[0320] In this embodiment, considering that when the called party answers the call, the previous Update may not have been negotiated yet. Therefore, when the called party answers the call, the called terminal does not temporarily send an Update to close the color ringback, but judges whether the previous Update has been negotiated. If it has been negotiated, it sends an Update to the network to close the color ringback; if it has not been negotiated, in the 200OK message (such as the INVITE OK message 1 shown in S401 in Figure 13 ), which is used to indicate that the called terminal has answered the call and is sent to the network, the SDP video media line is set to 0 (such as Figure 13The audio sendrecv video shown in S401 (0); if the previous Update negotiation is completed, the color ringing tone is turned off through the Update message.
[0321] Specifically, when the user clicks the answer button on the called terminal, if the called terminal has not received the response message (also called the response message, that is, the Update OK message 6) of the previous Update message (that is, Update message 6, also called the second Update message in this article) sent by the network to the called terminal, the called terminal does not send the Update message 7 (also called the third Update message in this article) for turning off the color ringing tone, but directly sends the INVITE OK message 1 with the SDP video media line set to 0. If the called terminal has received the response message of the previous Update message sent by the network to the called terminal, the called terminal sends the Update message for turning off the color ringing tone.
[0322] First, the situation where the previous Update is not negotiated successfully when the called party answers the call will be described below.
[0323] Exemplarily, Figure 13 is a schematic flow diagram of another method for a call provided by an embodiment of the present application. Figure 13 Taking "the called party picks up the phone before the 2S timer times out" as an example for description, Figure 13 shows the situation where the previous Update message is not negotiated successfully before the called party answers the call. It can be understood that for the situation of "the called party picks up the phone after the 2S timer times out", it is similar to the following process. The difference lies in the timing of the called party picking up the phone and the execution timing of the relevant processes after the called party picks up the phone, which will not be introduced in detail here. In addition, if the called terminal receives the color ringing tone packet before the 2S timer times out, the called terminal can terminate the timing of the 2S timer in advance. If the called terminal still has not received the color ringing tone packet when the 2S timer times out, according to the requirements for handling the color ringing tone in the 5G mobile phone product white paper released by the communication operator, the 2S timer triggers the closing of the color ringing tone packet. However, in this embodiment, since the called party picks up the phone before the 2S timer times out, the color ringing tone is triggered to be turned off according to the following process, so it is no longer necessary for the 2S timer to trigger the closing of the color ringing tone.
[0324] As Figure 13 shown, the method includes:
[0325] S101 to S122, and the following steps. Among them, the specific implementation of steps S101 to S122 can be referred to the above Figure 9 , which will not be elaborated here.
[0326] S123. After receiving the Ringing response message, the S-CSCF sends Update5 to the called terminal to notify the called terminal to prepare to receive the color ringing tone packet.
[0327] S124. After the called terminal receives Update message 5, it starts a timer (such as a 2S Pqos timer) and replies to the S-CSCF with an Update OK message 5 for answering Update message 5.
[0328] S125. The called terminal updates the status of its own (i.e., the called terminal's) audio port to a state where it can send and receive, updates the status of its video port to a state of only receiving, and sends an Update6 to the S-CSCF. The Update message 6 carries information indicating that the status of the audio port of the called terminal has been updated to a state where it can send and receive, and the status of the video port has been updated to a state of only receiving (also referred to as the first indication information in this article).
[0329] It should be noted that in this embodiment, after step S125 is executed, whether the network normally sends a color ringing packet within 2S after the timer is started or does not send a color ringing packet, if the user clicks to answer on the called terminal within 2S after the timer is started, or if the network normally sends a color ringing packet within 2S after the timer is started and the user clicks to answer on the called terminal after 2S (such as at the 6S) after the timer is started, the called terminal will not temporarily send an Update message for closing the color ringing to the network, as Figure 13 shown.
[0330] S401. In response to the user clicking the audio answer button on the called terminal (i.e., the called audio goes off-hook), the called terminal determines whether it has received an Update OK message 6 for answering Update message 6.
[0331] S402a. If the called terminal determines that it has not received the Update OK message 6, it closes the video port of the called terminal and sends an INVITE OK message 4 (IMS_SIP_INVITE / OK) to the S-CSCF. The INVITE OK message 4 is used to indicate that the called terminal has answered the call. In the INVITE OK message 4, the SDP video media line is set to 0 (as Figure 13 shown, the INVITE OK message 4 carries audio sendrecv video 0).
[0332] Under normal circumstances, when the called terminal goes off-hook for audio, the called terminal directly sends an INVITE OK message with the SDP video media line set to 0, or directly sends an Update message to the S-CSCF to turn off the color ringback. However, when sending an Update message to turn off the color ringback, it is possible that the previous Update message has not been negotiated yet, resulting in a short time interval between the sending times of the two Update messages (and thus a short time interval between the reception times of the two Update messages), causing the network side to be unable to process the previous Update message before processing the next one, thereby causing processing disorders and network anomalies. In this embodiment, when the called terminal determines that it has not received the Update OK message 6, it does not send an Update message to turn off the color ringback (as shown in Figure 13 ), but determines whether it has received the response message of the previous Update message, that is, determines whether the previous Update message has been negotiated. If not, it sends an INVITE OK (IMS_SIP_INVITE / OK) message with the SDP video media line set to 0. The INVITE OK message and the Update message are of different types. Even if the time interval between the sending time of the INVITE OK message and the previous Update message is short, it will not cause abnormal network status maintenance. Subsequently, the network can normally initiate a call session request again, and the call can be connected normally.
[0333] S132. After receiving the INVITE OK message 4
[0334] (IMS_SIP_INVITE / OK) indicating that the called terminal has answered the call, the S-CSCF closes the 1# video port and sends an Update message 9 to the calling terminal. The Update message 9 carries information indicating that the 1# video port number has been set to 0 (such as Figure 13 shown as video 0) to indicate turning off the color ringback on the calling terminal side.
[0335] S133. After receiving the Update message 9, the calling terminal closes the video port of the calling terminal and sends an Update OK message 9 to the S-CSCF to respond to the Update message 9, indicating that the video port of the calling terminal has been closed.
[0336] S403. In addition, after receiving the INVITE OK message 4 (IMS_SIP_INVITE / OK) indicating that the called terminal has answered the call, the S-CSCF forwards the INVITE OK message 4 to the color ringback platform.
[0337] S404. After the ringback tone platform receives the INVITE OK message 4 with the SDP video media line set to 0, it closes the video port 2 and sends an ACK message 4 to the S-CSCF to respond to the INVITE OK message 4.
[0338] S405. The S-CSCF forwards the ACK message 4 to the called terminal.
[0339] S129. The S-CSCF sends an Update OK message 6 to the called terminal to respond to the Update message 6.
[0340] It should be noted that there is no limitation on the execution order of the above steps S132 to S133, steps S403 to S405, and step S129. The order shown in the figure is S403, S132, S404, S133, S129, S405. In actual applications, it may also be other orders. For example, S132 is executed after S404, and S129 is executed before step S403, etc.
[0341] S202. The ringback tone platform sends an INVITE message 3 (IMS_SIP_INVITE) to the S-CSCF to initiate a call session request again.
[0342] S203. After receiving the INVITE message 3, the S-CSCF forwards the INVITE message 3 to the called terminal.
[0343] S204. After receiving the INVITE message 3, the called terminal sends an INVITE OK message 3 to the S-CSCF to respond to the INVITE message 3.
[0344] S205. The S-CSCF sends an INVITE OK message 2 (IMS_SIP_INVITE / OK) indicating that the called terminal has answered the call to the calling terminal (i.e., UE#1).
[0345] S206. After receiving the INVITE OK message 2, the calling terminal sends an ACK message 2 to the S-CSCF to respond to the INVITE OK message 2. After that, the call is normally connected.
[0346] In this embodiment, in the scenarios of "the called party picks up the phone before the timer times out" and "the network normally sends a color ringback packet before the timer times out, and the called party picks up the phone after the timer times out", when the called terminal picks up the phone and it is determined that the previous Update has not been negotiated successfully, that is, the response message of the previous Update has not been received, instead of sending an Update message for closing the color ringback to the network, a 200 OK message with the SDP video media line set to 0 is directly sent. This not only achieves the purpose of closing the color ringback, but also, since the types of the INVITE OK message and the Update message are different, even if the sending time intervals of these two messages are relatively close, it will not cause confusion in network side processing, abnormal maintenance of the network state on the network side, or inability of the network to initiate an INVITE call session request again. Therefore, the calling terminal and the called terminal can establish a session normally, and the call between them can be connected normally, solving the problem that the calling terminal shows that the call is not connected and the call is automatically hung up after a period of time, and improving the user experience. In addition, by using the 200 OK message to set the SDP video media line to 0 to close the color ringback, the message negotiation process is simplified and the call session creation efficiency is improved.
[0347] The following describes the situation where the previous Update has been negotiated successfully when the called party answers the call.
[0348] Exemplarily, Figure 14 is a flowchart of a method for a call provided by another embodiment of the present application. Figure 14 Continuing with the example of "the called party picks up the phone after the 2S timer times out", Figure 14 shows the situation where the previous Update message has been negotiated successfully before the called party answers the call. As Figure 14 shown, the method includes:
[0349] S101 to S125, specifically refer to the above Figure 13 , which will not be elaborated here. Moreover, for the sake of brevity, Figure 14 steps S101 to S122 are not shown in detail. After step S125, step S129 is executed.
[0350] S129. The S-CSCF replies an Update OK message 6 to the called terminal for answering the Update message 6.
[0351] S401. In response to the user clicking the audio answer button on the called terminal (i.e., the called party's audio pick-up), the called terminal determines whether it has received the Update OK message 6 for answering the Update message 6.
[0352] S402b. When the called terminal determines that it has received the Update OK message 6, it sends an Update message 7 for closing the color ringtone to the S-CSCF. This Update message 7 carries information indicating that the video port number of the called terminal (video port) has been updated to 0 (also referred to as the second indication information in this article).
[0353] S127. After receiving the Update message 7, the S-CSCF sends an Update message 8 to the ringback tone platform to notify the ringback tone platform to close the 2# video port.
[0354] S128. After receiving the Update message 8, the ringback tone platform closes the 2# video port and sends an Update OK message 8 for responding to the Update message 8 to the S-CSCF.
[0355] S130. The S-CSCF sends an UpdateOK message 7 for responding to the Update message 7 (sent by the called terminal) to the called terminal.
[0356] S131. The called terminal sends an INVITE OK message 1 to the S-CSCF. The INVITE OK message 1 is used to indicate that the called terminal has answered the call.
[0357] It should be noted that the SDP video media line in the INVITE OK message 1 is not 0.
[0358] S132. After receiving the INVITE OK message 1 indicating that the called terminal has answered the call sent by the called terminal, the S-CSCF closes the 1# video port and sends an Update message 9 to the calling terminal. The Update message 9 carries information for updating the video port on the calling terminal side to 0 (such as Figure 14 video 0 as shown) to turn off the ringback tone on the calling terminal side.
[0359] S133. After receiving the Update message 9, the calling terminal closes the video port of the calling terminal and sends an Update OK message 9 for responding to the Update message 9 to the S-CSCF. The Update OK message 9 carries video 0, indicating that the video port of the calling terminal has been closed.
[0360] S134. In addition, after receiving the INVITE OK message 1 indicating that the called terminal has answered the call sent by the called terminal, the S-CSCF forwards the INVITE OK message 1 to the ringback tone platform.
[0361] After the ringback tone platform receives INVITE OK message 1, it replies to the S-CSCF with an ACK (ACKnowledge Character) message 1 for acknowledging INVITE OK message 1.
[0362] S136. The S-CSCF forwards ACK message 1 to the called terminal.
[0363] S202. The ringback tone platform sends INVITE message 3 (IMS_SIP_INVITE) to the S-CSCF to initiate a call session request again.
[0364] S203. After receiving INVITE message 3, the S-CSCF forwards INVITE message 3 to the called terminal.
[0365] S204. After receiving INVITE message 3, the called terminal replies to the S-CSCF with INVITE OK message 3 for acknowledging INVITE message 3.
[0366] S205. The S-CSCF sends INVITE OK message 2 (IMS_SIP_INVITE / OK) indicating that the called party has answered to the calling terminal.
[0367] (IMS_SIP_INVITE / OK).
[0368] S206. After receiving INVITE OK message 2, the calling terminal replies to the S-CSCF with ACK message 2 for acknowledging INVITE OK message 2. After that, the call is normally connected.
[0369] In this embodiment, in the scenarios of "the called party picks up the phone before the timer times out" and "the network normally sends a colorful ringing packet before the timer times out and the called party picks up the phone after the timer times out", when the called party picks up the phone, after determining that the response to the previous Update message has been received, an Update message for closing the colorful ringing is sent. This not only achieves the purpose of closing the colorful ringing, but also does not occur the situation that the next Update message is sent to the network side before the negotiation of the previous Update message is completed. The network side can process the Update messages one by one in an orderly manner, so it will not cause abnormal maintenance of the network status, nor will it cause the network to be unable to initiate an INVITE call session request again. Therefore, the calling terminal and the called terminal can normally establish a session, and the call between the two can be normally connected, solving the problem that the calling terminal shows that the call is not connected and the call is automatically hung up after a period of time, improving the success rate of call connection, and thus improving the user experience.
[0370] It should be noted that Figure 14In the illustrated embodiment, when the called party's audio goes off-hook and the called terminal has received the response message of the previous Update message, the color ringing is turned off by sending an Update message for turning off the color ringing. However, in some other embodiments, in this case, the color ringing can also be turned off by sending an INVITEOK message with the video media line in the SDP set to 0. This embodiment does not limit this.
[0371] The above has introduced in detail the examples of the method for calls provided by the embodiments of the present application. It can be understood that in order for the terminal to implement the above functions, it includes the corresponding hardware and / or software modules for executing each function. Those skilled in the art should easily realize that, combining the units and 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 certain function is executed in the way of hardware or computer software driving the 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 exceed the scope of the present application.
[0372] The embodiments of the present application can divide the functional modules of the terminal device according to the above method examples. For example, each function can be correspondingly divided into each functional module, such as a detection unit, a processing unit, a display unit, etc., or two or more functions can be integrated into one module. The above integrated module can be implemented in the form of hardware or in the form of a software functional module. It should be noted that the division of modules in the embodiments of the present application is illustrative, only a logical function division, and there may be other division methods in actual implementation.
[0373] It should be noted that all relevant contents of each step involved in the above method embodiment can be cited in the function description of the corresponding functional module, and will not be repeated here.
[0374] In addition, some embodiments of the present application provide a terminal, which includes: one or more processors and a memory; the memory is used to store computer program code, and the computer program code includes computer instructions. When the one or more processors execute the computer instructions, the terminal executes the above method for calls. The terminal involved in this embodiment can be a device with Figure 4 the structure shown.
[0375] Some embodiments of the present application provide a chip system, which is applied to a terminal. The chip system includes at least one processor and an interface. The interface is used to receive instructions and transmit them to at least one processor. The at least one processor runs the instructions to cause the terminal to execute the above-mentioned paging message processing method. Among them, the chip system can be a Modem or a System on Chip (Soc) including a Modem, and the above method can be implemented by a single Modem.
[0376] Embodiments of the present application also provide a computer-readable storage medium in which a computer program is stored. When the computer program is executed by a processor, the processor is caused to execute the method for calling in any of the above embodiments.
[0377] Embodiments of the present application also provide a computer program product. When the computer program product runs on a computer, the computer is caused to execute the above-related steps to implement the method for calling in the above embodiments.
[0378] In addition, embodiments of the present application also provide a device, which may specifically be a chip, a component or a module. The device may include a processor and a memory connected to each other. Among them, the memory is used to store computer-executable instructions. When the device runs, the processor may execute the computer-executable instructions stored in the memory to cause the chip to execute the method for calling in each of the above method embodiments.
[0379] Among them, the terminal, the chip system, the computer-readable storage medium, the computer program product or the device provided in this embodiment are all used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be elaborated here.
[0380] Through the description of the above embodiments, those skilled in the art can understand that for the convenience and simplicity of description, only the above division of each functional module is used as an example. In actual applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
[0381] In several embodiments provided by this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of devices or units can be in electrical, mechanical or other forms.
[0382] The units described as separate components may or may not be physically separated. The components displayed as units can be one physical unit or multiple physical units, that is, they can be located in one place, or they can be distributed to multiple different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0383] In addition, in each embodiment of this application, each functional unit can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
[0384] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiments of this application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to enable a device (which can be a single-chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the methods of the various embodiments of this application. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read only memory (ROM), random access memory (RAM), magnetic disks or optical discs that can store program codes.
[0385] The above content is only the specific implementation manner of this application, but the protection scope of this application is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in this application, and all should be covered by the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.
Claims
1. A method for a call, characterized in that, The method includes: After the called terminal sends a ringing message, receive a first Update message for notifying the called terminal to prepare to receive the color ringing media; After receiving the first Update message, the called terminal starts a timer; The called terminal sends a second Update message, and the second Update message is used to notify that the status of the video port of the called terminal has been updated to a receive-only status; In a first case, the called terminal does not send a third Update message for closing the color ringing; wherein, the first case includes: until the timer times out, the called terminal has not received the color ringing media.
2. The method according to claim 1, characterized in that, The first case further includes: until the timer times out, the called terminal has not received a response message to the second Update message.
3. The method according to claim 2, wherein The method further includes: After the timer times out and after receiving a response message to the second Update message, the called terminal sends the third Update message.
4. The method according to any one of claims 1 to 3, characterized in that, The method further includes: In a second case, the called terminal sends the third Update message; wherein, the second case includes: before the timer times out, the called terminal receives a response message to the second Update message, and until the timer times out, the called terminal has not received the color ringing media.
5. The method according to any one of claims 2 to 4, characterized in that, The response message to the second Update message is a 200OK message.
6. The method according to any one of claims 1-5, characterized in that The second Update message carries first indication information, and the first indication information characterizes that the status of the audio port of the called terminal has been updated to a send / receive state, and the status of the video port of the called terminal has been updated to a receive-only state.
7. The method according to claim 6, wherein The first indication information includes audio sendrecvvideo recvonly.
8. The method according to any one of claims 1-7, characterized in that, The third Update message carries second indication information, and the second indication information is used to characterize that the video port number of the called terminal has been updated to 0, indicating that the video port of the called terminal has been closed.
9. The method according to claim 8, wherein The second indication information includes audio sendrecvvideo0.
10. The method according to any one of claims 1-9, characterized in that, The timer is a Pqos timer.
11. The method according to any one of claims 1 to 10, characterized in that, The duration of the timer is 2 seconds.
12. The method according to any one of claims 1-11, characterized in that, The ringing message is a 180Ringing message.
13. The method according to any one of claims 1-12, characterized in that, The method further includes at least one of the following: The called terminal sends the ringing message to the network side; The called terminal receives the first Update message sent by the network side; The called terminal sends the second Update message to the network side; The called terminal does not send the third Update message to the network side; The network side includes a serving call session control function S-CSCF network element.
14. A method for a call, characterized in that, The method includes: After the called terminal sends a ringing message, receive a first Update message for notifying the called terminal to prepare to receive the color ringing media; After receiving the first Update message, the called terminal starts a timer; The called terminal sends a second Update message, which is used to notify that the status of the video port of the called terminal has been updated to the receive-only state; In a third case, the called terminal does not send a third Update message for closing the color ringtone; wherein, the third case includes: when the called terminal receives an operation of answering a call performed by a user on the called terminal, the called terminal has not received a response message of the second Update message.
15. The method according to claim 14, wherein The method further includes: In the third case, the called terminal sends a 200OK message for indicating that the called terminal has answered the call, and the 200OK message carries second indication information, where the second indication information is used to characterize that the video port number of the called terminal has been updated to 0, indicating that the video port of the called terminal has been closed.
16. The method according to claim 15, characterized in that, The second indication information includes audio sendrecvvideo0.
17. The method according to any one of claims 14-16, characterized in that, The method further includes: In a fourth case, the called terminal sends the third Update message; wherein, the fourth case includes: when the called terminal receives an operation of answering a call performed by a user on the called terminal, the called terminal has received a response message of the second Update message.
18. The method according to any one of claims 14 to 17, characterized in that, The situation that the called terminal receives an operation of answering a call performed by a user on the called terminal includes: Before the timer times out, the called terminal receives the color ringtone media, and after the timer times out, the called terminal receives an operation of answering a call performed by a user on the called terminal.
19. The method according to any one of claims 14-17, characterized in that, The situation that the called terminal receives an operation of answering a call performed by a user on the called terminal includes: Before the timer times out, the called terminal receives an operation of answering a call performed by a user on the called terminal.
20. The method according to any one of claims 14-19, characterized in that, The operation of answering the call is an operation of answering the call by means of an audio call.
21. The method according to any one of claims 14 - 20, characterized in that, The second Update message carries first indication information, where the first indication information is used to indicate that the status of the audio port of the called terminal has been updated to the send-receive state, and the status of the video port of the called terminal has been updated to the receive-only state.
22. The method according to claim 21, wherein The first indication information includes audio sendrecvvideo recvonly.
23. The method according to any one of claims 14-22, characterized in that, The third Update message carries second indication information, where the second indication information is used to characterize that the video port number of the called terminal has been updated to 0, indicating that the video port of the called terminal has been closed.
24. The method according to claim 23, wherein The second indication information includes audio sendrecvvideo0.
25. The method according to any one of claims 14-24, characterized in that, The timer is a Pqos timer.
26. The method according to any one of claims 14-25, characterized in that, The duration of the timer is 2 seconds.
27. The method according to any one of claims 14-26, characterized in that, The ringing message is a 180Ringing message.
28. The method according to any one of claims 14-27, characterized in that, The response message of the second Update message is a 200OK message.
29. The method according to any one of claims 14-28, characterized in that, The method further includes at least one of the following: The called terminal sends the ringing message to the network side; The called terminal receives the first Update message sent by the network side; The called terminal sends the second Update message to the network side; The called terminal does not send the third Update message to the network side; The network side includes a serving call session control function (S-CSCF) network element.
30. A terminal device, characterized in that, Comprising: a processor and a memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the terminal device executes the method according to any one of claims 1-29.
31. A chip system, characterized in that, Comprising at least one processor and a communication interface, the communication interface and the at least one processor are interconnected by a line, and the at least one processor is configured to run a computer program or instructions to execute the method according to any one of claims 1-29.