Call abnormity processing method and device

By obtaining call exception messages and determining strategies based on the call stage, generating call establishment requests for processing, the problem of convenience and low success rate of call establishment after call exception interruption is solved, automatic call exception handling and establishment is realized, and call exceptions are improved. Flexibility and success rate of processing.

CN119211419APending Publication Date: 2024-12-27CHINA MOBILE INTERNET CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411137078.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-19
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

During the call, after the call is abnormally interrupted, the existing technology cannot effectively reconnect the call, resulting in a low convenience and success rate of call establishment.

Method used

By obtaining call exception messages, determining the exception handling strategy based on the call stage, generating a call establishment request and sending it to the terminal, receiving response messages for call establishment processing, realizing automated call exception handling and establishment, and improving the flexibility and success rate of call exception handling .

Benefits of technology

It improves the flexibility and success rate of call exception handling, simplifies the call establishment process, reduces the need for terminals to handle it themselves, and improves the convenience and efficiency after call exceptions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119211419A_ABST
    Figure CN119211419A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a call exception handling method and device, and the method comprises the steps: determining an exception handling strategy according to a call stage corresponding to a call exception message after obtaining the call exception message generated after a first terminal is in a call exception state, and performing exception processing on the call exception message according to the exception processing strategy, generating a call establishment request according to an exception processing result, sending the call establishment request to the first terminal, receiving a response message of the call establishment request returned by the first terminal, and performing call establishment processing on the first terminal and the second terminal based on the response message. According to the embodiment of the invention, the convenience and success rate of call establishment after the call is abnormal can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This document relates to the field of data processing technology, and in particular to a method and device for handling call exceptions. Background Art

[0002] With the popularization and development of telecommunication services, users' demands for using mobile phones to communicate in daily communication are also changing. Users often encounter abnormal interruptions during calls via mobile phones, which leads to users' increasing concern about the stability of calls via mobile phones.

[0003] Currently, during a call between a caller and a called party, if an abnormal interruption occurs, the platform will not reconnect the call, and the caller or the called party needs to establish the call by themselves, resulting in poor convenience in establishing the call after the call abnormality and a low success rate in establishing the call. Summary of the invention

[0004] An embodiment of the present specification aims to provide a method and device for handling call anomalies, so as to improve the convenience and success rate of call establishment after call anomalies.

[0005] To solve the above technical problems, an embodiment of this specification is implemented as follows:

[0006] In a first aspect, an embodiment of the present specification provides a method for handling call exceptions, which is applied to a call processing platform, and the method includes:

[0007] Obtaining a call abnormality message generated after the first terminal is in a call abnormality state;

[0008] Determine an exception handling strategy according to the call stage corresponding to the call exception message, and perform exception handling on the call exception message according to the exception handling strategy;

[0009] generating a call establishment request according to the exception processing result, and sending the call establishment request to the first terminal;

[0010] A response message to the call establishment request returned by the first terminal is received, and a call establishment process between the first terminal and the second terminal is performed based on the response message.

[0011] The call exception handling method provided in this embodiment obtains a call exception message generated after the first terminal is in a call exception state, determines an exception handling strategy based on the call stage corresponding to the call exception message, performs exception handling on the call exception message according to the exception handling strategy, and sends a call establishment request generated based on the exception handling result to the first terminal. According to the response message of the call establishment request returned by the first terminal, the call establishment processing between the first terminal and the second terminal is performed. In this way, different exception handling strategies are provided for call exception situations in different call stages, that is, refined call exception handling strategies are provided, and corresponding call establishment is performed, so as to improve the flexibility and success rate of call exception handling. At the same time, the call exception handling and call establishment processing are automatically performed through the call processing platform to avoid the terminal from establishing the call by itself, thereby improving the convenience and efficiency of call establishment after the call exception.

[0012] In a second aspect, another embodiment of the present specification provides another method for handling call exceptions, which is applied to a first terminal, and the method includes:

[0013] receiving a call establishment request;

[0014] Generate a response message according to the call establishment request, obtain the response message of the call establishment request and return it;

[0015] The call establishment request is generated according to an exception handling result obtained after performing exception handling on a call exception message according to an exception handling strategy, and the exception handling strategy is determined based on a call stage corresponding to the call exception message.

[0016] The call exception handling method provided in this embodiment generates a response message according to a call establishment request, obtains and returns a response message to the call establishment request; wherein the call establishment request is generated according to the exception handling result obtained after exception handling of the call exception message according to the exception handling strategy, and the exception handling strategy is determined based on the call stage corresponding to the call exception message, thereby providing different exception handling strategies for call exception situations in different call stages and performing corresponding call establishment, so as to improve the flexibility and success rate of call exception handling.

[0017] In a third aspect, another embodiment of the present specification provides a call exception processing device, which runs on a call processing platform, and the device includes:

[0018] A message acquisition module, used to acquire a call abnormality message generated after the first terminal is in a call abnormality state;

[0019] An exception handling module, used to determine an exception handling strategy according to the call stage corresponding to the call exception message, and perform exception handling on the call exception message according to the exception handling strategy;

[0020] A request generating module, configured to generate a call establishment request according to the exception processing result, and send the call establishment request to the first terminal;

[0021] The message receiving module is used to receive a response message of the call establishment request returned by the first terminal, and perform call establishment processing between the first terminal and the second terminal based on the response message.

[0022] In a fourth aspect, another embodiment of the present specification provides another call exception processing device, which runs on a first terminal, and the device includes:

[0023] A request receiving module, used for receiving a call establishment request;

[0024] A response message returning module is used to generate a response message according to the call establishment request, obtain and return the response message of the call establishment request; wherein, the call establishment request is generated according to the exception handling result obtained after exception handling of the call exception message according to the exception handling strategy, and the exception handling strategy is determined based on the call stage corresponding to the call exception message.

[0025] In the fifth aspect, another embodiment of the present specification provides a call exception handling device, the device comprising: a memory, a processor, and computer executable instructions stored in the memory and executable on the processor, the computer executable instructions when executed by the processor implement the steps of the call exception handling method as described in the first aspect above.

[0026] In the sixth aspect, another embodiment of the present specification provides another call exception handling device, the device comprising: a memory, a processor, and computer executable instructions stored on the memory and executable on the processor, and the computer executable instructions, when executed by the processor, implement the steps of the call exception handling method as described in the second aspect above.

[0027] In a seventh aspect, another embodiment of the present specification provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store computer-executable instructions, and when the computer-executable instructions are executed by a processor, the steps of the call exception handling method as described in the first aspect above are implemented.

[0028] In an eighth aspect, another embodiment of the present specification provides another computer-readable storage medium, wherein the computer-readable storage medium is used to store computer-executable instructions, and when the computer-executable instructions are executed by a processor, the steps of the call exception handling method as described in the second aspect above are implemented.

[0029] In the ninth aspect, another embodiment of the present specification provides a computer program product, wherein the computer program product includes a call exception handling program, and the call exception handling program is executed by a processor to implement the steps of the call exception handling method as described in the first aspect above.

[0030] In the tenth aspect, another embodiment of the present specification provides another computer program product, wherein the computer program product includes a call exception handling program, and the call exception handling program is executed by a processor to implement the steps of the call exception handling method as described in the second aspect above. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate one or more embodiments of the present specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present specification. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work.

[0032] Figure 1 A flowchart of a method for handling abnormal calls provided in one embodiment of this specification;

[0033] Figure 2 A schematic diagram of an exception handling process in a call phase provided by an embodiment of the present specification;

[0034] Figure 3 A schematic diagram of an exception handling process during a call ringing phase provided by an embodiment of this specification;

[0035] Figure 4 A schematic diagram of an exception handling process in a call establishment phase provided by an embodiment of the present specification;

[0036] Figure 5 A flowchart of a call exception handling method applied to a call scenario provided by an embodiment of this specification;

[0037] Figure 6 A flowchart of a call exception handling method applied to a call ringing scenario provided by an embodiment of this specification;

[0038] Figure 7 A flowchart of a call exception handling method applied to a call establishment scenario provided by an embodiment of this specification;

[0039] Figure 8 A flowchart of another method for handling abnormal calls provided in one embodiment of the present specification;

[0040] Fig. 9 A flowchart of another method for handling call exceptions in a call scenario provided by an embodiment of the present specification;

[0041] Fig.10 A processing flow chart of another call exception processing method applied to a call ringing scenario provided by an embodiment of this specification;

[0042] Fig.11 A flowchart of another method for handling call exceptions in a call establishment scenario provided by an embodiment of the present specification;

[0043] Fig.12 A schematic diagram of a call exception processing device provided in one embodiment of this specification;

[0044] Fig.13 A schematic diagram of another abnormal call processing device provided by an embodiment of this specification;

[0045] Fig.14 A schematic diagram of the structure of a call exception processing device provided in one embodiment of this specification;

[0046] Fig.15 A schematic diagram of the structure of another call exception handling device provided in one embodiment of the present specification. DETAILED DESCRIPTION

[0047] In order to enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the following will be combined with the drawings in one or more embodiments of this specification to clearly and completely describe the technical solutions in one or more embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on one or more embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this document.

[0048] An embodiment of a call abnormality processing method provided in this specification is as follows:

[0049] Reference Figure 1 The call exception handling method provided in this embodiment can be applied to a call processing platform, and specifically includes the following steps S102 to S108.

[0050] Step S102, obtaining a call abnormality message generated when the first terminal is in a call abnormality state.

[0051] In this embodiment, the first terminal may be a terminal of either party (either party) in the call process, and the second terminal is also a terminal of the other party participating in the call process.

[0052] The abnormal call status includes the abnormal call status in the call calling stage, the abnormal call status in the call ringing stage and / or the abnormal call status in the call establishment stage; the call calling stage refers to the stage of making a call, the call ringing stage refers to the stage of the terminal ringing, and the call establishment stage refers to the stage in the call, that is, the stage in the call process. The abnormal call status in the call calling stage may be a call unanswered state in the call calling stage; the abnormal call status in the call ringing stage may be a call unconnected state in the call ringing stage; the abnormal call status in the call establishment stage may be a media timeout state in the call establishment stage. The call calling stage, the call ringing stage and the call establishment stage may belong to different call stages.

[0053] The call abnormality message may be a call abnormality signaling. Optionally, the call abnormality message is sent through a call control network element in the geographical area to which the terminal number of the second terminal belongs or is sent by the first terminal. Specifically, when the call abnormality message is sent through a call control network element in the geographical area to which the terminal number of the second terminal belongs, the second terminal may be a calling terminal and the first terminal may be a called terminal. The terminal number of the second terminal may be the communication number of the user to which the second terminal belongs. The geographical area may be a province, city, district, etc. The call control network element may be a S-CSCF (Serving-Call Session Control Function), which is responsible for providing session control services for users.

[0054] In addition, since the first terminal and the second terminal in this embodiment can communicate through a virtual number (such as an intermediate number), the terminal number of the second terminal mentioned above can also be the virtual number of the second terminal; the virtual number of the second terminal refers to the virtual number assigned to the second terminal by the call processing platform in order to realize the call between the first terminal and the second terminal, that is, the calling terminal can call the call processing platform, the call processing platform can call the called terminal, and the calling terminal and the called terminal do not need to call directly.

[0055] In the first case, the second terminal can generate a first call establishment request, and the second terminal can send the first call establishment request to a call control network element in a geographical area to which the terminal number of the second terminal belongs. After receiving the first call establishment request, the call control network element can forward the first call establishment request to a call processing platform. The call processing platform generates a second call establishment request based on the first call establishment request, and can return the second call establishment request to the call control network element in the geographical area to which the terminal number of the second terminal belongs. The call control network element can send the second call establishment request to the first terminal. After that, the call control network element can send a call abnormality message to the call processing platform when it is detected that the first terminal is in an abnormal call state (for example, the duration of the first terminal's non-answering exceeds a preset duration); for example, the call abnormality message is a 500 signaling or a 487 signaling, specifically a 500 Internal Server Error signaling or a 487 Request Terminated signaling. The causes of these two signalings may be abnormal call line network elements or triggering call interception, etc.

[0056] The call establishment request in this embodiment may be a call establishment signaling, such as an invite signaling. The first call establishment request carries a first call identifier, and the second call establishment request may be a call establishment request generated by replacing the first call identifier in the first call establishment request with a second call identifier, where the call identifier may be a call-id; in the process of generating the second call establishment request based on the first call establishment request, the call processing platform may also extract the S-CSCF address in the first call establishment request, and then generate the second call establishment request based on the first call establishment request, and send the second call establishment request to the corresponding S-CSCF according to the S-CSCF address. For example, if the first call establishment request is an invite signaling carrying call-id1, the S-CSCF address in the Route header field in the invite signaling may be extracted.

[0057] For example, Figure 2As shown, during the process of initiating a call, the second terminal can generate an invite signaling containing call-id1. The second terminal will send the invite signaling containing call-id1 to the S-CSCF of the province to which the terminal number of the second terminal belongs. The S-CSCF will forward the invite signaling containing call-id1 to the call processing platform. The call processing platform will replace call-id1 in the invite signaling containing call-id1 with call-id2, and return the invite signaling containing call-id2 to the S-CSCF. The S-CSCF returns a temporary response to the call processing platform, which can be a 100 signaling. The S-CSCF will send the invite signaling containing call-id2 to the first terminal. After that, if the S-CSCF detects that the first terminal is in an abnormal call state, it will send a call abnormality signaling to the call processing platform, which can be a 500 signaling or a 487 signaling.

[0058] It should be added that the call processing platform can be a virtual number platform, that is, during the call between the first terminal and the second terminal, a virtual number is provided for the first terminal and the second terminal to make the call, so as to protect user privacy. For example, the call processing platform can be an intermediate number platform. The first case mentioned above can occur in the call call stage. In the first case, the first terminal can be the called terminal and the second terminal can be the calling terminal.

[0059] In the second case, the first terminal can generate a call exception message including the reason for resource limitation and send it to the call processing platform; for example, the call exception message here can be a 503 signaling, in which the reason for resource limitation can be a reason header field and a warning header field, the Q850 value of the reason header field is 41-47, and the warnning header field contains Insufficient Bearer Resource. The 503 signaling in this case means that the call cannot be continued due to resource limitation, that is, the call is dropped due to insufficient media layer bearer resources; in the second case, the first terminal can be a calling terminal and / or a called terminal.

[0060] It should be added that, in the second case, before the first terminal generates a call exception message containing the reason for resource limitation and sends it to the call processing platform, the first terminal and the second terminal can conduct media negotiation. After the media negotiation is completed, the call processing platform can upload the media information of the first terminal and the media information of the second terminal to the current media server. After that, the called terminal can return a ringing request to the communication processing platform, and the communication processing platform can forward the ringing request to the calling terminal; for example, the ringing request can be 180 signaling. After the calling terminal receives the ringing request, the calling terminal starts ringing. After that, the calling terminal or the called terminal may have network or other abnormal conditions, so the first terminal can generate a call exception message containing the reason for resource limitation and send it to the call processing platform. At this time, the first terminal can be the calling terminal and / or the called terminal; the media information here can include channel parameters and / or encoding type of the media channel, that is, the media encoding type. The channel parameters of the media channel can specifically be the IP (Internet Protocol) and port of the media channel.

[0061] During the process of media negotiation between the first terminal and the second terminal, the second terminal can generate a media negotiation request containing the media information of the second terminal and send it to the call processing platform. The call processing platform can forward the media negotiation request containing the media information of the second terminal to the first terminal. After the first terminal receives the media negotiation request containing the media information of the second terminal, it can generate a negotiation response message containing the media information of the first terminal and return it to the communication processing platform. The communication processing platform can return the negotiation response message containing the media information of the first terminal to the second terminal. At this time, the communication processing platform obtains the media information of the first terminal and the media information of the second terminal, and can upload the media information of the first terminal and the media information of the second terminal to the current media server. The second situation can occur in the call ringing stage.

[0062] For example, Figure 3 As shown, the call processing platform can be composed of a call processing module, a media server 1, and a media server 2. The second terminal generates a media negotiation request (update signaling) containing the media information SDP of the second terminal and sends it to the call processing module. The call processing module forwards the update signaling to the first terminal. The first terminal can generate a negotiation response message (200 signaling) containing the media information SDP of the first terminal and return it to the call processing module. The call processing module returns the 200 signaling to the second terminal. The first terminal and the second terminal complete the media negotiation. After that, the first terminal can generate a ringing message (180 signaling) and send it to the call processing module. The call processing module forwards the ringing message to the second terminal, and the second terminal enters the ringing state. Thereafter, the first terminal can generate a call abnormality message (503 signaling) after being in a call abnormality state and send it to the call processing module.

[0063] In the third case, the first terminal may also generate a call termination message including a timeout reason as a call abnormality message and send it to the call processing platform after detecting that the duration of not receiving the media data from the second terminal exceeds a preset duration threshold; the call abnormality message here may be BYE signaling, the timeout reason may be the timeout reason obtained after writing the RTP / RTCP time-out reason in the Reason header field, and the timeout reason here may be a media timeout reason; the first terminal here may be a calling terminal or a called terminal. Before the first terminal generates a call termination message including a timeout reason as a call abnormality message and sends it to the call processing platform, the first terminal may generate a ringing message and send it to the call processing platform, and the call processing platform may forward the ringing message to the second terminal, after which the second terminal starts ringing, and the first terminal may generate a call establishment message and send it to the call processing platform, and the call processing platform may forward the call establishment message to the second terminal, indicating that a call is established between the first terminal and the second terminal. The third case may occur in the call establishment phase.

[0064] For example, Figure 4 As shown, the first terminal generates a ringing message (180 signaling) and sends it to the call processing module. The call processing module forwards the ringing message to the second terminal. After that, the second terminal enters the ringing state. The first terminal then generates a call establishment message (200 signaling) and sends it to the call processing module. The call processing module forwards the call establishment message to the second terminal. At this time, both the first terminal and the second terminal are in the call establishment state, that is, in the connected state. After that, the first terminal generates a call termination message (BYE signaling) containing the timeout reason and sends it to the call processing module.

[0065] In actual applications, abnormal interruptions may occur in multiple call stages during a call. For example, a call cannot be established during the call calling stage due to an abnormality in the call line network element or triggering call interception. Another example is a call drop during the call ringing stage due to insufficient media layer bearer resources. During the call establishment stage, media data cannot be transmitted normally due to reasons such as the terminal being in an area with poor signals, or media channel stability fluctuations, bandwidth limitations, etc., thereby triggering the media reception timeout mechanism of the other terminal and actively disconnecting the call. In response to this, the present embodiment provides different exception handling strategies for abnormal interruptions in the call calling stage, call ringing stage and / or call establishment stage, respectively, to ensure that calls can be conducted normally at each call stage.

[0066] In the process of obtaining the call abnormality message generated after the first terminal is in the call abnormal state, this embodiment can obtain the call abnormality message generated after the first terminal is in the call abnormal state and sent by the call control network element. The call control network element here can be the call control network element of the geographical area to which the terminal number of the second terminal belongs, and can also obtain the call abnormality message generated after the first terminal is in the call abnormal state and sent by the first terminal.

[0067] The call abnormality message mentioned above may be sent by the call control network element or the first terminal. In the case where the call abnormality message is sent by the first terminal, the first terminal generates the call abnormality message and sends it to the call processing platform in the following manner:

[0068] Generate and submit a call exception message containing the reason for the resource limitation; or,

[0069] Detecting whether a duration for which the media data of the second terminal is not received exceeds a preset duration threshold;

[0070] If so, a call termination message including the timeout reason is generated as a call exception message and submitted.

[0071] The abnormal call message here can be abnormal call signaling, specifically 503 signaling, where the resource limitation reason can be the reason header field and the warnning header field, the Q850 value of the reason header field is 41-47, and the warnning header field contains Insufficient Bearer Resource. In this case, the 503 signaling means that the call cannot be continued due to resource limitation, that is, the call is dropped due to insufficient media layer bearer resources. The abnormal call message here can be BYE signaling, and the timeout reason can be the timeout reason obtained after writing the RTP / RTCP time-out reason in the Reason header field. The timeout reason here can be the media timeout reason; submission here can be submission to the call processing platform.

[0072] It should be added that in order to prevent the call processing platform from sending the call abnormality message to the second terminal, after obtaining the call abnormality message generated when the first terminal is in the call abnormal state, the call abnormality message can be intercepted.

[0073] Step S104, determining an exception handling strategy according to the call stage corresponding to the call exception message, and performing exception handling on the call exception message according to the exception handling strategy.

[0074] The above-mentioned call exception message generated after the first terminal is in a call abnormal state, in this step, determines the exception handling strategy according to the call stage corresponding to the call exception message, and performs exception handling on the call exception message according to the exception handling strategy; the call stage includes the call call stage, the call ringing stage and / or the call establishment stage, and the exception handling strategy refers to the strategy for performing exception handling, and the exception handling strategy includes the exception handling strategy corresponding to the call call stage, the exception handling strategy corresponding to the call ringing stage and / or the exception handling strategy corresponding to the call establishment stage.

[0075] (1) Calling stage

[0076] In actual applications, when the first terminal and the second terminal are in a call call stage, a call line network element may be abnormal or a call interception may be triggered, which may cause the first terminal to be unable to connect, and the call control network element may return a call abnormality message. In this case, the call line can be changed to obtain an updated call line, and a call establishment request can be sent to the first terminal through the updated call line, that is, the call establishment request is resent to the first terminal through the updated call line; in the first optional implementation manner provided by this embodiment, in the process of performing abnormal processing on the call abnormality message according to the abnormal processing strategy, the following operations are performed:

[0077] According to the exception handling strategy corresponding to the call phase, the geographical area to which the terminal number of the second terminal belongs is determined, and a call access network element in the geographical area is searched.

[0078] The call access network element may be an I-CSCF (Interrogating-Call Session Control Function), which is responsible for controlling and managing user sessions. The geographical area here may be a province, city, district or other geographical area.

[0079] (2) Ringing phase

[0080] When the first terminal and the second terminal are in the call ringing stage, a call may be dropped due to insufficient media layer bearer resources, and the call cannot be established normally, causing the first terminal to return a call abnormality message. In response to this, the media server can be changed, and a media channel can be created on the changed preset media server to obtain an updated media channel, so that the media stream is processed by the media server with sufficient resources to avoid the call being unable to be connected normally during the call ringing stage; specifically, in the second optional implementation manner provided by this embodiment, in the process of performing abnormal processing on the call abnormality message according to the abnormal processing strategy, the following operations are performed:

[0081] According to the exception handling strategy corresponding to the call ringing stage, the media channel of the current media server is closed, and a media channel is created on the preset media server to obtain an updated media channel.

[0082] The media server refers to a media server that transmits media data.

[0083] Specifically, the call processing module in the call processing platform can send a channel closing request to the current media server according to the exception handling strategy corresponding to the call ringing stage. The current media server can close the media channel based on the channel closing request. Then the call processing module can generate a channel creation request and send it to the preset media server, so that the preset media server creates the media channel to obtain an updated media channel. The preset media server can return the channel parameters of the updated media channel to the call processing module. For example, Figure 3 As shown, the call processing module sends a channel closing request to the current media server (media server 1), media server 1 closes the media channel, the call processing module generates a channel creation request and sends it to the preset media server (media server 2), and media server 2 creates a media channel to obtain an updated media channel.

[0084] (3) Call establishment phase

[0085] During the process of establishing a call between the first terminal and the second terminal, that is, the first terminal and the second terminal are already in a call, in this case, the second terminal may have problems such as unstable signal and the call is interrupted, for example, the terminal is in an area with poor signal, the stability of the media channel is poor, the bandwidth is limited, etc., resulting in the inability to transmit media data normally, so that the first terminal may not receive the media data of the other end for a long time, resulting in media timeout, active disconnection, that is, receiving the call abnormality message sent by the first terminal. In view of this, in order to improve the success rate of call establishment and reduce the probability of call interruption again after the call is established; in the third optional implementation manner provided by this embodiment, in the process of performing abnormal processing on the call abnormality message according to the abnormal processing strategy, the following operations are performed:

[0086] Generate a call termination request according to the exception handling strategy corresponding to the call establishment phase and send it to the first terminal;

[0087] Determine the changed encoding type for the encoding type change, and create a media channel on a preset media server to obtain an updated media channel.

[0088] Optionally, the encoding type of the first terminal and the second terminal at this time, that is, the media encoding type is AMR or AMRWB. The call termination request refers to a request for call termination, and the call termination request can be a 200 signaling, which represents the signaling for terminating the call of the first terminal. The changed encoding type includes an encoding type that will not cause media timeout, such as encoding type PCMA. The preset media server can be a pre-set media server with sufficient resources.

[0089] Specifically, in the process of the preset media server creating a media channel to obtain an updated media channel, the call processing module in the call processing platform can generate a channel creation request and send it to the preset media server, so that the preset media server creates a media channel to obtain an updated media channel, and the preset media server can return the channel parameters of the updated media channel to the call processing module. For example, Figure 4 As shown, the call processing module generates a call termination request (200 signaling) to terminate the call of the first terminal, determines the changed encoding type to be changed, can close the media channel of media server 1, and creates a media channel on the preset media server (media server 2) to obtain an updated media channel.

[0090] It should be added that, in the process of performing exception handling on the call exception message according to the exception handling strategy, it is also possible to determine only to change the coding type or to create a media channel. Specifically, according to the exception handling strategy corresponding to the call establishment phase, a call termination request can be generated and sent to the first terminal; determine to change the coding type or to create a media channel on a preset media server to obtain an updated media channel.

[0091] Step S106: Generate a call establishment request according to the exception processing result, and send the call establishment request to the first terminal.

[0092] The call establishment request described in this embodiment refers to a request for establishing a call, and may specifically be a call request, for example, the call establishment request may be an invite signaling.

[0093] The above provides different exception handling strategies for the three call stages: call calling stage, call ringing stage and call establishment stage. This embodiment describes in detail the process of generating a call establishment request based on different exception handling results and sending the call establishment request to the first terminal.

[0094] (1) Calling stage

[0095] The above-mentioned exception handling strategy corresponding to the call stage is used to determine the geographical area to which the terminal number of the second terminal belongs, and to find the call access network element in the geographical area. After that, in the process of generating a call establishment request according to the exception handling result, a call establishment request carrying a call identifier can be generated after finding and obtaining the call access network element. The call identifier here can be call-id.

[0096] In an optional implementation manner provided by this embodiment, in the process of sending the call establishment request to the first terminal, the following operation is performed: sending the call establishment request to the first terminal through the call access network element.

[0097] It should be noted that, since the call establishment request is initially sent to the first terminal through the call control network element of the geographical area to which the terminal number of the second terminal belongs, after the call control network element returns the call abnormality message, the call establishment request is sent to the first terminal through the call access network element of the geographical area to which the terminal number of the second terminal belongs. This can bypass the original call line, change the call line and re-send the call establishment request to the first terminal, thereby improving the success rate of call establishment.

[0098] Accordingly, the first terminal can receive the call establishment request, generate a response message according to the call establishment request, obtain the response message of the call establishment request, and return the response message of the call establishment request to the call processing platform, so as to perform call establishment processing between the first terminal and the second terminal based on the response message. In the process of receiving the call establishment request, generating a response message according to the call establishment request, obtaining the response message of the call establishment request, and returning the response message of the call establishment request to the call processing platform, the first terminal can receive the call establishment request sent by the call access network element of the geographical area to which the terminal number of the second terminal belongs, generate a response message of the call establishment request, and send the response message to the call processing platform through the call access network element of the geographical area to which the terminal number of the second terminal belongs.

[0099] For example, Figure 2 As shown, the call processing platform generates an invite signaling including call-id3, and sends the invite signaling including call-id3 to the first terminal through the I-CSCF of the province to which the terminal number of the second terminal belongs. The first terminal can generate a temporary response (100 signaling) and return it to the call processing platform through the I-CSCF. The first terminal then generates a response message (183 signaling) of the invite signaling including call-id3, and sends it to the call processing platform through the I-CSCF.

[0100] Further, after sending a call establishment request to the first terminal through the call access network element, the first terminal may still be unable to connect. In view of this, in order to further improve the success rate of call establishment, in an optional implementation manner provided by this embodiment, based on the above-mentioned exception handling strategy corresponding to the call call stage, determining the geographical area to which the terminal number of the second terminal belongs, and searching for the call access network element in the geographical area, after the above-mentioned step S106 is executed, the following operation is further performed:

[0101] receiving a call abnormality message returned by the call access network element, and determining a call control network element in a preset geographical area in response to the received call abnormality message;

[0102] Generate a second call establishment request, and send the second call establishment request to the first terminal through the call control network element.

[0103] The preset geographical area may be a geographical area different from the geographical area to which the terminal number of the second terminal belongs, and the preset geographical area here may be a preset province, a preset city, a preset region, etc. The second call establishment request here may be a second call establishment request obtained by replacing the call identifier in the call establishment request with the generated second call identifier. For example, if the call establishment request is an invite signaling carrying call-id3, the second call establishment request may be a second call establishment request obtained by replacing call-id3 in the call establishment request with the generated call-id4.

[0104] The call establishment request is sent through the call control network element of the preset geographical area, avoiding the sending of the call establishment request through the call control network element and the call access network element of the geographical area to which the terminal number of the second terminal belongs, that is, avoiding the original call line, and sending the call establishment request to the first terminal through the new call line, thereby further improving the success rate of call establishment.

[0105] Accordingly, in the process of receiving a call establishment request, generating a response message according to the call establishment request, obtaining a response message to the call establishment request, and returning the response message to the call establishment request to the call processing platform, the first terminal can receive a call establishment request sent by a call access network element in the geographical area to which the terminal number of the second terminal belongs, and then receive a secondary call establishment request sent by a call control network element in a preset geographical area, generate a response message to the secondary call establishment request, and return the response message to the secondary call establishment request to the call processing platform through the call control network element in the preset geographical area. For example, the first terminal receives a secondary call establishment request sent by an S-CSCF in a preset province as an invite signaling carrying call-id4, generates a response message to the secondary call establishment request as a 183 signaling, and sends the 183 signaling to the call processing platform through the S-CSCF in the preset province.

[0106] It should be added that, during the call phase, after the second call establishment request is sent to the first terminal through the call control network element, a call abnormality message may still be received from the call control network element. In this case, three, four, and other call establishment requests can continue to be generated, and subsequent call establishment requests can be sent to the first terminal through call control network elements or call access network elements in other geographical areas until a response message returned by the first terminal is received.

[0107] (2) Ringing phase

[0108] In the above-mentioned process of closing the media channel of the current media server according to the exception handling strategy corresponding to the call ringing stage, creating a media channel on the preset media server, and obtaining an updated media channel, in an optional implementation manner provided by this embodiment, in the process of generating a call establishment request according to the exception handling result, the following operations are performed:

[0109] The call establishment request is generated according to the channel parameters of the updated media channel.

[0110] For example, Figure 3 As shown, the IP and port of the updated media channel are encapsulated as SDP (Session Description Protocol, a standard protocol that describes the media types used in multimedia sessions, etc.) information, an invite signaling is generated according to the SDP information, and the invite signaling is sent to the first terminal. Specifically, a call establishment request (invite signaling) can be sent to the first terminal through another S-CSCF.

[0111] Accordingly, after receiving the call establishment request, the first terminal may perform the following operations in the process of generating a response message according to the call establishment request and obtaining the response message of the call establishment request:

[0112] Parsing the call establishment request to obtain channel parameters for updating a media channel, and determining channel parameters for the media channel of the first terminal according to the channel parameters;

[0113] The response message is generated according to the channel parameters of the media channel of the first terminal.

[0114] It should be added that, during the call ringing phase, a call establishment request is generated based on the exception processing result, and before, after, or at the same time as the call establishment request is sent to the first terminal, since the updated media channel is recreated and the channel parameters of the updated media channel are changed, media negotiation is re-performed with the second terminal. Specifically, a media negotiation request can be generated based on the channel parameters of the updated media channel and sent to the second terminal. The second terminal can generate a negotiation response message for the media negotiation request and return it to the call processing platform. The call processing platform can obtain the negotiation response message for the media negotiation request returned by the second terminal. For example, Figure 3 As shown, SDP information is generated according to the IP and port of the updated media channel, and then update signaling is generated according to the SDP information. The call processing module sends the update signaling to the second terminal, and the second terminal generates a response message (200 signaling) for the update signaling and returns it to the call processing module, indicating that the media negotiation of the second terminal is completed.

[0115] It should also be added that, since the second terminal is already in a ringing state during the call ringing stage, and in the process of establishing a call between the call processing platform and the first terminal, that is, in the process of reconnecting with the first terminal, the call establishment process still needs a certain amount of time. Therefore, in order to prevent the occurrence of RTP timeout, the call processing platform can generate a call establishment request according to the exception processing result, and send a call reconnection prompt tone to the second terminal before, after or at the same time as sending the call establishment request to the first terminal; in addition, after the above-mentioned call processing platform obtains the negotiation response message of the media negotiation request returned by the second terminal, the call processing platform can send a call reconnection prompt tone to the second terminal. In the process of sending the call reconnection prompt tone to the second terminal, the call processing module in the call processing platform can send a prompt tone request to the preset media server, and the preset media server in the call processing platform can send a call reconnection prompt tone to the second terminal, so as to avoid the second terminal in the ringing state not receiving the media data of the first terminal for a long time, causing the second terminal to actively disconnect the line, so that the second terminal remains in the ringing state until a call is established with the first terminal.

[0116] For example, Figure 3As shown, after the second terminal generates a response message (200 signaling) of the update signaling and returns it to the call processing module, the call processing module sends a prompt tone request to the media server 2, and the media server 2 sends a call reconnection prompt tone to the second terminal.

[0117] (3) Call establishment phase

[0118] Based on the third optional implementation method of performing exception handling on the call exception message according to the exception handling strategy, in the process of generating a call establishment request according to the exception handling result and sending the call establishment request to the first terminal, a call establishment request can be generated according to the channel parameters of the updated media channel, and the call establishment request can be sent to the first terminal; thereby, by updating the channel parameters of the media channel, the timeout disconnection caused by the fluctuation of the media channel can be avoided, and the stability of the media channel can be improved by updating the media channel. For example, Figure 4 As shown, an invite signaling is generated according to the IP and port of the updated media channel, and the invite signaling is sent to the first terminal as a call establishment request.

[0119] Accordingly, in the process of receiving the call establishment request, generating a response message according to the call establishment request, obtaining the response message of the call establishment request, and returning the response message of the call establishment request to the call processing platform, the first terminal can receive the call establishment request sent by the call processing platform, parse the call establishment request to obtain the channel parameters of the updated media channel, determine the channel parameters of the media channel of the first terminal according to the channel parameters of the updated media channel, generate a response message according to the channel parameters of the media channel of the first terminal, and return it to the call processing platform. For example, Figure 4 As shown, the first terminal may return a temporary response (100 signaling), and then generate a response message (183 signaling) according to the channel parameters of the media channel of the first terminal and return it to the call processing module.

[0120] In addition, in the process of generating a call establishment request according to the exception processing result and sending the call establishment request to the first terminal, a call establishment request can also be generated according to the channel parameters of the updated media channel and the changed encoding type, and the call establishment request can be sent to the first terminal. Accordingly, in the process of receiving the call establishment request, generating a response message according to the call establishment request, obtaining the response message of the call establishment request, and returning the response message of the call establishment request to the call processing platform, the first terminal can receive the call establishment request sent by the call processing platform, parse the call establishment request to obtain the channel parameters of the updated media channel and the changed encoding type, determine the channel parameters of the media channel of the first terminal according to the channel parameters, select the target encoding type in the changed encoding type, and generate a response message according to the channel parameters and the target encoding type of the media channel of the first terminal.

[0121] In specific implementation, according to the exception handling strategy corresponding to the call establishment stage, a call termination request is generated and sent to the first terminal, the changed encoding type for the encoding type change is determined, and on the basis of creating a media channel on the preset media server to obtain an updated media channel, since the media channel and the encoding type have been changed, it is necessary to re-negotiate the media with the second terminal; in an optional implementation manner provided by this embodiment, after determining the exception handling strategy according to the call stage corresponding to the call abnormality message, and performing the exception handling on the call abnormality message according to the exception handling strategy, the following operations are also performed:

[0122] generating a media negotiation request according to the changed encoding type and the channel parameter of the updated media channel, and sending the media negotiation request to the second terminal;

[0123] Acquire a negotiation response message of the media negotiation request returned by the second terminal.

[0124] For example, Figure 4 As shown, a media negotiation request (invite signaling) is generated according to changing the coding type PCMA and updating the IP and port of the media channel, and the media negotiation request (invite signaling) is sent to the second terminal. The second terminal generates a negotiation response message (200 signaling) for the media negotiation request, which represents that the second terminal agrees to change the coding type PCMA and update the IP and port of the media channel. After that, a confirmation request (ACK signaling) for the negotiation response message can also be generated and sent to the second terminal. After that, the media negotiation for changing the coding type and updating the channel parameters of the media channel is completed with the second terminal.

[0125] It should be added that, after obtaining the negotiation response message of the media negotiation request returned by the second terminal during the call establishment phase, since the second terminal is in a call establishment state at this time, that is, the second terminal is in a connected state, in order to improve the call experience of the second terminal, a call reconnection prompt tone can be generated and sent to the second terminal. Specifically, the call processing module in the call processing platform can send a prompt tone request to the preset media server, and the preset media server can send a call reconnection prompt tone to the second terminal based on the prompt tone request, thereby informing the second terminal that the call is being reestablished; for example Figure 4 As shown, the media server 2 sends a call reconnection prompt tone to the second terminal, informing the second terminal that the call is being reestablished.

[0126] During the specific execution process, the call processing platform generates a call establishment request based on the exception processing result, and sends the call establishment request to the first terminal. Correspondingly, the first terminal can receive the call establishment request, generate a response message based on the call establishment request, obtain the response message of the call establishment request, and return the response message of the call establishment request to the call processing platform, so as to perform call establishment processing between the first terminal and the second terminal based on the response message.

[0127] Since the call establishment request sent by the call processing platform to the first terminal may be generated in the call calling stage, the call ringing stage or the call establishment stage, when the first terminal generates a response message according to the call establishment request and obtains the response message of the call establishment request, the implementation process of the first terminal generating the response message is also described in detail for the three call stages: the call calling stage, the call ringing stage and the call establishment stage.

[0128] Step S108: receiving a response message to the call establishment request returned by the first terminal, and performing call establishment processing between the first terminal and the second terminal based on the response message.

[0129] In the above step, a call establishment request is generated according to the exception processing result, and the call establishment request is sent to the first terminal. In this step, a response message of the call establishment request returned by the first terminal is received, and the call establishment process between the first terminal and the second terminal is performed based on the response message. The response message of the call establishment request in this embodiment includes a confirmation message for confirming the call establishment request, and the response message can be 183 signaling.

[0130] (1) Calling stage

[0131] During the call phase, the call processing platform receives a response message to the call establishment request returned by the first terminal. The response message may be a confirmation message, indicating that the call establishment request has been received and processing has begun. The specific response message may be 183 signaling.

[0132] In the process of receiving the response message of the call establishment request returned by the first terminal, the call processing platform can receive the response message of the call establishment request returned by the first terminal through the call access network element of the geographical area to which the terminal number of the second terminal belongs; in the process of performing call establishment processing between the first terminal and the second terminal based on the response message, the call processing platform can send the response message of the call establishment request to the second terminal through the call control network element of the geographical area to which the terminal number of the second terminal belongs, the second terminal can send a reply message to the first terminal through the call processing platform, and the first terminal can return a confirmation message of the reply message to the second terminal through the call processing platform. After that, the resource reservation and media negotiation between the first terminal and the second terminal are completed, and the ringing stage can be entered. After the connection, the call between the first terminal and the second terminal can be established based on the virtual number.

[0133] For example, Figure 2 As shown, the call processing platform receives a response message (183 signaling) to the call establishment request sent by the I-CSCF of the province to which the terminal number of the second terminal belongs, and sends the 183 signaling to the second terminal through the S-CSCF of the province to which the terminal number of the second terminal belongs. The second terminal can send a PRACK signaling to the first terminal through the call processing platform, and the first terminal returns a 200 signaling to the second terminal through the call processing platform. Thereafter, resource reservation processing and media negotiation between the first terminal and the second terminal can be performed, and the ringing stage is entered after the media negotiation. After the connection, a call between the first terminal and the second terminal can be established based on the virtual number.

[0134] Based on the above-mentioned generation of the second call establishment request and sending the second call establishment request to the first terminal through the call control network element, in the process of receiving a response message to the call establishment request returned by the first terminal, and performing call establishment processing between the first terminal and the second terminal based on the response message, a response message to the second call establishment request returned by the first terminal through the call control network element can be received, and the call establishment processing can be performed based on the response message to the second call establishment request.

[0135] (2) Ringing phase

[0136] In the call ringing stage, the call processing platform may receive a response message carrying the channel parameters of the media channel of the first terminal returned by the first terminal in the process of receiving the response message of the call establishment request returned by the first terminal; in the process of performing the call establishment process between the first terminal and the second terminal based on the response message, the media negotiation process between the first terminal and the second terminal may be performed based on the response message. After the media negotiation, the first terminal may generate a ringing message and send it to the call processing platform. Here, since the second terminal is already in the ringing state, there is no need to send the ringing message to the second terminal. The call processing platform may receive and intercept the ringing message sent by the first terminal, send the ringing tone of the first terminal to the second terminal, and then receive the call establishment message sent by the first terminal and send the call establishment message to the second terminal. After that, the first terminal and the second terminal establish a call. In the process of performing the media negotiation process between the first terminal and the second terminal based on the response message, a media negotiation request may be generated based on the encoding type of the second terminal after receiving the response message and sent to the first terminal. The first terminal may respond to the media negotiation request and generate a negotiation response message according to the target encoding type determined in the encoding type and return it to the call processing platform.

[0137] For example, Figure 3 As shown, after receiving the response message (183 signaling), the call processing module can further generate a response request (PRACK signaling) for the response message and return it to the first terminal. The first terminal can generate a response message (200 signaling) and return it to the call processing module, which here represents the completion of resource reservation. After that, the call processing module can generate a media negotiation request (update signaling) based on the encoding type of the second terminal and send it to the first terminal, that is, initiate media negotiation to the first terminal. The first terminal can respond to the update signaling and generate 200 signaling, i.e., a negotiation response message, according to the target encoding type determined in the encoding type and return it to the call processing module. Thereafter, the first terminal generates a ringing message (180 signaling) and sends it to the call processing module. The call processing module receives and intercepts the 180 signaling. The first terminal then generates a call establishment message (200 signaling) and sends it to the call processing module, which represents that the first terminal has been connected. The call processing module sends the 200 signaling to the second terminal, and the first terminal establishes a call with the second terminal.

[0138] (3) Call establishment phase

[0139] During the call establishment phase, the call processing platform may receive a response message carrying the channel parameters of the media channel of the first terminal returned by the first terminal, or may receive a response message carrying the channel parameters and target coding type of the media channel of the first terminal returned by the first terminal, in the process of receiving the response message of the call establishment request returned by the first terminal;

[0140] In the case where the call processing platform receives a response message returned by the first terminal carrying the channel parameters and target coding type of the media channel of the first terminal, since the second terminal is already in the call establishment state, i.e., the connected state, the first terminal may also generate a ringing message and send it to the call processing platform, and the call processing platform may intercept the ringing message. The first terminal may also generate a call establishment message and send it to the call processing platform, and the call processing platform may intercept the call establishment message. After that, the first terminal and the second terminal establish a call. In the case where the call processing platform receives a response message returned by the first terminal carrying the channel parameters of the media channel of the first terminal, the call processing platform may store the channel parameters of the media channel of the first terminal. The call processing platform may also generate a media negotiation request based on the change of the coding type and send it to the first terminal. After that, the first terminal may perform the following operations:

[0141] receiving a media negotiation request generated based on a change in encoding type;

[0142] In response to the media negotiation request, a target encoding type is determined in the changed encoding type, and a negotiation response message including the target encoding type is generated and returned.

[0143] After the call processing platform receives the negotiation response message, the target coding type can be stored. The first terminal can also generate a ringing message and send it to the call processing platform. The call processing platform can intercept the ringing message. The first terminal can also generate a call establishment message and send it to the call processing platform. The call processing platform can intercept the call establishment message. After that, the first terminal establishes a call with the second terminal.

[0144] For example, Figure 4As shown, after receiving the response message (183 signaling), the call processing module can further generate a response request (PRACK signaling) of the response message and return it to the first terminal. The first terminal can generate a response message (200 signaling) and return it to the call processing module, which here represents the completion of resource reservation. After that, the call processing module can generate a media negotiation request (update signaling) based on the changed coding type and send it to the first terminal, that is, initiate media negotiation to the first terminal. The first terminal can respond to the update signaling and generate 200 signaling, that is, a negotiation response message, according to the target coding type determined in the changed coding type and return it to the call processing module. After that, the call processing module can update the coding type, that is, change the target coding type to the media The first terminal generates a ringing message (180 signaling) and sends it to the call processing module. The call processing module receives and intercepts the 180 signaling. The first terminal then generates a call establishment message (200 signaling) and sends it to the call processing module. The call processing module receives and intercepts the 200 signaling. The first terminal establishes a call with the second terminal. Thereafter, the first terminal or the second terminal may generate a call termination message (BYE signaling) and send it to the call processing module. The call processing module may forward the call termination message to another terminal. The other terminal generates a confirmation message (200 signaling) and sends it to the call processing module. The call processing module returns the confirmation message to the first terminal or the second terminal. At this time, the first terminal and the second terminal end the call.

[0145] The following combination Figure 5 , taking the application of the call exception handling method provided by this embodiment in a call call scenario as an example, the call exception handling method provided by this embodiment is further described. Figure 5 The call exception handling method applied to the call call scenario specifically includes the following steps.

[0146] Step S502: Obtain a call exception message sent by the S-CSCF of the geographical area to which the terminal number of the calling terminal belongs. Optionally, the call exception message is generated after the called terminal is in a call exception state.

[0147] Step S504: according to the exception handling strategy corresponding to the call phase, find the I-CSCF of the geographical area to which the terminal number of the calling terminal belongs.

[0148] Step S506: Generate a call establishment request and send the call establishment request to the called terminal through the I-CSCF.

[0149] Step S508: receiving a response message of the call establishment request returned by the called terminal, and sending the response message to the calling terminal through the S-CSCF.

[0150] Step S510: Establishing a call between the calling terminal and the called terminal according to a response message to the response message sent by the calling terminal.

[0151] The following combination Figure 6 , taking the application of the call abnormality processing method provided by this embodiment in the call ringing scenario as an example, the call abnormality processing method provided by this embodiment is further explained. Figure 6 The call exception handling method applied to the call ringing scenario specifically includes the following steps.

[0152] Step S602: Acquire a call abnormality message including a resource restriction reason sent by the first terminal.

[0153] Step S604: according to the exception handling strategy corresponding to the call ringing stage, close the media channel of the current media server, create a media channel in the preset media server, and obtain an updated media channel.

[0154] Step S606: Generate a call establishment request according to the channel parameters of the updated media channel, and send the call establishment request to the first terminal.

[0155] Step S608: Receive a response message to the call establishment request returned by the first terminal, generate a media negotiation request based on the encoding type of the second terminal, and send the request to the first terminal.

[0156] Step S610: receiving a negotiation response message returned by the first terminal and generated according to the target coding type determined in the coding type.

[0157] Step S612: Establishing a call between the first terminal and the second terminal based on the negotiation response message.

[0158] During the process of executing steps S606 to S610, a media negotiation request can also be generated based on the channel parameters of the updated media channel and sent to the second terminal, and a negotiation response message of the media negotiation request returned by the second terminal can be obtained; in this case, step S612 can be replaced by a call establishment process between the first terminal and the second terminal based on the negotiation response message returned by the first terminal and the negotiation response message returned by the second terminal.

[0159] The following combination Figure 7 , taking the application of the call abnormality handling method provided by this embodiment in the call establishment scenario as an example, the call abnormality handling method provided by this embodiment is further explained. Figure 7 The call exception handling method applied to the call establishment scenario specifically includes the following steps: The first terminal may be a calling terminal or a called terminal, and the second terminal is another terminal.

[0160] Step S702: Obtain a call termination message including a timeout reason sent by the first terminal.

[0161] Optionally, the call termination message is generated after detecting that a duration for which media data from the second terminal is not received exceeds a preset duration threshold.

[0162] Step S704: Generate a call termination request according to the exception handling strategy corresponding to the call establishment phase and send it to the first terminal.

[0163] Step S706: determine the changed encoding type for encoding type change, and create a media channel on the preset media server to obtain an updated media channel.

[0164] Step S708: Generate a call establishment request according to the channel parameters of the updated media channel, send the call establishment request to the first terminal, and receive a response message of the call establishment request returned by the first terminal.

[0165] Step S710: Generate a media negotiation request according to the changed coding type and send it to the first terminal, and receive a negotiation response message generated based on the target coding type selected in the changed coding type and returned by the first terminal.

[0166] Step S712: Establishing a call between the first terminal and the second terminal based on the negotiation response message.

[0167] In the process of executing steps S708 to S710, a media negotiation request can also be generated based on changing the encoding type and updating the channel parameters of the media channel, and the media negotiation request can be sent to the second terminal to obtain a negotiation response message of the media negotiation request returned by the second terminal; in this case, step S712 can be replaced by a call establishment process between the first terminal and the second terminal based on the negotiation response message returned by the first terminal and the negotiation response message returned by the second terminal.

[0168] It should be noted that any one of the above steps S502 to S510, or S602 to S612, or S702 to S712, or any combination of multiple steps, can be replaced by the corresponding technical means provided in steps S102 to S108 according to the needs of implementation and deployment, and will not be described one by one here.

[0169] It should be supplemented that the call exception handling method provided in the above embodiment and the call exception handling method provided in the following embodiment can be executed in conjunction with each other. Therefore, when reading the above embodiment, you can refer to the relevant content in the following embodiment, and when reading the following embodiment, you can refer to the relevant content in the above embodiment.

[0170] Another embodiment of a call abnormality processing method provided in this specification is as follows:

[0171] Reference Figure 8 The call exception handling method provided in this embodiment can be applied to the first terminal, and specifically includes the following steps S802 to S804.

[0172] Step S802: receiving a call establishment request.

[0173] Optionally, a call establishment request is generated according to an exception handling result obtained after performing exception handling on a call exception message according to an exception handling strategy, wherein the exception handling strategy is determined based on the call stage corresponding to the call exception message; the call exception message may be generated after the first terminal is in a call exception state. The above-mentioned call exception message may be sent by a call control network element or a first terminal. In the case where the call exception message is sent by the first terminal, in an optional implementation manner provided by this embodiment, before receiving the call establishment request, the following operations are also performed: generating and submitting a call exception message including a resource limitation reason; or detecting whether the duration of not receiving the media data from the second terminal exceeds a preset duration threshold; if so, generating and submitting a call termination message including a timeout reason as a call exception message.

[0174] Step S804: Generate a response message according to the call establishment request, obtain a response message to the call establishment request and return it.

[0175] (2) Ringing phase

[0176] In an optional implementation manner provided by this embodiment, in the process of generating a response message according to a call establishment request and obtaining a response message of the call establishment request, the following operations are performed: parsing the call establishment request to obtain channel parameters for updating the media channel, and determining the channel parameters of the media channel of the first terminal according to the channel parameters; and generating the response message according to the channel parameters of the media channel of the first terminal.

[0177] (3) Call establishment phase

[0178] In an optional implementation manner provided by this embodiment, after generating a response message according to the call establishment request, obtaining the response message of the call establishment request and returning for execution, the following operations are also performed: receiving a media negotiation request generated based on a changed encoding type; in response to the media negotiation request, determining a target encoding type in the changed encoding type, generating a negotiation response message including the target encoding type and returning it.

[0179] The following combination Fig. 9 , taking the application of the call exception handling method provided by this embodiment in a call call scenario as an example, the call exception handling method provided by this embodiment is further described. Fig. 9The call exception handling method applied to the call call scenario specifically includes the following steps. It can be applied to the called terminal.

[0180] Step S902: receiving a call establishment request sent by the I-CSCF of the geographical area to which the terminal number of the calling terminal belongs.

[0181] Step S904: Generate a response message according to the call establishment request, and obtain a response message to the call establishment request.

[0182] Step S906: Return a response message to the call establishment request to the call processing platform.

[0183] The following combination Fig.10 , taking the application of the call abnormality processing method provided by this embodiment in the call ringing scenario as an example, the call abnormality processing method provided by this embodiment is further explained. Fig.10 The call exception handling method applied to the call ringing scenario specifically includes the following steps.

[0184] Step S1002: Generate a call exception message including the reason for resource restriction and send it to the call processing platform.

[0185] Step S1004: receiving a call establishment request sent by the call processing platform, and parsing the call establishment request to obtain channel parameters for updating the media channel.

[0186] Step S1006: determining the channel parameters of the media channel of the first terminal according to the channel parameters of the updated media channel, generating a response message according to the channel parameters of the media channel of the first terminal and returning the response message to the call processing platform.

[0187] Step S1008: receiving a media negotiation request generated based on the encoding type of the second terminal and sent by the call processing platform.

[0188] Step S1010: determine a target coding type in the coding type, generate a negotiation response message according to the target coding type, and send it to the call processing platform.

[0189] The following combination Fig.11 , taking the application of the call abnormality handling method provided by this embodiment in the call establishment scenario as an example, the call abnormality handling method provided by this embodiment is further explained. Fig.11 The call exception handling method applied to the call establishment scenario specifically includes the following steps.

[0190] Step S1102: Generate a call termination message including a timeout reason and send it to a call processing platform.

[0191] Step S1104: receiving a call establishment request sent by the call processing platform, and parsing the call establishment request to obtain channel parameters for updating the media channel.

[0192] Step S1106: determining the channel parameters of the media channel of the first terminal according to the channel parameters of the updated media channel, generating a response message according to the channel parameters of the media channel of the first terminal and returning the response message to the call processing platform.

[0193] Step S1108: receiving a media negotiation request generated based on the change of the coding type and sent by the call processing platform.

[0194] Step S1110, determining a target coding type in changing the coding type, and generating a negotiation response message according to the target coding type and sending it to the call processing platform.

[0195] It should be noted that any one of the above steps S902 to S906, or steps S1002 to S1010, or steps S1102 to S1110, or any combination of multiple steps, can be replaced by the corresponding technical means provided in the above steps S802 to S804 according to the needs of implementation and deployment, and will not be described one by one here.

[0196] Fig.12 A schematic diagram of a call exception processing device provided by an embodiment of the present invention is shown in FIG. Fig.12 As shown, the device comprises:

[0197] The message acquisition module 1202 is used to acquire a call abnormality message generated after the first terminal is in a call abnormality state;

[0198] The exception handling module 1204 is used to determine an exception handling strategy according to the call stage corresponding to the call exception message, and perform exception handling on the call exception message according to the exception handling strategy;

[0199] A request generating module 1206, configured to generate a call establishment request according to the exception processing result, and send the call establishment request to the first terminal;

[0200] The message receiving module 1208 is configured to receive a response message to the call establishment request returned by the first terminal, and perform call establishment processing between the first terminal and the second terminal based on the response message.

[0201] The call exception processing device provided in this embodiment firstly obtains a call exception message generated after the first terminal is in a call exception state by running the message acquisition module 1202, runs the exception processing module 1204, determines the exception processing strategy according to the call stage corresponding to the call exception message, and performs exception processing on the call exception message according to the exception processing strategy, then runs the request generation module 1206, generates a call establishment request according to the exception processing result, and sends the call establishment request to the first terminal, finally runs the message receiving module 1208, receives a response message of the call establishment request returned by the first terminal, and performs call establishment processing between the first terminal and the second terminal based on the response message, so as to improve the convenience and success rate of call establishment after the call exception.

[0202] A call exception processing device provided in one embodiment of this specification can implement each process in the aforementioned method embodiment and achieve the same functions and effects, which will not be repeated here.

[0203] Fig.13 A schematic diagram of another abnormal call processing device provided by another embodiment of the present invention is shown in FIG. Fig.13 As shown, the apparatus includes: a request receiving module 1302, configured to receive a call establishment request;

[0204] The response message returning module 1304 is used to generate a response message according to the call establishment request, obtain and return the response message of the call establishment request; wherein, the call establishment request is generated according to the exception handling result obtained after exception handling of the call exception message according to the exception handling strategy, and the exception handling strategy is determined based on the call stage corresponding to the call exception message.

[0205] The call exception processing device provided in this embodiment first receives a call establishment request by running the request receiving module 1302; runs the response message returning module 1304, generates a response message according to the call establishment request, obtains and returns the response message of the call establishment request; wherein, the call establishment request is generated according to the exception processing result obtained after the call exception message is processed according to the exception processing strategy, and the exception processing strategy is determined based on the call stage corresponding to the call exception message to improve the convenience of call establishment after the call exception.

[0206] Another call exception processing device provided in one embodiment of this specification can implement each process in the aforementioned another method embodiment and achieve the same functions and effects, which will not be repeated here.

[0207] Furthermore, an embodiment of the present specification also provides a call exception processing device, Fig.14A schematic diagram of a call exception handling device provided in an embodiment of the present specification is shown in FIG. Fig.14 As shown, the device includes: a memory 1401, a processor 1402, a bus 1403 and a communication interface 1404. The memory 1401, the processor 1402 and the communication interface 1404 communicate through the bus 1403, and the communication interface 1404 may include an input and output interface, which includes but is not limited to a keyboard, a mouse, a display, a microphone, a loudspeaker, etc.

[0208] Fig.14 In the embodiment, the memory 1401 stores computer executable instructions that can be run on the processor 1402, and when the computer executable instructions are executed by the processor 1402, the following process is implemented:

[0209] Obtaining a call abnormality message generated after the first terminal is in a call abnormality state;

[0210] Determine an exception handling strategy according to the call stage corresponding to the call exception message, and perform exception handling on the call exception message according to the exception handling strategy;

[0211] generating a call establishment request according to the exception processing result, and sending the call establishment request to the first terminal;

[0212] A response message to the call establishment request returned by the first terminal is received, and a call establishment process between the first terminal and the second terminal is performed based on the response message.

[0213] The call exception handling device provided in this embodiment, through the cooperation of the memory 1401, the processor 1402, the bus 1403 and the communication interface 1404, obtains the call exception message generated after the first terminal is in the call abnormal state, determines the exception handling strategy from the call stage corresponding to the call exception message, performs exception handling on the call exception message according to the exception handling strategy, and sends a call establishment request generated based on the exception handling result to the first terminal, and performs call establishment processing between the first terminal and the second terminal according to the response message of the call establishment request returned by the first terminal, so as to improve the convenience and success rate of call establishment after the call abnormality.

[0214] A call exception processing device provided in one embodiment of this specification can implement each process in the aforementioned method embodiment and achieve the same functions and effects, which will not be repeated here.

[0215] An embodiment of the present specification also provides another abnormal call processing device, Fig.15 A schematic diagram of a call exception handling device provided in an embodiment of the present specification is shown in FIG. Fig.15As shown, the device includes: a memory 1501, a processor 1502, a bus 1503 and a communication interface 1504. The memory 1501, the processor 1502 and the communication interface 1504 communicate through the bus 1503, and the communication interface 1504 may include an input and output interface, which includes but is not limited to a keyboard, a mouse, a display, a microphone, a loudspeaker, etc.

[0216] Fig.15 In the embodiment, the memory 1501 stores computer executable instructions that can be run on the processor 1502. When the computer executable instructions are executed by the processor 1502, the following process is implemented:

[0217] receiving a call establishment request;

[0218] Generate a response message according to the call establishment request, obtain the response message of the call establishment request and return it;

[0219] The call establishment request is generated according to an exception handling result obtained after performing exception handling on a call exception message according to an exception handling strategy, and the exception handling strategy is determined based on a call stage corresponding to the call exception message.

[0220] The call exception handling device provided in this embodiment generates a response message according to the call establishment request through the cooperation of the memory 1501, the processor 1502, the bus 1503 and the communication interface 1504, obtains and returns the response message of the call establishment request, wherein the call establishment request is generated according to the exception handling result obtained after the call exception message is handled according to the exception handling strategy, and the exception handling strategy is determined based on the call stage corresponding to the call exception message to improve the convenience of call establishment after the call exception.

[0221] Another call exception processing device provided in an embodiment of this specification can implement each process in the aforementioned another method embodiment and achieve the same functions and effects, which will not be repeated here.

[0222] Furthermore, another embodiment of the present specification provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store computer-executable instructions, and when the computer-executable instructions are executed by a processor, the following process is implemented:

[0223] Obtaining a call abnormality message generated after the first terminal is in a call abnormality state;

[0224] Determine an exception handling strategy according to the call stage corresponding to the call exception message, and perform exception handling on the call exception message according to the exception handling strategy;

[0225] generating a call establishment request according to the exception processing result, and sending the call establishment request to the first terminal;

[0226] A response message to the call establishment request returned by the first terminal is received, and a call establishment process between the first terminal and the second terminal is performed based on the response message.

[0227] The computer-readable storage medium provided in this embodiment obtains a call exception message generated after the first terminal is in a call abnormal state, determines an exception handling strategy from the call stage corresponding to the call exception message, performs exception handling on the call exception message according to the exception handling strategy, and sends a call establishment request generated based on the exception handling result to the first terminal. According to the response message of the call establishment request returned by the first terminal, the call establishment process between the first terminal and the second terminal is performed to improve the convenience and success rate of call establishment after the call abnormality.

[0228] The computer-readable storage medium includes a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0229] A computer-readable storage medium provided in an embodiment of this specification can implement each process in the aforementioned method embodiment and achieve the same functions and effects, which will not be repeated here.

[0230] Another embodiment of the present specification also provides another computer-readable storage medium, wherein the computer-readable storage medium is used to store computer-executable instructions, and when the computer-executable instructions are executed by a processor, the following process is implemented:

[0231] receiving a call establishment request;

[0232] Generate a response message according to the call establishment request, obtain the response message of the call establishment request and return it;

[0233] The call establishment request is generated according to an exception handling result obtained after performing exception handling on a call exception message according to an exception handling strategy, and the exception handling strategy is determined based on a call stage corresponding to the call exception message.

[0234] The computer-readable storage medium provided in this embodiment generates a response message according to a call establishment request, obtains and returns a response message to the call establishment request, wherein the call establishment request is generated according to an exception handling result obtained after exception handling of a call exception message according to an exception handling strategy, and the exception handling strategy is determined based on the call stage corresponding to the call exception message to improve the convenience of call establishment after the call exception.

[0235] The computer-readable storage medium includes a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0236] Another computer-readable storage medium provided in an embodiment of this specification can implement each process in the aforementioned another method embodiment and achieve the same functions and effects, which will not be repeated here.

[0237] Furthermore, another embodiment of the present specification also provides a computer program product, which implements the following process when executed by a processor:

[0238] Obtaining a call abnormality message generated after the first terminal is in a call abnormality state;

[0239] Determine an exception handling strategy according to the call stage corresponding to the call exception message, and perform exception handling on the call exception message according to the exception handling strategy;

[0240] generating a call establishment request according to the exception processing result, and sending the call establishment request to the first terminal;

[0241] A response message to the call establishment request returned by the first terminal is received, and a call establishment process between the first terminal and the second terminal is performed based on the response message.

[0242] The computer program product provided in this embodiment obtains a call exception message generated after the first terminal is in a call abnormal state, determines an exception handling strategy from the call stage corresponding to the call exception message, performs exception handling on the call exception message according to the exception handling strategy, and sends a call establishment request generated based on the exception handling result to the first terminal. According to the response message of the call establishment request returned by the first terminal, the call establishment process between the first terminal and the second terminal is performed to improve the convenience and success rate of call establishment after the call abnormality.

[0243] A computer program product provided in one embodiment of this specification can implement each process in the aforementioned method embodiment and achieve the same functions and effects, which will not be repeated here.

[0244] Another embodiment of the present specification also provides another computer program product, which implements the following process when executed by a processor:

[0245] receiving a call establishment request;

[0246] Generate a response message according to the call establishment request, obtain the response message of the call establishment request and return it;

[0247] The call establishment request is generated according to an exception handling result obtained after performing exception handling on a call exception message according to an exception handling strategy, and the exception handling strategy is determined based on a call stage corresponding to the call exception message.

[0248] The computer program product provided in this embodiment generates a response message according to a call establishment request, obtains and returns a response message to the call establishment request, wherein the call establishment request is generated according to an exception handling result obtained after exception handling of a call exception message according to an exception handling strategy, and the exception handling strategy is determined based on the call stage corresponding to the call exception message to improve the convenience of call establishment after the call exception.

[0249] Another computer program product provided in one embodiment of this specification can implement each process in the aforementioned another method embodiment and achieve the same functions and effects, which will not be repeated here.

[0250] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0251] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor 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.

[0252] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0253] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0254] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory. The memory may include non-permanent memory in a computer-readable storage medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable storage medium.

[0255] Computer-readable storage media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer-readable storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable storage media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0256] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0257] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0258] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A method for handling abnormal calls, characterized in that: Applied to a call processing platform, the method comprises: Obtaining a call abnormality message generated after the first terminal is in a call abnormality state; Determine an exception handling strategy according to the call stage corresponding to the call exception message, and perform exception handling on the call exception message according to the exception handling strategy; generating a call establishment request according to the exception processing result, and sending the call establishment request to the first terminal; A response message to the call establishment request returned by the first terminal is received, and a call establishment process between the first terminal and the second terminal is performed based on the response message.

2. The method for handling abnormal calls according to claim 1, characterized in that: The performing exception handling on the call exception message according to the exception handling strategy includes: According to the exception handling strategy corresponding to the call phase, determine the geographical area to which the terminal number of the second terminal belongs, and search for a call access network element in the geographical area; Correspondingly, sending the call establishment request to the first terminal includes: The call establishment request is sent to the first terminal through the call access network element.

3. The method for handling abnormal calls according to claim 2, characterized in that: After the step of generating a call establishment request according to the exception processing result and sending the call establishment request to the first terminal is executed, and before the step of receiving a response message to the call establishment request returned by the first terminal and performing call establishment processing between the first terminal and the second terminal based on the response message is executed, the method further includes: receiving a call abnormality message returned by the call access network element, and determining a call control network element in a preset geographical area in response to the received call abnormality message; generating a second call establishment request, and sending the second call establishment request to the first terminal through the call control network element; Correspondingly, the receiving a response message of the call establishment request returned by the first terminal, and performing call establishment processing between the first terminal and the second terminal based on the response message, includes: A response message to the second call establishment request is received, which is returned by the first terminal through the call control network element, and the call establishment process is performed based on the response message to the second call establishment request.

4. The method for handling abnormal calls according to claim 1, characterized in that: The performing exception handling on the call exception message according to the exception handling strategy includes: According to the exception handling strategy corresponding to the call ringing stage, the media channel of the current media server is closed, and a media channel is created on the preset media server to obtain an updated media channel; Correspondingly, generating a call establishment request according to the exception handling result includes: The call establishment request is generated according to the channel parameters of the updated media channel.

5. The method for handling abnormal calls according to claim 1, characterized in that: The performing exception handling on the call exception message according to the exception handling strategy includes: Generate a call termination request according to the exception handling strategy corresponding to the call establishment phase and send it to the first terminal; Determine the changed encoding type for the encoding type change, and create a media channel on a preset media server to obtain an updated media channel.

6. The method for handling abnormal calls according to claim 5, characterized in that: After determining the exception handling strategy according to the call stage corresponding to the call exception message, and performing the exception handling step on the call exception message according to the exception handling strategy, the method further includes: generating a media negotiation request according to the changed encoding type and the channel parameter of the updated media channel, and sending the media negotiation request to the second terminal; Acquire a negotiation response message of the media negotiation request returned by the second terminal.

7. A method for handling abnormal calls, characterized in that: Applied to a first terminal, the method includes: receiving a call establishment request; Generate a response message according to the call establishment request, obtain the response message of the call establishment request and return it; The call establishment request is generated according to an exception handling result obtained after performing exception handling on a call exception message according to an exception handling strategy, and the exception handling strategy is determined based on a call stage corresponding to the call exception message.

8. The abnormal call processing method according to claim 7, characterized in that: The generating a response message according to the call establishment request to obtain a response message to the call establishment request includes: Parsing the call establishment request to obtain channel parameters for updating a media channel, and determining channel parameters for the media channel of the first terminal according to the channel parameters; The response message is generated according to the channel parameters of the media channel of the first terminal.

9. The method for handling abnormal calls according to claim 7, characterized in that: After the step of generating a response message according to the call establishment request, obtaining a response message to the call establishment request and returning is executed, the method further includes: receiving a media negotiation request generated based on a change in encoding type; In response to the media negotiation request, a target encoding type is determined in the changed encoding type, and a negotiation response message including the target encoding type is generated and returned.

10. The method for handling abnormal calls according to claim 7, characterized in that: Before the step of receiving the call establishment request is performed, the method further includes: Generate and submit a call exception message containing the reason for resource limitation; or, Detecting whether a duration for which the media data of the second terminal is not received exceeds a preset duration threshold; If so, a call termination message including the timeout reason is generated as a call exception message and submitted.