A call processing method, electronic device and storage medium
By detecting the 484 message in the mobile terminal and outputting prompt information, the problem of long waiting and repeated dialing caused by dialing the wrong phone number is solved, and the user experience and terminal performance are improved.
Patent Information
- Application Number
- CN202410560672.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-08
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-05-08
AI Technical Summary
When the mobile terminal dials the wrong phone number, the network changes domain from 5G new air interface to LTE or from LTE to CS, resulting in long waiting time for the user, poor user experience, and failure to promptly inform the user of the reason for the call failure, resulting in repeated dialing. Error numbers and performance loss.
Detect the dialing operation in the calling terminal to determine whether the 484 message is received. If it is received, it will determine that the number is wrong and the network format will not be changed. A prompt message will be output and the call will be ended to avoid redundant waiting and performance loss. The user will know that the call failed. reason.
Save user waiting time, improve user experience, reduce repeated dialing of wrong numbers, reduce terminal performance loss, and improve user experience.
Smart Images

Figure CN118138682B
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic technology, and in particular to a call processing method, an electronic device and a storage medium. Background Art
[0002] Currently, mobile terminals (such as mobile phones) have become indispensable tools in life and work, especially in daily communication between people. People can make calls and talk through mobile terminals, which brings great convenience to daily life.
[0003] After detecting the user's dialing operation, the mobile terminal (calling terminal) calls other terminal devices (called terminals) through the connected network. When the user dials an incorrect phone number and cannot connect to the called terminal, the network may send a 484 message to the calling terminal based on the Session Initialization Protocol (SIP). After receiving the 484 message, the calling terminal switches the connected network from 5G New Radio (NR) to Long Term Evolution (LTE), or from LTE to Circuit Switched Domain (CS), and tries to call the called terminal again. During this period, the user is always waiting to connect to the called terminal.
[0004] As the network switches from NR to LTE, or from LTE to CS, the entire calling process lasts a long time, causing the user to wait for a long time. In addition, the phone number dialed by the user is incorrect, and after a long wait, the called terminal cannot be connected, resulting in a poor user experience. Summary of the invention
[0005] This application provides a call processing method, electronic device and storage medium, which can improve user experience. The technical solution is as follows:
[0006] In the first aspect, an embodiment of the present application provides a call processing method, which is applied to a calling terminal, including: detecting an operation of a user dialing a first telephone number; in response to the user dialing the first telephone number, sending a call request to the network to which the calling terminal is connected; determining whether a 183 message sent by the network is received based on the Session Initiation Protocol SIP within a preset time; if the 183 message sent by the network is not received, determining whether a 484 message sent by the network is received within a preset time, the 484 message indicating that the first telephone number is incorrect; if the 484 message sent by the network is received, determining whether the first telephone number is an incorrect telephone number recorded by the calling terminal; if the first telephone number is an incorrect telephone number recorded by the calling terminal, no network format change is performed, and a first prompt message is output, the first prompt message indicating that the first telephone number is incorrect; after outputting the first prompt message, ending the call.
[0007] Based on the above technical solution, after the calling terminal sends a call request to the network, it receives a 484 message from the network, and then determines whether the first telephone number is an incorrect telephone number recorded by the calling terminal. If the first telephone number is an incorrect telephone number recorded by the calling terminal, the calling terminal does not change the network format, so that the user does not need to wait for the calling terminal to change the network format, avoiding the inability to connect to the called terminal after a long wait, which can save the user's time and improve the user experience. In addition, the application outputs the first prompt information before ending the call, so as to promptly and effectively inform the user that the first telephone number is incorrect. Therefore, after receiving the first prompt information, the user can know that the reason for the call failure is that the telephone number of the called terminal is incorrect, and can also avoid the user from repeatedly dialing the incorrect telephone number, reducing time waste, reducing unnecessary performance loss of the terminal, and improving the user experience.
[0008] In combination with the first aspect, in some implementations of the first aspect, the method further includes: in the case where the 484 message sent by the network is not received, determining whether other response messages other than the 183 message and the 484 message are received within a preset time; in the case where other response messages other than the 183 message and the 484 message are not received, determining whether the network status is normal; in the case where the network status is normal, determining whether the first telephone number is an incorrect telephone number recorded by the calling terminal; in the case where the first telephone number is an incorrect telephone number recorded by the calling terminal, not changing the network format, and outputting a first prompt message; after outputting the first prompt message, terminating the call. In this way, the situation where the network signal is poor, resulting in the calling terminal not receiving the response message sent by the network after the network sends the response message, can be screened out.
[0009] In combination with the first aspect, in some implementations of the first aspect, the method further includes: in the case where the 183 message sent by the network is not received, determining whether other answer messages other than the 183 message sent by the network are received; in the case where other answer messages other than the 183 message sent by the network are received, determining whether the other answer messages are 484 messages; in the case where the other answer messages are 484 messages, determining whether the first telephone number is an incorrect telephone number recorded by the calling terminal; in the case where the first telephone number is an incorrect telephone number recorded by the calling terminal, not changing the network format, and outputting a first prompt message, the first prompt message indicating that the first telephone number is incorrect; after outputting the first prompt message, ending the call. In the case where other answer messages other than the 183 message sent by the network are not received, determining whether the network status is normal; in the case where the network status is normal, determining whether the first telephone number is an incorrect telephone number recorded by the calling terminal; in the case where the first telephone number is an incorrect telephone number recorded by the calling terminal, not changing the network format, and outputting a prompt message indicating that the first telephone number is incorrect; after outputting the prompt message indicating that the first telephone number is incorrect, ending the call.
[0010] That is to say, after sending a call request to the network, the calling terminal can first determine whether it has received the 183 message sent by the network, and then determine whether it has received other response messages sent by the network except the 183 message. If there are no other response messages, the calling terminal can further determine the status of the network; if other response messages are received, and the other response messages are 484 messages, the calling terminal executes the corresponding process in this application; if other response messages are received but not 484 messages, that is, the other response messages are response messages other than 183 messages and 484 messages, the calling terminal executes the process corresponding to the other response messages.
[0011] In combination with the first aspect and the above implementation, in some implementations of the first aspect, determining whether the first telephone number is an incorrect telephone number recorded by the calling terminal includes: querying the error number list to determine whether the first telephone number is in the error number list; when the first telephone number is in the error number list, determining that the first telephone number is an incorrect telephone number recorded by the calling terminal. Wherein, the error number list can be pre-stored in a designated storage location of the calling terminal, so that the calling terminal can obtain the error number list from the designated storage location. If the first telephone number is in the error number list, it means that the first telephone number cannot be used to successfully call in any network, and there is no need to change the network format. If the first telephone number is not in the error number list, it is further determined whether the first telephone number can be successfully called in other networks. In other examples, the error number list can be generated when applying the call processing method provided in the embodiment of the present application, and after the error number list is generated, it is stored in the designated storage location of the calling terminal.
[0012] In combination with the first aspect and the above implementations, in some implementations of the first aspect, the above method further includes: if the first phone number is not in the error number list, determining whether to retry the call after the network standard changes; if the retry fails after the network standard changes, recording the first phone number in the error number list. In this way, the error number list can be updated and expanded.
[0013] In combination with the first aspect and the above implementations, in some implementations of the first aspect, the above method further includes: in the case of receiving a 183 message sent by the network, determining whether the 183 message indicates that the first telephone number is incorrect; and in the case of the 183 message indicating that the first telephone number is incorrect, recording the first telephone number in an error number list. In this way, the error number list can be updated and expanded.
[0014] In combination with the first aspect and the above-mentioned implementation, in some implementations of the first aspect, the above-mentioned method further includes: in the case of receiving the 183 message sent by the network, determining whether the second prompt information sent by the network is received; in the case of receiving the second prompt information sent by the network, outputting the second prompt information, the second prompt information indicating that the first telephone number is incorrect; or, in the case of not receiving the second prompt information sent by the network, outputting the third prompt information, the third prompt information is generated by the calling terminal, and the third prompt information also indicates that the first telephone number is incorrect. That is, after the network sends the 183 message indicating that the first telephone number is incorrect to the calling terminal, it can also send the second prompt information to the calling terminal to prompt the calling terminal of the reason for the failure of this call, so that the calling terminal can output the second prompt information. When the calling terminal does not receive the second prompt information due to network failure or other reasons, the calling terminal can output the third prompt information generated locally. In this way, regardless of whether the second prompt information is received or not, the user of the calling terminal can know the reason for the failure of this call.
[0015] In combination with the first aspect and the above implementation, in some implementations of the first aspect, the above method further includes: determining the correct telephone number corresponding to the first telephone number based on the first telephone number and the telephone number stored locally in the calling terminal; and prompting the user with the correct telephone number. In this way, after the user knows that the reason for the call failure is that the first telephone number is incorrect, the user can obtain the correct telephone number corresponding to the first telephone number in a timely manner, reducing the time and energy spent by the user in searching for the correct telephone number, which can improve the user experience.
[0016] In combination with the first aspect and the above-mentioned implementation manner, in some implementation manners of the first aspect, the 183 message or the 484 message includes a Reason header field, and the format of the Reason header field includes Reason: SIP; cause = cause value; text = reason value description, wherein the SIP field represents the SIP protocol, the cause field is the reason value, and the reason value corresponding to the SIP protocol is 484.
[0017] In combination with the first aspect and the above-mentioned implementation methods, in some implementation methods of the first aspect, the 183 message or the 484 message includes a Reason header field, and the format of the Reason header field includes Reason: Q.850; cause=cause value; text=cause value description; wherein, the Q.850 field represents the Q.850 protocol, the cause field is the cause value, and the cause value corresponding to the Q.850 protocol is 28.
[0018] When the first telephone number is incorrect, the 183 message may carry “Reason: Q.850; cause=28; text=“Invalid number format (address incomplete)”; or, may carry “Reason: Q.850; cause=28; text=“Invalid number format (address incomplete), SIP; cause=484; text=“Address incomplete”; or, may carry “Reason: SIP; cause=484; text=“Addressincomplete”.
[0019] When the 484 message indicates that the first telephone number is incorrect, it may carry “Reason: Q.850; cause=28; text=“Invalid number format (address incomplete)”; or, it may carry “Reason: Q.850; cause=28; text=“Invalid number format (address incomplete), SIP; cause=484; text=“Address incomplete”; or, it may carry “Reason: SIP; cause=484; text=“Addressincomplete”.
[0020] In combination with the first aspect and the above implementations, in some implementations of the first aspect, outputting the first prompt information includes: outputting the first prompt information in the form of a voice prompt. In this way, the user can know the reason for the call failure based on the voice prompt, which can improve the user experience.
[0021] In combination with the first aspect and the above implementations, in some implementations of the first aspect, outputting the first prompt information includes: displaying a dialing interface, wherein the dialing interface includes the first prompt information. In this way, the user can know the reason for the call failure based on the interface prompt, which can improve the user experience.
[0022] In a second aspect, an embodiment of the present application provides a call processing method, which is applied to a calling terminal, including: detecting an operation of a user dialing a second telephone number; in response to the operation of the user dialing the second telephone number, determining whether the second telephone number is an incorrect telephone number recorded by the calling terminal; if the second telephone number is an incorrect telephone number recorded by the calling terminal, outputting a fourth prompt message, the fourth prompt message indicating that the second telephone number is incorrect; after outputting the fourth prompt message, ending the call; or, if the second telephone number is not an incorrect telephone number recorded by the calling terminal, sending a call request to a network connected to the calling terminal; determining whether a 183 message sent by the network is received based on a session initiation protocol SIP within a preset time; if the 183 message sent by the network is not received, determining whether a 484 message sent by the network is received within a preset time, the 484 message indicating that the telephone number is incorrect; if the 484 message sent by the network is received, determining whether to retry the call after a network standard change occurs; if the retry after the network standard change fails, the second telephone number is recorded as an incorrect telephone number and a fourth prompt message is output.
[0023] Based on the above technical solution, the calling terminal can determine that the second telephone number is an incorrect telephone number recorded by the calling terminal before sending a call request to the network, and end the call. There is no need to send a call request to the network again, and there is no need to interact with the network, that is, there is no need to change the network standard when the telephone number is incorrect, which can save the user's waiting time and improve the user experience.
[0024] In a third aspect, an embodiment of the present application provides an electronic device, comprising: one or more processors; one or more memories; the memory stores one or more programs, and when the one or more programs are executed by the processor, the electronic device executes the method described in the first or second aspect above.
[0025] In a fourth aspect, an embodiment of the present application provides a device, which is included in an electronic device, and the device has the function of realizing the above-mentioned aspects and the behavior of the electronic device in the possible implementation methods of the above-mentioned aspects. The function can be implemented by hardware, or the corresponding software can be implemented by hardware. The hardware or software includes one or more modules or units corresponding to the above-mentioned functions. For example, a display module or unit, a detection module or unit, a processing module or unit, etc.
[0026] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enables the computer to execute the method described in the first aspect or the second aspect above.
[0027] In a sixth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the method described in the first aspect or the second aspect above.
[0028] The technical effects obtained by the third, fourth, fifth and sixth aspects are similar to the technical effects obtained by the corresponding technical means in the first or second aspects, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 A scenario schematic diagram of a call processing method provided in an embodiment of the present application is shown;
[0030] Figure 2 A flowchart of a call processing method provided in an embodiment of the present application is shown;
[0031] Figure 3 A flowchart of another call processing method provided in an embodiment of the present application is shown;
[0032] Figure 4 A flowchart of another call processing method provided in an embodiment of the present application is shown;
[0033] Figure 5 A flowchart of another call processing method provided in an embodiment of the present application is shown;
[0034] Figure 6 An example interface diagram provided in an embodiment of the present application is shown;
[0035] Figure 7 Another example of an interface schematic diagram provided in an embodiment of the present application is shown;
[0036] Figure 8 A flowchart of another call processing method provided in an embodiment of the present application is shown;
[0037] Fig. 9 A flowchart of another call processing method provided in an embodiment of the present application is shown;
[0038] Fig.10 A flowchart of another call processing method provided in an embodiment of the present application is shown;
[0039] Fig.11 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown;
[0040] Fig.12 A schematic diagram of the software structure of an electronic device provided in an embodiment of the present application is shown;
[0041] Fig.13A schematic diagram of the structure of a call processing method and device provided in an embodiment of the present application is shown;
[0042] Fig.14 A schematic diagram of the structure of a chip provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical scheme and advantages of the present application clearer, the implementation mode of the present application will be further described in detail below with reference to the accompanying drawings. Hereinafter, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present embodiment, unless otherwise specified, the meaning of "multiple" is two or more.
[0044] Figure 1 Schematic diagram of a call processing method provided by an embodiment of the present application. Figure 1 As shown, the scenario involves a calling terminal 10, a called terminal 20 and a network 30. The calling terminal 10 and the called terminal 20 are respectively connected to the network 30 through a 4G-LET communication protocol or a 5G new air interface protocol or a new communication technology that emerges in the future development of wireless communications.
[0045] The calling terminal 10 or the called terminal 20 referred to in the embodiment of the present application may be an electronic device with a call function, such as a mobile phone, a tablet computer, a laptop computer, a personal computer, a wearable device (such as a bracelet, a watch, etc.), Figure 1 Take a mobile phone as an example. It should be understood that in the embodiment of the present application, the user who actively calls other users is called the calling user, the other user who receives the call is called the called user, the terminal device of the calling user is called the calling terminal, and the terminal device of the called user is called the called terminal. It can be understood that the calling and the called are corresponding, and the calling terminal and the called terminal are only for the convenience of distinction, and should not constitute any limitation on the functions of the terminal devices themselves.
[0046] The network 30 referred to in the embodiment of the present application is a general term for core network equipment and access network equipment responsible for voice services, including an Internet-protocol multimedia subsystem (IMS) on the calling side and an IMS on the called side. The IMS can be a collection of multiple devices capable of processing voice and multimedia services, and can also be understood as a collection of multiple servers capable of processing voice and multimedia services.
[0047] The calling terminal 10 can call the called terminal 20 by dialing the telephone number of the called terminal 20. For example, the calling terminal 10 can dial the telephone number of the called terminal 20 through the dialing interface. After the calling terminal 10 dials the telephone number of the called terminal 20, the calling terminal 10 sends a call request message to the network 30 based on the Session Initiation Protocol (SIP) signaling process, and the network 30 replies different SIP messages to the calling terminal according to different situations. Among them, the telephone number can also be called a mobile phone number, a number, etc.
[0048] It is understandable that a call process requires multiple signaling to be transmitted at both ends. In the SIP protocol, these signaling are IP data packets in a predetermined format, called SIP messages. That is to say, there are multiple SIP messages during a call, and each message is an IP data packet. Some SIP messages involved in the embodiments of the present application include:
[0049] (1) Invite message: The invite message is used to indicate that the calling user initiates a call request and invites other users to join a session. The invite message can also be understood as a call request message or a session request message.
[0050] (2) 100 trying message: The 100 trying message is a temporary response message (a temporary response message is used to indicate that the request has been accepted but needs to be processed further). It is used in response to an invite message, indicating that the end that makes the 100 trying response has received the invite message and is processing some operations to complete the request. The 100 trying message can also be understood as a 100 try call message or a try call message.
[0051] (3) 183 (Session Progress) message: The 183 message is a temporary response message, indicating that some operations are being processed to complete the invite request; the 183 message can also be understood as a session progress message, indicating the progress of the session.
[0052] (4) 484 (Address InComplete) message: The 484 message indicates that the address in the request received by the network is incomplete and that there should be additional information in the reason phrase. The 484 message also indicates that the call request has failed.
[0053] It should be understood that in addition to the above messages, SIP messages also include various response messages such as 404 message (indicating that the user cannot be found), 408 message (indicating that the request has timed out), 480 message (indicating that it is temporarily unavailable), 503 message (indicating that the service is unavailable), and 504 message (indicating that the server has timed out).
[0054] For ease of understanding, the following describes a call processing method after the calling terminal 10 dials a number with reference to the accompanying drawings. Figure 2 A flowchart of a call processing method provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, when the telephone number dialed by the calling terminal is incorrect, the network may reply a 183 message to the calling terminal. The call processing method includes:
[0055] S201, the calling terminal sends a call request (invite) message to the network. Correspondingly, the network receives the invite message.
[0056] The invite message includes the telephone number of the called terminal.
[0057] S202: The network pages the called terminal based on the invite message sent by the calling terminal.
[0058] The network can parse the invite message to obtain the telephone number of the called terminal, and then page the called terminal based on the telephone number of the called terminal. However, since the telephone number dialed by the calling terminal is incorrect, the network cannot find the corresponding called terminal, and the called terminal cannot be paged, that is, the call fails. There are many reasons for the incorrect telephone number, which may be that a few digits are added or missing on the basis of the correct telephone number, or the dialed string of digits is not a telephone number, etc.
[0059] S203, the network sends a 100 trying message to the calling terminal. Correspondingly, the calling terminal receives the 100 trying message.
[0060] Optionally, after receiving the invite message sent by the calling terminal, the network may reply to the calling terminal with a 100 trying message to make a temporary response. The 100 trying message is used to indicate to the calling terminal that the network has received the invite message sent by the calling terminal.
[0061] S204, the network sends a 183 message to the calling terminal.
[0062] The 183 message can be determined based on the reason for the call failure. In this way, the network can carry the reason for the call failure in the 183 message that the telephone number of the called terminal is incorrect. For example, the 183 message carries Reason: Q.850; cause=28; text=“Invalid number format (address incomplete)”, SIP; cause=484; text=“Addressincomplete”.
[0063] S205: The network sends a prompt tone to the calling terminal.
[0064] In some examples, the network can send an RTP packet to the calling terminal via the Real-time Transport Protocol (RTP), and the calling terminal parses the RTP packet and plays a prompt tone. When the telephone number of the called terminal is incorrect, the prompt tone may be "Hello, the number you dialed is incorrect, please check and dial again." The calling terminal may also display a dialing interface, and after the calling terminal receives the 183 message, the dialing interface may display "Dialing".
[0065] S206, end the call.
[0066] After hearing the prompt tone, the user can choose to actively hang up the call, and in response to the user's hang-up operation, the calling terminal ends the call. Alternatively, the user does not actively hang up the call, and after a certain period of time, the calling terminal ends the call.
[0067] Figure 3 A flowchart of another call processing method provided in an embodiment of the present application is as follows: Figure 3 As shown, when the telephone number dialed by the calling terminal is incorrect, the network may reply a 484 message to the calling terminal. The call processing method includes:
[0068] S301, the calling terminal sends a call request (invite) message to the network. Correspondingly, the network receives the invite message.
[0069] S302: The network pages the called terminal based on the invite message sent by the calling terminal.
[0070] S303: The network sends a 100 trying message to the calling terminal. Correspondingly, the calling terminal receives the 100 trying message.
[0071] S304, the network sends a 484 message to the calling terminal.
[0072] The network may carry the reason for the call failure in the 484 message. For example, the 484 message may carry Reason: Q.850; cause = 28; text = "Invalid number format (address incomplete)", SIP; cause = 484; text = "Address incomplete".
[0073] S305: The calling terminal resends the call request message.
[0074] After receiving the 484 message sent by the network, the calling terminal will change the network standard and retry to call the called terminal after the network standard changes. The network standard refers to the network communication standards and protocols, including the fifth generation mobile communication technology (5th Generation Mobile Communication Technology, 5G), the fourth generation mobile communication technology (The 4th Generation Communication System, 4G), the second generation mobile communication technology (secondgeneration, 2G), etc. The aforementioned long-term evolution LTE is a 4G network, and the circuit switching domain CS is a 2G network. The network standard change is a change from 5G to 4G, or from 4G to 2G. The network standard change can also be called a domain change. The network standard change method includes a redirection method or a switching method, etc., which is not limited in the embodiments of the present application.
[0075] For example, if the calling terminal is currently connected to a 5G new air interface network, after receiving the 484 message sent by the network, the calling terminal disconnects the 5G network and connects to the 4G network, and calls the called terminal again on the 4G network; if the calling terminal still receives the 484 message on the 4G network, it further disconnects the 4G network and connects to the 2G network, and calls the called terminal again on the 2G network. For another example, if the calling terminal is currently connected to a 4G network, after receiving the 484 message sent by the network, the calling terminal disconnects the 4G network and connects to the 2G network, and calls the called terminal again on the 2G network.
[0076] During the process of changing the network system and retrying to call the called terminal, the calling terminal may display a dialing interface, and "dialing" may be displayed in the dialing interface.
[0077] S306: The re-call is unsuccessful, and the current call is terminated.
[0078] If the network standard is changed and the retry to call the called terminal fails, the calling terminal will end the call after a certain period of time. Figure 2 The difference from the example shown is that after the call fails, the network does not send a prompt tone to the calling terminal. Since the calling terminal does not receive the prompt tone sent by the network, the calling terminal does not play the prompt tone to the user.
[0079] Figure 4 A flowchart of a call processing method provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, when the telephone number dialed by the calling terminal is incorrect, the network may not reply a SIP message to the calling terminal. The call processing method includes:
[0080] S401, the calling terminal sends a call request (invite) message to the network. Correspondingly, the network receives the invite message.
[0081] S402: The network pages the called terminal based on the invite message sent by the calling terminal.
[0082] S403: The network sends a 100 trying message to the calling terminal. Correspondingly, the calling terminal receives the 100 trying message.
[0083] S404: The calling terminal resends the call request message.
[0084] Within the preset time after the calling terminal sends an invite message to the network, if the network does not send a SIP message to the calling terminal, and the calling terminal does not receive the SIP message sent by the network, the calling terminal changes the network standard and tries to call the called terminal again after the network standard changes. For example, the network currently connected to the calling terminal is the 5G new air interface. If the SIP message sent by the network is not received, the calling terminal disconnects the 5G network and connects to the 4G network, and calls the called terminal again on the 4G network; if the calling terminal still does not receive the SIP message sent by the network on the 4G network, it further disconnects the 4G network and connects to the 2G network, and calls the called terminal again on the 2G network. For another example, the calling terminal is currently connected to the 4G network. If the SIP message sent by the network is not received, the calling terminal disconnects the 4G network and connects to the 2G network, and calls the called terminal again on the 2G network.
[0085] During the process of changing the network system and retrying to call the called terminal, the calling terminal may display a dialing interface, and "dialing" may be displayed in the dialing interface.
[0086] S405: The re-call is unsuccessful, and the current call is terminated.
[0087] If the call is not successfully retried after the network format is changed, the calling terminal will terminate the call after a certain period of time. Similarly, after the call fails, the network does not send a prompt tone to the calling terminal. Since the calling terminal does not receive the prompt tone sent by the network, the calling terminal does not play the prompt tone to the user.
[0088] exist Figure 3 and Figure 4In the call failure scenario shown, the calling terminal will change the network standard and retry to call the called terminal after the network standard changes. This process will take about 20 to 40 seconds, and the entire calling process will last about 1 minute, which is a long time. After dialing, the user is waiting for the call to succeed, but because the called terminal's phone number is incorrect, the call cannot be made successfully. Therefore, after a long wait, the user still cannot get through the call, wasting the user's time. If the user is performing data services (such as playing games) while making a call, disconnecting and reconnecting the network when the network standard changes will cause data services to freeze, and the user experience is poor.
[0089] In addition, the calling terminal does not play a prompt tone to the user, but directly ends the call after a certain period of time. The user does not know what caused the call failure, that is, the user does not know that the dialed phone number is incorrect, and may think that the called user did not answer the call. After this call, the user may dial the incorrect phone number multiple times, and each time the call fails, resulting in unnecessary performance loss for the calling terminal and wasting the user's time and energy.
[0090] In view of this, an embodiment of the present application provides a call processing method, which is intended to identify the scenario where the telephone number of the called terminal is incorrect, and the network replies to a 484 message or does not reply to a SIP message, and in the aforementioned scenario, the calling terminal no longer performs a network standard change, but directly terminates the call, and prompts the user of the reason for the call failure. For example, the calling terminal can play a prompt tone to the user, or display a prompt to the user. In this way, the calling terminal no longer performs a network standard change, which can save network resources; the user no longer needs to wait for the calling terminal to perform redundant network standard changes, avoiding the call not being connected after a long wait, which can save the user's time; and the user is prompted, and the user can know through the prompt information that the reason for the call failure is that the telephone number of the called terminal is incorrect, which can avoid the user from repeatedly dialing an incorrect telephone number, reducing the waste of user time, reducing unnecessary performance loss of the terminal, and improving the user's calling experience; in addition, if the user performs data services while making a call, the data service freeze caused by disconnecting the network and then connecting the network during the network standard change can be avoided, thereby improving the user experience.
[0091] The call processing method provided in the embodiment of the present application is described in detail below with reference to the accompanying drawings.
[0092] It is understandable that the call processing method of the embodiment of the present application can be executed by the calling terminal or by a functional module in the calling terminal. The functional module can be a hardware component in the calling terminal. For example, the functional module can be a chip in the calling terminal for executing the call processing method provided by the present application. Alternatively, the functional module can also be a software functional module provided by the existing hardware component in the calling terminal that can execute the call processing method provided by the present application. The embodiment of the present application does not limit the specific form of the functional module.
[0093] Specifically, Figure 5 As shown, the call processing method provided by the embodiment of the present application is described by taking the scenario in which the network replies with a 484 message when the telephone number of the called terminal is incorrect as an example. The call processing method includes the following steps S501-S514.
[0094] S501: Detecting an operation of a user dialing a first telephone number.
[0095] For example, the user can make a call through the dialing interface provided by the call application in the calling terminal. Figure 6 As shown, the user can click the dialing number button in the dialing interface to input the first telephone number to be dialed, such as 0095588, and then click the dialing control 61 to dial the first telephone number. At this time, the first telephone number is the telephone number of the called terminal that the user believes.
[0096] S502: In response to the user dialing the first telephone number, an invite message is sent to the network to which the calling terminal is connected.
[0097] In an embodiment of the present application, the invite message sent by the calling terminal to the network may include the telephone number of the calling terminal and the first telephone number.
[0098] Correspondingly, the network receives the invite message. After receiving the invite message sent by the calling terminal, the network can reply with a 100 trying message to make a temporary response (not shown in the figure). For details about the 100 trying message, please refer to the above (for example, the above Figure 2 Step S202) related description.
[0099] S503, determining whether a 183 message sent by the network is received.
[0100] After receiving the invite message sent by the calling terminal, the network can parse the invite message to obtain the first telephone number, and then page the called terminal based on the first telephone number. Afterwards, the network may send a 183 message to the calling terminal, and the information carried in the 183 message is different depending on the call progress.
[0101] For example, when the first telephone number dialed by the calling terminal is incorrect, the network cannot find the corresponding called terminal, and the called terminal cannot be paged, that is, the call fails. After determining that the call fails, the network sends the reason for the call failure in the 183 message to the calling terminal.
[0102] Therefore, the calling terminal determines whether it has received the 183 message sent by the network within the first preset time period after sending the invite message to the network to confirm the call progress. If the calling terminal receives the 183 message, it can parse the 183 message to determine that the call failed because the first phone number is incorrect, and then the calling terminal can play the corresponding prompt tone. If the calling terminal does not receive the 183 message, the calling terminal further confirms whether it is a scenario where the network replies with a 484 message.
[0103] It should be noted that the embodiment of the present application does not specifically limit the specific value of the above-mentioned first preset time period, and those skilled in the art can set the above-mentioned first preset time period according to actual needs.
[0104] S504: In the case where the 183 message sent by the network is not received, determining whether a 484 message sent by the network is received, the 484 message indicating that the first telephone number is incorrect.
[0105] After determining that the call has failed, the network may also send the reason for the call failure in a 484 message to the calling terminal. Therefore, if the calling terminal does not receive a 183 message within the first preset time period after sending the invite message to the network, it further determines whether it has received a 484 message sent by the network indicating that the first telephone number is incorrect.
[0106] Among them, the 484 message can carry a Reason header field, and the Reason header field includes a reason value cause, which indicates that the first telephone number is incorrect. In the SIP protocol, the reason value is 484. In the Q.850 protocol, the reason value is 28. Specifically, the Reason header field carried by the 484 message can be "Reason: SIP; cause=484; text="Addressincomplete". Or, it can also be "Reason: Q.850; cause=28; text="Invalid number format (address incomplete)". Or, it can also be "Reason: Q.850; cause=28; text="Invalidnumber format (address incomplete), SIP; cause=484; text="Address incomplete". Among them, text can be understood as a description of the reason value.
[0107] S505: When receiving the 484 message sent by the network, determine whether the first telephone number is an incorrect telephone number recorded by the calling terminal.
[0108] It should be noted that the reason for the call failure carried in the 484 message is determined by the network to which the calling terminal is currently connected. That is, the first telephone number is incorrect on the currently connected network, and the called terminal cannot be called through the currently connected network. In addition to the incorrect first telephone number itself, this situation may also be caused by other reasons such as the first telephone number not being registered on the currently connected network. It does not mean that the called terminal corresponding to the first telephone number cannot be called through other networks. Therefore, in the embodiment of the present application, it is necessary to determine whether the reason for the call failure is that the first telephone number itself is incorrect, for example, a few more digits or a few fewer digits, etc. For example, the correct telephone number is "95588", and the incorrect telephone number dialed by the user is "095588", "0095588", "9558", etc. For another example, the correct telephone number is "1xxxxxxxx", and the incorrect number dialed by the user is "5699218".
[0109] Therefore, if the calling terminal receives a 484 message sent by the network within the first preset time period after sending the invite message to the network, the calling terminal parses the 484 message and determines that the call failure is caused by an incorrect first telephone number, then the calling terminal further determines whether the first telephone number is an incorrect telephone number recorded by the calling terminal.
[0110] If the first telephone number is an incorrect telephone number recorded by the calling terminal, it means that the first telephone number itself is incorrect. Even if the call is made again after the network standard is changed, the call cannot be successfully made using the first telephone number. In this case, changing the network standard is redundant. The calling terminal no longer changes the network standard to avoid the user waiting for a long time without getting through the call, which can save user time and improve user experience. The calling terminal outputs a first prompt message to let the user know the reason for the call failure.
[0111] If the first telephone number is not an incorrect telephone number recorded by the calling terminal, in this case, the calling terminal cannot determine that the first telephone number is correct. It is necessary to further determine whether the network standard has changed and re-call after the network standard has changed, and determine whether the re-call is successful. Execute the subsequent corresponding process based on the judgment result, see the subsequent description of S508-S509.
[0112] In the embodiment of the present application, it is possible to determine whether the first telephone number is an incorrect telephone number recorded by the calling terminal through a blacklist. Specifically, the calling terminal obtains the blacklist from a designated storage location to determine whether the first telephone number is in the blacklist; if the first telephone number is in the blacklist, it means that the first telephone number is an incorrect telephone number recorded by the calling terminal, and the first telephone number cannot be used to make a successful call on any network. If the first telephone number is not in the blacklist, it means that the first telephone number is not an incorrect telephone number recorded by the calling terminal. Among them, the blacklist can also be called an incorrect number list, that is, in the embodiment of the present application, the blacklist can be stored in the form of a list.
[0113] In some examples, the blacklist can be pre-stored in a designated storage location of the calling terminal, and no incorrect phone numbers are recorded in the initialized blacklist. When the call processing method provided in the embodiment of the present application is subsequently applied, the determined incorrect phone number can be recorded in the blacklist. For example, as described in the following steps S508-S509, the phone number in the case of unsuccessful re-call after the network standard changes is recorded in the blacklist, thereby updating and expanding the blacklist.
[0114] In other examples, the blacklist is not pre-stored in the calling terminal. When the call processing method provided by the embodiment of the present application is applied in the early stage, the incorrect phone number can be determined, and the incorrect phone number can be recorded in the blacklist, and the blacklist can be stored in a designated storage location of the calling terminal. When the call processing method provided by the embodiment of the present application is applied later, the blacklist can be used to determine whether the first phone number itself is incorrect.
[0115] Among them, the call processing method used in the previous application includes: detecting the operation of the user dialing the telephone number 1; in response to the operation of the user dialing the telephone number 1, sending an invite message to the network connected to the calling terminal; determining whether the 183 message sent by the network is received; in the case of not receiving the 183 message sent by the network, determining whether the 484 message sent by the network indicating that the telephone number 1 is incorrect is received; in the case of receiving the 484 message sent by the network, judging whether the re-call using the telephone number 1 after the network standard change is unsuccessful; in the case of unsuccessful re-call after the network standard change, recording the telephone number 1 as an incorrect telephone number; in the case of successful re-call after the network standard change, the calling terminal and the called terminal talk. In the case of not receiving the 484 message sent by the network, the current process is terminated. In the case of receiving the 183 message sent by the network, determining whether the 183 message carries a target field, the target field is used to indicate that the telephone number 1 is incorrect. If the 183 message carries the target field, the calling terminal outputs a corresponding prompt message and records the telephone number 1 as an incorrect telephone number.
[0116] S506: When the first telephone number is an incorrect telephone number recorded by the calling terminal, the network standard is not changed, and a first prompt message is output, the first prompt message indicating that the first telephone number is incorrect.
[0117] The calling terminal may output the first prompt information through an interface, such as Figure 7 As shown, the calling terminal can display the interface after dialing, in which a prompt box pops up and displays a prompt. For example, the prompt can be "Hello, the number you dialed is incorrect, please check and dial again."
[0118] The calling terminal may also output the first prompt information in voice mode, for example, playing a prompt tone "Hello, the number you dialed is incorrect, please check and redial" to the user.
[0119] The calling terminal can also output the first prompt information in a combination of interface mode and voice mode, for example, playing a prompt tone to the user when displaying the prompt. In this way, the user can know the reason for the call failure based on multiple methods, which can improve the user experience.
[0120] It should be noted that the above prompt tone is a prompt tone corresponding to the reason for the call failure and is locally stored or generated by the calling terminal.
[0121] S507: After outputting the first prompt information, end the current call.
[0122] After hearing the prompt tone or seeing the prompt, the calling user can actively hang up the call, so that the calling terminal responds to the user's hang-up operation and ends the call. In other examples, the calling terminal actively ends the call after a second preset time period (e.g., 2 seconds) after playing the prompt tone or displaying the prompt.
[0123] S508: When the first telephone number is not an incorrect telephone number recorded by the calling terminal, determine whether the call is unsuccessful after the network standard is changed.
[0124] If the first telephone number is not an incorrect telephone number recorded by the calling terminal, the calling terminal may or may not change the network standard. If the network standard is not changed, the calling terminal continues to wait and ends the call after a certain period of time. If the network standard is changed, the calling terminal switches the currently connected network to another network, and then uses the first telephone number to call the called terminal again in the other network, and further determines whether the re-call is unsuccessful.
[0125] There are many situations in which the calling terminal is successfully re-calling after the network standard changes. For example, the network currently connected to the calling terminal is the 5G new air interface. When the 484 message sent by the network is received and the first phone number is not in the blacklist, the calling terminal disconnects the 5G network and connects to the 4G network, and successfully calls the called terminal in the 4G network. For example, the network currently connected to the calling terminal is the 5G new air interface. When the 484 message sent by the network is received and the first phone number is not in the blacklist, the calling terminal disconnects the 5G network and connects to the 4G network. The called terminal is re-called in the 4G network. The calling terminal still receives the 484 message, further disconnects the 4G network and connects to the 2G network, and successfully calls the called terminal in the 2G network. For example, the calling terminal is currently connected to the 4G network. When the 484 message sent by the network is received and the first phone number is not in the blacklist, the calling terminal disconnects the 4G network and connects to the 2G network, and successfully calls the called terminal in the 2G network.
[0126] There are many situations in which the re-call fails after the network standard changes. For example, the network currently connected to the calling terminal is the 5G new air interface. When the 484 message sent by the network is received and the first phone number is not in the blacklist, the calling terminal disconnects the 5G network and connects to the 4G network, and re-calls the called terminal in the 4G network. The calling terminal still receives the 484 message in the 4G network, further disconnects the 4G network and connects to the 2G network, and re-calls the called terminal in the 2G network, but the call still fails in the 2G network. For another example, the calling terminal is currently connected to the 4G network. When the 484 message sent by the network is received and the first phone number is not in the blacklist, the calling terminal disconnects the 4G network and connects to the 2G network, and re-calls the called terminal in the 2G network, but the call still fails in the 2G network. For another example, the network currently connected to the calling terminal is the 5G new air interface. When the 484 message sent by the network is received and the first phone number is not in the blacklist, it switches to the 4G network and calls the called terminal again in the 4G network. The calling terminal still receives the 484 message in the 4G network and further switches to the 2G network and calls the called terminal again in the 2G network. For another example, the calling terminal is currently connected to the 4G network. When the 484 message sent by the network is received and the first phone number is not in the blacklist, it switches to the 2G network and calls the called terminal again in the 2G network.
[0127] S509: If the redialing fails after the network standard is changed, the first telephone number is recorded as an incorrect telephone number.
[0128] If the calling terminal fails to call again after the network format change, it can be confirmed that the first telephone number itself is incorrect, and the calling terminal records the first telephone number as an incorrect telephone number, that is, records the first telephone number into the blacklist, thereby expanding the blacklist and being able to identify more incorrect telephone numbers later. In this case, the calling terminal can also output a prompt message that the first telephone number is incorrect.
[0129] If the calling terminal successfully calls again after the network standard is changed, the calling terminal and the called terminal talk, and the current process ends.
[0130] Optionally, in some examples, the above method may further include: S510, upon receiving a 183 message sent by the network, determining whether the 183 message indicates that the first telephone number is incorrect.
[0131] S511: When the 183 message indicates that the first telephone number is incorrect, record the first telephone number as an incorrect telephone number.
[0132] In different call scenarios, the information carried in the 183 message sent by the network to the calling terminal is different. In the embodiment of the present application, after receiving the 183 message, the calling terminal can parse the 183 message to determine whether the 183 message indicates that the first telephone number is incorrect. If the 183 message indicates that the first telephone number is incorrect, the calling terminal can record the first telephone number in the blacklist. If the 183 message carries other information, the calling terminal performs the corresponding process of the other information.
[0133] Among them, if the first telephone number is incorrect, the 183 message can carry a Reason header field, and the Reason header field includes a cause value cause. In the SIP protocol, the cause value is 484. In the Q.850 protocol, the cause value is 28. The Reason header field carried by the 183 message can be "Reason: SIP; cause = 484; text = "Addressincomplete". Or, it can also be "Reason: Q.850; cause = 28; text = "Invalid number format (address incomplete)". Or, the Reason header field carried by the 183 message can also be "Reason: Q.850; cause = 28; text = "Invalid number format (address incomplete), SIP; cause = 484; text = "Address incomplete". Among them, text can be understood as a description of the reason value.
[0134] Optionally, in some other examples, the above method may further include: S512, when receiving the 183 message sent by the network, determining whether the second prompt information sent by the network is received.
[0135] S513: When receiving the second prompt information sent by the network, output the second prompt information, wherein the second prompt information indicates that the first telephone number is incorrect.
[0136] S514: If the second prompt information sent by the network is not received, a third prompt information is output, where the third prompt information is generated locally by the calling terminal, and the third prompt information also indicates that the first telephone number is incorrect.
[0137] That is, after the network sends the 183 message indicating that the first telephone number is incorrect to the calling terminal, it can also send a second prompt message to the calling terminal to prompt the calling terminal the reason for the call failure. The second prompt message is a voice prompt tone.
[0138] The calling terminal can determine whether it has received the second prompt information sent by the network within the third preset time period after receiving the 183 message. If the calling terminal does not receive the second prompt information within the third preset time period, the calling terminal can output the third prompt information generated locally. The third prompt information can include a prompt word and a prompt tone, see the first prompt information mentioned above. In this way, regardless of whether the second prompt information is received or not, the calling user can know the reason for the call failure.
[0139] After outputting the second prompt message or the third prompt message, the calling terminal ends the call. Alternatively, the user actively hangs up the phone after receiving the second prompt message or the third prompt message is output.
[0140] The third preset time period may be a time period of fixed length, such as 2 seconds, 3 seconds, etc. The present application does not specifically limit the specific value of the third preset time period, and those skilled in the art may set the third preset time period according to actual needs.
[0141] In some cases, when the calling terminal dials an incorrect phone number, the network does not reply to the calling terminal with a SIP message. Figure 8 The method flow chart shown in the figure introduces the call processing method provided by the embodiment of the present application in detail. Since the network has not responded to the SIP message, it may also be caused by the poor state of the network. In the embodiment of the present application, a condition for judging the state of the network can be added to filter out the situation where the network state is poor, such as Figure 8 As shown, the call processing method includes the following steps S801-S816.
[0142] S801: Detecting an operation of a user dialing a first telephone number.
[0143] S802: In response to the user dialing the first telephone number, an invite message is sent to the network to which the calling terminal is connected.
[0144] S803, determining whether a 183 message sent by the network is received.
[0145] S804: In the case where the 183 message sent by the network is not received, determining whether a 484 message sent by the network is received, the 484 message indicating that the first telephone number is incorrect.
[0146] S805: In the case where the 484 message sent by the network is not received, determine whether other response messages except the 183 message and the 484 message are received.
[0147] In case of receiving the 484 message sent by the network, it is further determined whether the first telephone number is an incorrect telephone number recorded by the calling terminal, and the following S807-S811 is executed.
[0148] S806: When no response messages other than the 183 message and the 484 message are received, determine whether the network status is normal.
[0149] After sending a call request message to the network, the calling terminal did not receive a SIP message sent by the network, that is, it did not receive a 183 message, a 484 message, or any other response message except for the 183 message and the 484 message. This may be because the network did not reply with a SIP message after receiving the call request message. It may also be because the network status is not good and the SIP message was not sent. It may also be because the network signal is weak, the network replied with a SIP message, but the calling terminal did not receive the SIP message replied by the network.
[0150] Therefore, in the embodiment of the present application, when no 484 message sent by the network is received, it is determined whether other response messages except 183 message and 484 message are received. If no other response messages except 183 message and 484 message are received, the status of the network is further judged. If the status of the network is normal, it indicates that the network has not sent a SIP message to the calling terminal. The calling terminal further determines whether the first telephone number is in the blacklist and executes S807-S811 as follows.
[0151] If the network status is abnormal, the network may send a SIP message to the calling terminal, but the calling terminal may not receive the SIP message due to poor network signals. In this case, the calling terminal can continue to wait and end the call after the call duration reaches the threshold.
[0152] S807: Determine whether the first telephone number is an incorrect telephone number recorded by the calling terminal.
[0153] The calling terminal can determine whether the first telephone number is an incorrect telephone number recorded by the calling terminal through the blacklist. In some examples, the blacklist can be pre-stored in a designated storage location of the calling terminal, and the initialized blacklist does not record the incorrect telephone number. The determined incorrect telephone number can be recorded in the blacklist later, thereby updating and expanding the blacklist.
[0154] In other examples, the blacklist is not pre-stored in the calling terminal. When the call processing method provided by the embodiment of the present application is applied in the early stage, the incorrect phone number can be determined, and the incorrect phone number can be recorded in the blacklist, and the blacklist can be stored in a designated storage location of the calling terminal. When the call processing method provided by the embodiment of the present application is applied later, the blacklist can be used to determine whether the first phone number itself is incorrect.
[0155] Among them, the call processing method used in the early stage includes: detecting the operation of a user dialing telephone number 1; in response to the operation of the user dialing telephone number 2, sending an invite message to the network to which the calling terminal is connected; determining whether a 183 message sent by the network is received; if the 183 message sent by the network is not received, determining whether a 484 message sent by the network indicating that telephone number 2 is incorrect is received; if the 484 message sent by the network is received, determining whether a redial using telephone number 2 after a network standard change is unsuccessful; if the redial after the network standard change is unsuccessful, recording telephone number 2 as an incorrect telephone number; if the redial after the network standard change is successful, the calling terminal and the called terminal have a call.
[0156] If the 484 message sent by the network is not received, the calling terminal determines whether other response messages except the 183 message and the 484 message are received. If no other response messages except the 183 message and the 484 message are received, it determines whether the status of the network is normal. If the status of the network is normal, it determines whether the redialing using phone number 2 after the network format change is unsuccessful; if the redialing after the network format change is unsuccessful, phone number 2 is recorded as an incorrect phone number; if the network status is abnormal, the current process is terminated.
[0157] If a 183 message is received from the network, the calling terminal determines whether the 183 message carries a target field, which is used to indicate that telephone number 2 is incorrect. If the 183 message carries a target field, the calling terminal outputs a corresponding prompt message and records telephone number 2 as an incorrect telephone number.
[0158] S808: When the first telephone number is an incorrect telephone number recorded by the calling terminal, the network standard is not changed, and a first prompt message is output, the first prompt message indicating that the first telephone number is incorrect.
[0159] S809: After outputting the first prompt information, end the call.
[0160] S810: When the first telephone number is not an incorrect telephone number recorded by the calling terminal, determine whether the redialing is unsuccessful after the network standard is changed.
[0161] S811: When the redialing fails after the network standard is changed, the first telephone number is recorded as an incorrect telephone number.
[0162] Details not described in the above steps S801-S809 can be referred to the above steps S501-S509 and will not be repeated here.
[0163] Optionally, the above method may further include: S812, when receiving a 183 message sent by the network, determining whether the 183 message indicates that the first telephone number is incorrect.
[0164] S813: When the 183 message indicates that the first telephone number is incorrect, the first telephone number is recorded as an incorrect telephone number.
[0165] Optionally, the above method may further include: S814, in the case of receiving the 183 message sent by the network, determining whether the second prompt information sent by the network is received.
[0166] S815: When receiving the second prompt information sent by the network, output the second prompt information.
[0167] S816: When the second prompt information sent by the network is not received, output third prompt information, where the third prompt information is generated locally by the calling terminal.
[0168] Details not described in the above steps S812-S816 can be referred to the above steps S510-S514 and will not be repeated here.
[0169] In addition to the above method, the present application embodiment also provides a call processing method, such as Fig. 9 As shown, after the calling terminal sends a call request to the network, if it does not receive the 183 message sent by the network, it can first determine whether it has received other response messages sent by the network except the 183 message, and then execute the corresponding process according to the judgment result. The call processing method includes the following steps S901-S916.
[0170] S901: Detecting an operation of a user dialing a first telephone number.
[0171] S902: In response to the user dialing the first telephone number, an invite message is sent to the network to which the calling terminal is connected.
[0172] S903, determining whether a 183 message sent by the network is received.
[0173] S904: In the case where the 183 message sent by the network is not received, determine whether other response messages except the 183 message sent by the network are received.
[0174] In the embodiment of the present application, if the calling terminal does not receive any other response messages except the 183 message sent by the network, it means that the calling terminal has not received the SIP message sent by the network, and then further judges the state of the network to exclude the situation that the calling terminal has not received the SIP message sent by the network due to the poor network signal. If the state of the network is normal, it means that the network itself has not replied to the SIP message, and the calling terminal further determines whether the first telephone number is an incorrect telephone number recorded by the calling terminal, and then executes the following steps S907-S911. If the state of the network is abnormal, it means that the network signal is not good, and the calling terminal can continue to wait or end the call.
[0175] If the calling terminal receives other response messages other than the 183 message sent by the network, since there are many types of response messages, it is necessary to further determine whether the other response messages other than the 183 message received are 484 messages, which indicate that the first telephone number is incorrect. If the other response message is a 484 message, that is, the calling terminal receives a 484 message, it is further determined whether the call failed due to the incorrect first telephone number itself, and the following steps S907-S911 are subsequently executed. If the other response message is not a 484 message, the calling terminal executes other processes.
[0176] S905: When receiving other response messages except the 183 message sent by the network, determine whether the other response messages are 484 messages.
[0177] S906: When no response message other than the 183 message sent by the network is received, determine whether the network status is normal.
[0178] S907: Determine whether the first telephone number is an incorrect telephone number recorded by the calling terminal.
[0179] S908: When the first telephone number is an incorrect telephone number recorded by the calling terminal, the network standard is not changed, and a first prompt message is output, the first prompt message indicating that the first telephone number is incorrect.
[0180] S909: After outputting the first prompt information, end the call.
[0181] S910: When the first telephone number is not an incorrect telephone number recorded by the calling terminal, determine whether the redialing is unsuccessful after the network standard is changed.
[0182] S911: When the redialing fails after the network standard is changed, the first telephone number is recorded as an incorrect telephone number.
[0183] Optionally, the above method may further include: S912, when receiving a 183 message sent by the network, determining whether the 183 message indicates that the first telephone number is incorrect.
[0184] S913: When the 183 message indicates that the first telephone number is incorrect, the first telephone number is recorded as an incorrect telephone number, that is, recorded in a blacklist.
[0185] Optionally, the above method may further include: S913, in the case of receiving the 183 message sent by the network, determining whether the second prompt information sent by the network is received.
[0186] S914: When receiving the second prompt information sent by the network, output the second prompt information.
[0187] S915: When the second prompt information sent by the network is not received, output third prompt information, where the third prompt information is generated locally by the calling terminal.
[0188] It should be noted that Fig. 9 Details not described in the illustrated embodiment may be referred to in Figure 5 The embodiment shown and Figure 8 For the sake of brevity, the illustrated embodiments are not described in detail here.
[0189] Another call processing method provided by an embodiment of the present application is described below. Fig.10 As shown, the calling terminal can first determine whether the phone number is correct after the user enters the phone number, thereby reducing the interaction with the operator when the phone number is incorrect. The call processing method includes the following steps S1001-S1013.
[0190] S1001: Detecting an operation of a user dialing a second telephone number.
[0191] For example, Figure 6 As shown, the user can make a call through the dialing interface provided by the call application in the calling terminal.
[0192] S1002: In response to the user's operation of dialing a second telephone number, determining whether the second telephone number is an incorrect telephone number recorded by the calling terminal.
[0193] After the user dials, the calling terminal obtains the blacklist from the designated storage location to determine whether the second phone number is in the blacklist, that is, to determine whether it is an incorrect phone number recorded by the calling terminal; if the second phone number is in the blacklist, it means that the second phone number is incorrect, and the second phone number cannot be used to successfully call the called terminal, even if the network format is changed. In this way, the calling terminal does not need to send a call request to the network. Therefore, according to the following S1003-S1004, the calling terminal outputs the fourth prompt information, and after outputting the fourth prompt information, the call is terminated. In this way, the calling terminal can find that the phone number is incorrect before sending a call request to the network, and then does not need to interact with the network, which can save the user's waiting time and improve the user experience.
[0194] If the second telephone number is not in the blacklist, it means that the second telephone number is not an incorrect telephone number recorded by the calling terminal. The calling terminal can send an invite message to the connected network. According to S1005-S1009 below, within the first preset time period after sending the invite message to the network, if the calling terminal receives a 484 message, the calling terminal parses the 484 message and determines that the call failure is caused by an incorrect first telephone number. The currently connected network is further switched to another network, and the called terminal is called again in the other network. If the re-call is not successful, the second telephone number is recorded as an incorrect telephone number, and a fourth prompt message is output to the user. After the fourth prompt message is output, the call is terminated.
[0195] S1003: When the second telephone number is an incorrect telephone number recorded by the calling terminal, output fourth prompt information, wherein the fourth prompt information indicates that the second telephone number is incorrect.
[0196] Similarly, the calling terminal may output the fourth prompt information through an interface, or may output the first prompt information through voice. In this way, the user may know the reason for the call failure in a variety of ways, thereby improving the user experience.
[0197] S1004: After outputting the fourth prompt information, terminate the current call.
[0198] S1005: When the second telephone number is not an incorrect telephone number recorded by the calling terminal, an invite message is sent to the network to which the calling terminal is connected.
[0199] S1006, determining whether a 183 message sent by the network is received.
[0200] If the calling terminal receives the 183 message within the first preset time period after sending the invite message, the calling terminal parses the 183 message. If it is determined that the 183 message indicates that the second telephone number is incorrect, the current process is terminated and the calling terminal plays a prompt tone from the network.
[0201] S1007, in the case where the 183 message sent by the network is not received, determining whether a 484 message sent by the network is received, the 484 message indicating that the telephone number is incorrect.
[0202] If no 484 message is received, the process ends.
[0203] S1008, when receiving the 484 message sent by the network, determine whether the re-call is unsuccessful after the network standard is changed.
[0204] S1009: If the redialing fails after the network standard is changed, the second telephone number is recorded as an incorrect telephone number.
[0205] If the redial is successful, the current process ends and the calling terminal and the called terminal communicate.
[0206] Optionally, in some examples, if the calling terminal does not receive the 484 message and does not receive any other response messages except 183 and 484, the calling terminal further determines whether the network status is normal. If the network status is normal, the currently connected network is switched to other networks, and the called terminal is called again on the other networks. If the re-call is not successful, the second telephone number is recorded as an incorrect telephone number, and a fourth prompt message is output to the user. After the fourth prompt message is output, the call is ended.
[0207] Optionally, in other examples, if the calling terminal receives the 183 message, the calling terminal parses the 183 message, and if it is determined that the 183 message indicates that the second telephone number is incorrect, the calling terminal can record the second telephone number in the blacklist. If the 183 message carries other information, the calling terminal performs the corresponding process for the other information. Optionally, if the calling terminal receives the 183 message, it can also determine whether the second prompt information sent by the network is received; if the second prompt information is received, the second prompt information is output to the user; if the second prompt information is not received, the third prompt information is output to the user, and the third prompt information is generated locally by the calling terminal.
[0208] It should be noted that Fig.10 Details not described in the illustrated embodiment may be referred to in Figure 5 The embodiment shown and Fig. 9 For the sake of brevity, the illustrated embodiments are not described in detail here.
[0209] Combined with the above Figures 5 to 10 In some implementations of the call processing method shown, the calling terminal can also determine the correct telephone number corresponding to the first telephone number based on the first telephone number and the telephone number stored locally in the calling terminal, and output the correct telephone number corresponding to the first telephone number to the user.
[0210] The calling terminal stores multiple phone numbers locally, including phone numbers saved by the user, and may also include official phone numbers built into the terminal (such as official bank numbers, official operator numbers, etc.). If the first phone number is an incorrect phone number recorded by the calling terminal, the calling terminal may find the correct phone number corresponding to the first phone number from the multiple phone numbers stored locally based on the first phone number and a preset rule. For example, the preset rule may be that more than three quarters of the digits in a locally stored phone number are the same as the digits in the first phone number; or, four consecutive digits in a locally stored phone number are the same as the digits in the first phone number; or, the first four digits in a locally stored phone number are the same as the digits in the first phone number; or, the last four digits in a locally stored phone number are the same as the digits in the first phone number, etc. For example, one of the multiple phone numbers stored locally is "95588". If the first phone number dialed by the user is "095588", it can be determined according to the preset rule that the correct phone number corresponding to the first phone number is "95588".
[0211] After the calling terminal outputs the first prompt information to the user, the correct telephone number corresponding to the first telephone number can be output to the user, for example, in a pop-up window such as Figure 7 After the prompt box is displayed, the calling terminal can pop up a new prompt box on the dialing interface, and the new prompt box displays the prompt "Do you want to call 95588?" In this way, after the user knows that the reason for the call failure is that the first phone number is incorrect, the user can obtain the correct phone number corresponding to the first phone number in time, reducing the time and energy spent by the user in searching for the correct phone number, which can improve the user experience.
[0212] In summary, the call processing method provided in the embodiment of the present application is intended to identify the scenario where the telephone number of the called terminal is incorrect, and the network replies with a 484 message or does not reply to a SIP message. In the aforementioned scenario, the calling terminal no longer performs a network standard change, but directly terminates the call and prompts the user with the reason for the call failure. In this way, the user no longer needs to wait for the calling terminal to perform redundant network standard changes, avoiding the situation where the call is still not connected after a long wait, which can save the user's time; and the user can know through the prompt information that the reason for the call failure is that the telephone number of the called terminal is incorrect, which can avoid the user from repeatedly dialing an incorrect telephone number, reducing the waste of user time, reducing unnecessary performance loss of the terminal, and improving the user's calling experience; in addition, if the user performs data services while making a call, the data service freeze caused by disconnecting and reconnecting the network during the network standard change can be avoided, thereby improving the user experience.
[0213] Combination of the above Figures 5 to 10 The call processing method provided in the embodiment of the present application is described. The electronic device and device for executing the above method provided in the embodiment of the present application are described below.
[0214] Fig.11 A schematic diagram of the hardware structure of the electronic device 100 is shown. The electronic device 100 may be a calling terminal or a called terminal.
[0215] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0216] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0217] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0218] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0219] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0220] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0221] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0222] The charging management module 140 is used to receive charging input from a charger, where the charger can be a wireless charger or a wired charger.
[0223] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160.
[0224] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0225] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0226] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0227] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0228] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0229] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0230] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0231] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0232] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0233] The ISP is used to process the data fed back by the camera 193. In some embodiments, the ISP can be set in the camera 193.
[0234] The camera 193 is used to capture still images or videos. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0235] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0236] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor.
[0237] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0238] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0239] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.
[0240] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.
[0241] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.
[0242] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0243] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. The air pressure sensor 180C is used to measure the air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
[0244] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. The distance sensor 180F is used to measure the distance. The ambient light sensor 180L is used to sense the brightness of the ambient light. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application locks, fingerprint photography, fingerprint answering calls, etc.
[0245] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. The touch sensor 180K is also called a "touch device". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 180M can obtain a vibration signal of a vibrating bone block of a human vocal part.
[0246] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
[0247] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0248] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0249] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0250] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0251] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 100.
[0252] Fig.12 It is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.
[0253] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
[0254] The application layer can include a series of application packages.
[0255] like Fig.12 As shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.
[0256] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0257] like Fig.12 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0258] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0259] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0260] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0261] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).
[0262] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0263] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0264] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
[0265] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
[0266] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0267] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0268] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0269] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0270] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0271] A 2D graphics engine is a drawing engine for 2D drawings.
[0272] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0273] Fig.13 The structure diagram of a call processing device provided in an embodiment of the present application is shown in FIG. The call processing device may be an electronic device in an embodiment of the present application, or a chip or chip system in an electronic device. Fig.13 As shown, the call processing device 1300 may include: a processing unit 1301. The processing unit 1301 is used to support the call processing device 1300 to execute the above processing steps.
[0274] In one implementation, the device 1300 further includes a storage unit 1302. The storage unit 1302 is connected to the processing unit 1301 via a line. The storage unit 1302 may include one or more memories, and the memory may be a device used to store programs or data in one or more devices or circuits. The storage unit 1302 may exist independently and be connected to the processing unit 1301 via a communication bus. The storage unit 1302 may also be integrated with the processing unit 1301.
[0275] The storage unit 1302 can store computer-executable instructions of the method in the electronic device so that the processing unit 1301 executes the method in the above embodiment. The storage unit 1302 can be a register, a cache, or a random access memory (RAM), etc., or a read-only memory (ROM) or other types of static storage devices that can store static information and instructions.
[0276] Fig.14 This is a schematic diagram of the structure of a chip provided in an embodiment of the present application. Fig.14 As shown, the chip 1400 includes one or more (including two) processors 1401 , a communication line 1402 and a communication interface 1403 . Optionally, the chip 1400 also includes a memory 1404 .
[0277] In some implementations, the memory 1404 stores the following elements: executable modules or data structures, or a subset thereof, or an extended set thereof.
[0278] The method described in the above embodiment of the present application can be applied to the processor 1401, or implemented by the processor 1401. The processor 1401 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 1401 or an instruction in the form of software. The above processor 1401 can be a general-purpose processor (for example, a microprocessor or a conventional processor), a digital signal processor, an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates, transistor logic devices or discrete hardware components. The processor 1601 can implement or execute the disclosed methods, steps and logic block diagrams in the embodiments of the present application.
[0279] The steps of the method disclosed in the embodiment of the present application can be directly embodied as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. Among them, the software module can be located in a mature storage medium in the field such as a random access memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable read only memory (EEPROM). The storage medium is located in the memory 1404, and the processor 1401 reads the information in the memory 1404 and completes the steps of the above method in combination with its hardware.
[0280] The processor 1401 , the memory 1404 , and the communication interface 1403 may communicate with each other via the communication line 1402 .
[0281] In the above embodiments, the instructions stored in the memory for execution by the processor may be implemented in the form of a computer program product, wherein the computer program product may be pre-written in the memory, or may be downloaded and installed in the memory in the form of software.
[0282] The embodiment of the present application also provides a computer program product, which includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a server, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server, a data center, etc. that includes one or more available media integrated. For example, the available medium may include a magnetic medium (e.g., a floppy disk, a hard disk, or a tape), an optical medium (e.g., a digital versatile disc (digital versatile disc, DVD)), or a semiconductor medium (e.g., a solid state drive (solid state disk, SSD)), etc.
[0283] An embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory is used to store a computer program, and the processor is used to execute the computer program to perform the above method.
[0284] The embodiment of the present application provides a chip. The chip includes a processor, and the processor is used to call a computer program in a memory to execute the technical solution in the above embodiment. Its implementation principle and technical effect are similar to those of the above related embodiments, and will not be repeated here.
[0285] In the embodiments provided in the present application, it should be understood that the disclosed device / electronic device and method can be implemented in other ways. For example, the device / electronic device embodiments described above are only schematic, for example, the division of the modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. In addition, each functional unit in each embodiment of the present application can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.
[0286] The embodiment of the present application also provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned various method embodiments can be implemented. The computer-readable storage medium stores a computer program or instruction. The above-mentioned method is implemented when the computer program or instruction is executed by the processor. The method described in the above embodiment can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. If implemented in software, the function can be stored as one or more instructions or codes on a computer-readable medium or transmitted on a computer-readable medium. Computer-readable media may include computer storage media and communication media, and may also include any medium that can transfer a computer program from one place to another. The storage medium may be any target medium accessible by a computer.
[0287] As a possible design, the computer-readable medium may include a compact disc read-only memory (CD-ROM), RAM, ROM, EEPROM or other optical disk storage; the computer-readable medium may include a magnetic disk storage or other magnetic disk storage device. Moreover, any connection line may also be appropriately referred to as a computer-readable medium. For example, if the software is transmitted from a website, server or other remote source using a coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology such as infrared, radio and microwave, the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology such as infrared, radio and microwave are included in the definition of the medium. Disks and optical disks as used herein include compact disks (CDs), laser disks, optical disks, DVDs, floppy disks and Blu-ray disks, where disks usually reproduce data magnetically, while optical disks reproduce data optically using lasers. Combinations of the above should also be included in the scope of computer-readable media.
[0288] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processing unit of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0289] In the above description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0290] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0291] It should also be understood that, in the description of the present application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; “and / or” in this article is merely a description of the association relationship of associated objects, and refers to any combination of one or more of the associated listed items and all possible combinations, including these combinations, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0292] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0293] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0294] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A call processing method, characterized in that: Applied to a calling terminal, the method comprises: Detecting an operation of a user dialing a first telephone number; In response to the user dialing a first telephone number, sending a call request to the network to which the calling terminal is connected; Determine whether a 183 message sent by the network is received based on the Session Initiation Protocol SIP within a preset time; In the case where the 183 message sent by the network is not received, determining whether a 484 message sent by the network is received within the preset time, the 484 message indicating that the first telephone number is incorrect; Upon receiving the 484 message sent by the network, determining whether the first telephone number is an incorrect telephone number recorded by the calling terminal; In the case where the first telephone number is an incorrect telephone number recorded by the calling terminal, no network standard change is performed, and a first prompt message is output, wherein the first prompt message indicates that the first telephone number is incorrect; After outputting the first prompt information, the call is terminated.
2. The method according to claim 1, characterized in that The method further comprises: In the case where the 484 message sent by the network is not received, determining whether other response messages other than the 183 message and the 484 message are received within the preset time; In the case where no other response messages except the 183 message and the 484 message are received, determining whether the state of the network is normal; When the network is in a normal state, determining whether the first telephone number is an incorrect telephone number recorded by the calling terminal; In the case where the first telephone number is an incorrect telephone number recorded by the calling terminal, no network standard change is performed, and a prompt message indicating that the first telephone number is incorrect is output; After outputting a prompt message indicating that the first telephone number is incorrect, the call is terminated.
3. The method according to claim 1, characterized in that The method further comprises: In the case where the 183 message sent by the network is not received, determining whether other response messages other than the 183 message sent by the network are received; In case of receiving other response messages sent by the network except the 183 message, determining whether the other response message is the 484 message; In the case where the other response message is the 484 message, determining whether the first telephone number is an incorrect telephone number recorded by the calling terminal; In the case where the first telephone number is an incorrect telephone number recorded by the calling terminal, no network standard change is performed, and a first prompt message is output, wherein the first prompt message indicates that the first telephone number is incorrect; After outputting the first prompt information, the call is terminated.
4. The method according to claim 3, characterized in that The method further comprises: In the case where no other response messages other than the 183 message sent by the network are received, determining whether the state of the network is normal; When the network is in a normal state, determining whether the first telephone number is an incorrect telephone number recorded by the calling terminal; In the case where the first telephone number is an incorrect telephone number recorded by the calling terminal, no network standard change is performed, and a prompt message indicating that the first telephone number is incorrect is output; After outputting a prompt message indicating that the first telephone number is incorrect, the call is terminated.
5. The method according to any one of claims 1 to 4, characterized in that Determining whether the first telephone number is an incorrect telephone number recorded by the calling terminal includes: Querying an error number list to determine whether the first telephone number is in the error number list; In the case where the first telephone number is in the wrong number list, it is determined that the first telephone number is an incorrect telephone number recorded by the calling terminal.
6. The method according to claim 5, characterized in that The method further comprises: If the first telephone number is not in the wrong number list, determining whether to retry the call after a network standard change occurs; In the case where the redialing fails after the network standard changes, the first telephone number is recorded in the error number list.
7. The method according to claim 1, characterized in that The method further comprises: Upon receiving the 183 message sent by the network, determining whether the 183 message indicates that the first telephone number is incorrect; In the case where the 183 message indicates that the first telephone number is incorrect, the first telephone number is recorded as an incorrect telephone number.
8. The method according to claim 7, characterized in that The method further comprises: In case of receiving the 183 message sent by the network, determining whether a second prompt information sent by the network is received, the second prompt information indicating that the first telephone number is incorrect; When receiving the second prompt information sent by the network, output the second prompt information; or, In the case where the second prompt information sent by the network is not received, third prompt information is output, where the third prompt information is generated by the calling terminal and indicates that the first telephone number is incorrect.
9. The method according to claim 1, characterized in that: The method further comprises: Determining a correct telephone number corresponding to the first telephone number according to the first telephone number and a telephone number stored locally on the calling terminal; The user is prompted with the correct telephone number.
10. The method according to claim 1, characterized in that The 183 message or the 484 message includes a Reason header field, and the format of the Reason header field includes Reason:SIP; cause=cause value; text=reason value description, wherein the SIP field represents the SIP protocol, the cause field is the reason value, and the reason value corresponding to the SIP protocol is 484.
11. The method according to claim 1, characterized in that: The 183 message or the 484 message includes a Reason header field, and the format of the Reason header field includes Reason: Q.850; cause=cause value; text=reason value description; wherein the Q.850 field represents the Q.850 protocol, the cause field is the cause value, and the cause value corresponding to the Q.850 protocol is 28.
12. The method according to claim 1, characterized in that The outputting the first prompt information includes: The first prompt information is outputted in the form of voice prompt.
13. The method according to claim 1, characterized in that The outputting the first prompt information includes: A dialing interface is displayed, wherein the dialing interface includes the first prompt information.
14. A call processing method, characterized in that: Applied to a calling terminal, the method comprises: Detecting an operation of a user dialing a second telephone number; In response to the user dialing the second telephone number, determining whether the second telephone number is an incorrect telephone number recorded by the calling terminal; In the case where the second telephone number is an incorrect telephone number recorded by the calling terminal, outputting a fourth prompt message, wherein the fourth prompt message indicates that the second telephone number is incorrect; After outputting the fourth prompt information, ending the current call; In the case where the second telephone number is not an incorrect telephone number recorded by the calling terminal, sending a call request to a network to which the calling terminal is connected; Determine whether a 183 message sent by the network is received based on the Session Initiation Protocol SIP within a preset time; In the case where the 183 message sent by the network is not received, determining whether a 484 message sent by the network is received within a preset time, the 484 message indicating that the telephone number is incorrect; Upon receiving the 484 message sent by the network, determining whether to retry the call after the network standard change occurs; In the case where the redialing fails after the network standard changes, the second telephone number is recorded as an incorrect telephone number, and the fourth prompt information is output.
15. An electronic device, characterized in that: include: one or more processors; one or more memories; The memory stores one or more programs, and when the one or more programs are executed by the processor, the electronic device executes the method according to any one of claims 1 to 13, or the method according to claim 14.
16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the method according to any one of claims 1 to 13, or the method according to claim 14.
17. A computer program product, characterized in that The computer program product comprises a computer program, which, when executed by a processor, is configured to perform the method according to any one of claims 1 to 13, or the method according to claim 14.
Citation Information
Patent Citations
Method for correcting wrong calling number of telephone terminal and mobile telephone terminal
CN101986735A
Dialing management method and apparatus, and terminal
CN106453871A
Incoming call notification method and device
CN114051070A
Releasing method and terminal equipment
CN115190468A
