A terminal call routing method, device and equipment
The gateway device detects the status of external servers and forwards call requests, which solves the problem of enterprise telephone service interruption, and realizes communication continuity and quality assurance in the event of cloud IPPBX and IPPBX server failures.
Patent Information
- Application Number
- CN202111434775.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-29
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2041-11-29
AI Technical Summary
When the enterprise telephone service fails in the cloud IPPBX and IPPBX servers, it causes internal telephone service to be interrupted and the inability to make emergency calls.
The gateway device sends a detection request to the external server, receives a terminal call request, and forwards the call request to the external server or the public switched telephone network based on the detection results to ensure communication continuity.
The continuity and quality of terminal call communication is ensured, and the normal communication can be maintained through the public switched telephone network especially in the event of an external server failure.
Smart Images

Figure CN114285950B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of terminal call communication, and particularly to a terminal call routing method, apparatus and device. Background Art
[0002] Currently, enterprise telephone services (such as SIP IP phones or softphones) mostly use cloud IPPBX (Private Branch eXchange) and IPPBX servers (even WAN connections and Internet access modems). When the cloud IPPBX and IPPBX servers fail, enterprises usually lose internal telephone services between any branches, offices and the external environment; at the same time, these failures also result in the inability to make emergency calls, such as 110, 120, etc. Summary of the Invention
[0003] The technical problem to be solved by the present invention is to provide a terminal call routing method, apparatus and device to ensure the continuity of terminal call communication.
[0004] To solve the above technical problem, the technical solution of the present invention is as follows:
[0005] An embodiment of the present invention provides a terminal call routing method, which is applied to a gateway device with self-survival ability function. The method includes:
[0006] Sending a detection request to an external server and obtaining a detection result;
[0007] Receiving a call request sent by a terminal;
[0008] According to the detection result, forwarding the call request of the terminal to the external server or the public switched telephone network.
[0009] Optionally, before receiving the call request sent by the terminal, it further includes:
[0010] Receiving a subscription configuration request initiated after the terminal is powered on;
[0011] Feeding back subscription configuration information to the terminal according to the subscription configuration request.
[0012] Optionally, feeding back the subscription configuration information to the terminal according to the subscription configuration request includes:
[0013] Sending a download path of a subscription configuration file to the terminal according to the subscription configuration request, and the terminal downloads the subscription configuration file according to the download path.
[0014] Optionally, after feeding back the subscription configuration information to the terminal according to the subscription configuration request, it further includes:
[0015] Receive the registration request sent by the terminal;
[0016] Forward the registration request to an external server for processing.
[0017] Optionally, send a detection request to the external server and obtain a detection result, including:
[0018] Send a detection request to the external server;
[0019] If the response information feedback by the external server according to the detection request is received, obtain the normal detection result of the external server; after an interval of a preset duration T, send a detection request to the external server again. If the response information feedback by the external server is not received, obtain the abnormal detection result of the external server.
[0020] Optionally, according to the detection result, forward the call request of the terminal to the external server or the public switched telephone network, including:
[0021] When the normal detection result of the external server is obtained, forward the call request of the terminal to the external server;
[0022] When the abnormal detection result of the external server is obtained, forward the call request of the terminal to the public switched telephone network.
[0023] Optionally, when the abnormal detection result of the external server is obtained, it further includes:
[0024] Receive the registration request of the terminal;
[0025] Process according to the registration request of the terminal and feedback the processing result to the terminal.
[0026] An embodiment of the present invention further provides a gateway device, and the gateway device includes:
[0027] A transceiver module, configured to send a detection request to an external server, obtain a detection result, and receive a call request sent by a terminal;
[0028] A processing module, configured to forward the call request of the terminal to the external server or the public switched telephone network according to the detection result.
[0029] According to another aspect of the embodiments of the present invention, a computing device is provided, including: a processor, a memory, a communication interface, and a communication bus. The processor, the memory, and the communication interface complete communication with each other through the communication bus;
[0030] The memory is used to store at least one executable instruction, and the executable instruction causes the processor to perform operations corresponding to the above terminal call routing method.
[0031] According to another aspect of the embodiments of the present invention, there is provided a computer storage medium, in which at least one executable instruction is stored, and the executable instruction causes the processor to perform operations corresponding to the above terminal call routing method.
[0032] The above solution of the present invention has at least the following beneficial effects:
[0033] In the above solution of the present invention, by sending a detection request to an external server and obtaining a detection result; receiving a call request sent by a terminal; and according to the detection result, forwarding the call request of the terminal to the external server or a public switched telephone network, the continuity of terminal call communication is ensured, and the quality of terminal call communication is improved. Description of the Drawings
[0034] Figure 1 is a flowchart of a terminal call routing method proposed by an embodiment of the present invention;
[0035] Figure 2 is a system networking diagram provided by an optional embodiment of the present invention;
[0036] Figure 3 is a flowchart of a terminal call routing method provided by an optional embodiment of the present invention when the external server is normal;
[0037] Figure 4 is a flowchart of a terminal call routing method provided by an optional embodiment of the present invention when the external server is abnormal;
[0038] Figure 5 is a schematic structural diagram of a terminal call routing gateway device proposed by an embodiment of the present invention. Detailed Embodiments
[0039] Hereinafter, exemplary embodiments of the present invention will be described in more detail with reference to the drawings. Although the exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided so that the present invention can be more thoroughly understood and the scope of the present invention can be completely conveyed to those skilled in the art.
[0040] Refer to Figure 1-2 , an embodiment of the present invention proposes a terminal call routing method, which is applied to a gateway device with a self-survival function, and the method includes:
[0041] Step 11, sending a detection request to an external server and obtaining a detection result;
[0042] Step 12: Receive a call request sent by a terminal;
[0043] Step 13: Forward the call request of the terminal to the external server or the public switched telephone network according to the detection result.
[0044] In this embodiment, the sequence of the above steps 11 and 12 is not limited by the serial numbers. Without affecting the achievement of the object of the present invention, the sequence between the above steps 11 and 12 can be changed; in this embodiment, a gateway device with self-survival ability can be used to send a detection request to an external server, receive a call request sent by a terminal, and forward the call request; the detection request can be sent in real time or periodically; the terminal can be an Internet phone. By sending a detection request to the external server and obtaining the detection result of the working state of the external server, the call request of the terminal is forwarded according to the detection result, ensuring the stability and continuity of the call request of the terminal and further improving the quality of the call communication of the terminal.
[0045] In an alternative embodiment of the present invention, before the step 12, it further includes:
[0046] Step S11: Receive a subscription configuration request initiated after the terminal is powered on;
[0047] Step S12: Feedback subscription configuration information to the terminal according to the subscription configuration request.
[0048] In this embodiment, the gateway device generates the configuration information required by the terminal according to the subscription configuration request. The configuration information may include information such as the resource address of the gateway device itself or the external server; the gateway device feeds back the configuration information to the terminal to ensure that the terminal can normally use the functions of the gateway device.
[0049] Further, after feedbacking the subscription configuration information to the terminal according to the subscription configuration request, it further includes: receiving a registration request sent by the terminal and forwarding the registration request to an external server for processing. In this embodiment, after the terminal receives the configuration information sent by the gateway device, the terminal sends a registration request to the gateway device, and the gateway device forwards the registration request to the external server after receiving it to implement the registration of the terminal.
[0050] In an alternative embodiment of the present invention, the step S12 may include:
[0051] Step S121: Send the download path of the subscription configuration file to the terminal according to the subscription configuration request, and the terminal downloads the subscription configuration file according to the download path.
[0052] In this embodiment, the gateway device generates a subscription configuration file and the download path of the configuration file according to the subscription configuration request. After the terminal downloads the subscription configuration file through the download path and performs automatic deployment, the registration request can be forwarded through the gateway device.
[0053] In an optional embodiment of the present invention, the step 11 includes:
[0054] Send a detection request to the external server; if the response information feedback by the external server according to the detection request is received, obtain the detection result that the external server is normal; after an interval of a preset duration T, send a detection request to the external server again. If the response information feedback by the external server is not received, obtain the detection result that the external server is abnormal.
[0055] In this embodiment, the detection request includes: a first detection request and a second detection request. After the gateway device sends the first detection request to the external server, if the response information feedback by the external server according to the first detection request is received, obtain the detection result that the external server is normal, which means the external server is online; after an interval of a preset duration T, send the second detection request. If the response information feedback by the external server according to the second detection request is received again at this time, it means the external server is normally online. If the response information feedback by the external server according to the second detection request is not received at this time, obtain the detection result that the external server is abnormal, which means the external server is not online; the first detection request is sent by the gateway device to the external server in real time or at regular intervals, and the second detection request is sent after a preset time interval after the first detection request is sent. The sending of the first detection request and the second detection request ensures real-time monitoring of whether the external server is normal, so as to ensure that the system makes timely adjustments according to the detection results, ensure that the terminal call routing is not affected by the external server, and improve the quality of the terminal call routing; the first detection request and the second detection request may include OPTIONS, and the external server is detected as normal or abnormal through OPTIONS.
[0056] In an optional embodiment of the present invention, the step 13 includes:
[0057] Step 131: If the detection result that the external server is normal is obtained, forward the call request of the terminal to the external server.
[0058] Step 132: if a detection result indicating that the external server is abnormal is obtained, the call request of the terminal is forwarded to a public switched telephone network.
[0059] In this embodiment, it should be known that the order of step 131 and step 132 is not used to limit the order of precedence, but is only used to distinguish the execution actions performed after the gateway device obtains different detection results; when the external server is normal, the gateway device forwards the call request to the external server; when the external server is abnormal, the gateway device forwards the call request to the public switched telephone network to ensure the normal terminal call communication.
[0060] Furthermore, when the detection result of the external server anomaly is obtained, it also includes: receiving a registration request from a terminal; processing according to the registration request of the terminal, and feeding back the processing result to the terminal.
[0061] In this embodiment, when the external server is abnormal, the gateway device no longer forwards the registration request of the terminal to the external server after receiving it. The gateway device processes the registration request and feeds back the processed structure to the terminal to ensure that the terminal can continue to communicate when the external server is abnormal, thereby ensuring the stability and continuity of the system communication.
[0062] The above method will be described below with reference to a specific example, taking the example that the terminal is a VOIP (Voice over Internet Protocol) terminal device and the external server is a cloud IP PBX:
[0063] like Figure 3 As shown, when the external server cloud IPPBX is normal, the call routing steps of the VOIP terminal device are as follows:
[0064] Step (1), the VOIP terminal device is powered on to initiate a subscription configuration request, and the gateway device responds to the request and generates a configuration file, and sends down the configuration path;
[0065] Step (2), the VOIP terminal device downloads the configuration file according to the allocated path;
[0066] Step (3), the VOIP terminal device initiates registration, and the gateway device forwards the registration request to the external server;
[0067] Step (4), the VOIP terminal device initiates a call, and the gateway device forwards the call request to the external server.
[0068] like Figure 4As described above, when the external server cloud IPPBX is abnormal, the call routing steps of the VOIP terminal device are as follows:
[0069] Step (5), the VOIP terminal device initiates registration, and the gateway device acts as a registration server to process the registration request
[0070] Step (6), the VOIP terminal device initiates a call, and the gateway device forwards the call to the public switched telephone network to ensure normal communication even when the external server is not working;
[0071] In this embodiment, it should be noted that whether the external network device is normal or abnormal, before the terminal device initiates a registration request, a subscription configuration request will be initiated first to establish information exchange between the terminal device and the gateway device and use the functions of the gateway device; when the external server is abnormal, through the self-survival ability function of the gateway device, the registration request is processed on the local gateway device without passing through the external server, and the call request of the terminal device is transferred to the public switched telephone network to ensure normal call communication of the terminal device and improve the reliability of call communication of the terminal device.
[0072] Such as Figure 5 shown, an example of the present invention further provides a gateway device, and the gateway device 50 includes:
[0073] A transceiver module 51, configured to send a detection request to an external server, obtain a detection result, and receive a call request sent by a terminal;
[0074] A processing module 52, configured to forward the call request of the terminal to the external server or the public switched telephone network according to the detection result.
[0075] Optionally, before the transceiver module 51 receives a call request sent by a terminal, it further includes: receiving a subscription configuration request initiated after the terminal is powered on; and feeding back subscription configuration information to the terminal according to the subscription configuration request.
[0076] Optionally, the transceiver module 51 feeding back subscription configuration information to the terminal according to the subscription configuration request includes:
[0077] Sending a download path of a subscription configuration file to the terminal according to the subscription configuration request, and the terminal downloads the subscription configuration file according to the download path.
[0078] Optionally, after the transceiver module 51 feeds back subscription configuration information to the terminal according to the subscription configuration request, it further includes: receiving a registration request sent by the terminal; and forwarding the registration request to an external server for processing.
[0079] Optionally, the transceiver module 51 sends a detection request to an external server and obtains a detection result, including: sending a detection request to the external server; if receiving response information fed back by the external server according to the detection request, obtaining a normal detection result of the external server; after an interval of a preset duration T, sending a detection request to the external server again, and if not receiving the response information fed back by the external server, obtaining an abnormal detection result of the external server.
[0080] Optionally, according to the detection result, the processing module 52 forwards the call request of the terminal to an external server or a public switched telephone network, including: when obtaining a normal detection result of the external server, forwarding the call request of the terminal to the external server; when obtaining an abnormal detection result of the external server, forwarding the call request of the terminal to the public switched telephone network.
[0081] Optionally, when obtaining an abnormal detection result of the external server, the processing module 52 further includes: receiving a registration request of the terminal; processing according to the registration request of the terminal, and feeding back a processing result to the terminal.
[0082] In this embodiment, the device is a gateway device corresponding to the above method, and all implementation manners in the above method embodiment are applicable to the embodiment of this device and can also achieve the same technical effect.
[0083] An embodiment of the present invention provides a non-volatile computer storage medium, and the computer storage medium stores at least one executable instruction, and the computer executable instruction can execute the terminal call routing method in any of the above method embodiments.
[0084] The specific implementation of the computing device is not limited in the specific embodiment of the present invention. The computing device may include: a processor, a communications interface, a memory, and a communication bus.
[0085] Wherein: the processor, the communications interface, and the memory complete communication with each other through the communication bus. The communications interface is used for communicating with network elements of other devices such as a client or other servers. The processor is used for executing a program, and specifically can execute relevant steps in the above embodiment of the terminal call routing method for the computing device.
[0086] Specifically, the program may include program code, and the program code includes computer operation instructions.
[0087] The processor may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. One or more processors included in the computing device may be of the same type of processor, such as one or more CPUs; or may be of different types of processors, such as one or more CPUs and one or more ASICs.
[0088] A memory for storing programs. The memory may include high-speed RAM memory and may also include non-volatile memory, such as at least one disk memory.
[0089] Specifically, the program may be used to cause the processor to execute the terminal call routing method in any of the above method embodiments. For the specific implementation of each step in the program, reference may be made to the corresponding steps and units in the above terminal call routing method embodiments, which will not be elaborated herein. Those skilled in the art can clearly understand that for the convenience and conciseness of description, the specific working processes of the above-described devices and modules may refer to the corresponding process descriptions in the foregoing method embodiments, which will not be repeated herein.
[0090] The algorithms or displays provided herein are not inherently related to any particular computer, virtual system, or other device. Various general-purpose systems may also be used in conjunction with the teachings provided herein. The structure required to construct such a system will be apparent from the above description. In addition, the embodiments of the present invention are not directed to any specific programming language. It should be understood that the content of the embodiments of the present invention described herein can be implemented using various programming languages, and the description of a specific language above is for disclosing the best mode of the embodiments of the present invention.
[0091] In the specification provided herein, a large number of specific details are set forth. However, it can be understood that the embodiments of the present invention may be practiced without these specific details. In some instances, well-known methods, structures, and technologies have not been shown in detail so as not to obscure the understanding of this specification.
[0092] Similarly, it should be understood that, in order to streamline the embodiments of the present invention and assist in understanding one or more of the various inventive aspects, in the foregoing description of the exemplary embodiments of the present invention, the various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, the disclosed method should not be construed as reflecting an intention that the claimed embodiments of the present invention require more features than are expressly recited in each claim. Rather, as reflected in the following claims, the inventive aspects lie in less than all of the features of the single embodiments disclosed previously. Thus, the claims following the detailed description are hereby expressly incorporated into the detailed description, with each claim standing on its own as a separate embodiment of the present invention.
[0093] Those skilled in the art will appreciate that the modules in the devices in the embodiments can be adaptively changed and disposed in one or more devices different from the embodiments. The modules or units or components in the embodiments can be combined into one module or unit or component, and in addition, they can be divided into multiple sub-modules or sub-units or sub-components. Except that at least some of such features and / or processes or units are mutually exclusive, any combination can be used to combine all the features disclosed in this specification (including the accompanying claims, abstract, and drawings) and all the processes or units of any method or device so disclosed. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstract, and drawings) can be replaced by an alternative feature that provides the same, equivalent, or similar purpose.
[0094] In addition, those skilled in the art will be able to understand that although some of the embodiments herein include certain features included in other embodiments but not others, the combination of the features of different embodiments means that it is within the scope of the present invention and forms different embodiments. For example, in the following claims, any one of the claimed embodiments can be used in any combination.
[0095] Each component embodiment of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components according to the embodiments of the present invention. Embodiments of the present invention may also be implemented as a device or apparatus program (e.g., a computer program and a computer program product) for executing some or all of the methods described herein. Such a program implementing embodiments of the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, or provided on a carrier signal, or in any other form.
[0096] The above is the preferred embodiment of the present invention. It should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present invention, several improvements and modifications can be made, and these improvements and modifications should also be regarded as the protection scope of the present invention.
Claims
1. A terminal call routing method, characterized in that, Applied to a gateway device with self - survival ability function, the method includes: Sending a detection request to an external server and obtaining a detection result; Receiving a call request sent by a terminal; According to the detection result, forwarding the call request of the terminal to the external server or the public switched telephone network; Among them, sending a detection request to an external server and obtaining a detection result includes: Sending a detection request to the external server; If receiving the response information fed back by the external server according to the detection request, obtaining the detection result that the external server is normal; the detection request includes: a first detection request and a second detection request. After the gateway device sends the first detection request to the external server, if receiving the response information fed back by the external server according to the first detection request, obtaining the detection result that the external server is normal, indicating that the external server is online; after an interval of a preset duration T, sending the second detection request. If receiving the response information fed back by the external server according to the second detection request again at this time, it indicates that the external server is normally online. If not receiving the response information fed back by the external server according to the second detection request at this time, obtaining the detection result that the external server is abnormal, indicating that the external server is not online; the first detection request and the second detection request include OPTIONS, and detecting whether the external server is normal or abnormal through OPTIONS; When obtaining the detection result that the external server is abnormal, it further includes: Receiving a registration request from a terminal; Processing according to the registration request of the terminal and feeding back a processing result to the terminal.
2. The terminal call routing method according to claim 1, wherein Before receiving the call request sent by the terminal, it further includes: Receiving a subscription configuration request initiated after the terminal is powered on; Feeding back subscription configuration information to the terminal according to the subscription configuration request.
3. The terminal call routing method according to claim 2, wherein Feeding back subscription configuration information to the terminal according to the subscription configuration request includes: Sending the download path of the subscription configuration file to the terminal according to the subscription configuration request, and the terminal downloads the subscription configuration file according to the download path.
4. The terminal call routing method according to claim 2, wherein After feeding back subscription configuration information to the terminal according to the subscription configuration request, it further includes: Receiving the registration request sent by the terminal; Forwarding the registration request to an external server for processing.
5. The terminal call routing method according to claim 1, characterized in that According to the detection result, forwarding the call request of the terminal to the external server or the public switched telephone network includes: If obtaining the detection result that the external server is normal, forwarding the call request of the terminal to the external server; If obtaining the detection result that the external server is abnormal, forwarding the call request of the terminal to the public switched telephone network.
6. A gateway device, characterized in that, The gateway device includes: A transceiver module, used for sending a detection request to an external server and obtaining a detection result, and receiving a call request sent by a terminal; A processing module, used for forwarding the call request of the terminal to the external server or the public switched telephone network according to the detection result; Among them, sending a detection request to an external server and obtaining a detection result includes: Send a detection request to the external server; If the response information feedback by the external server according to the detection request is received, obtain the normal detection result of the external server; the detection request includes: a first detection request and a second detection request. After the gateway device sends the first detection request to the external server, if the response information feedback by the external server according to the first detection request is received, obtain the normal detection result of the external server, indicating that the external server is online; after an interval of a preset duration T, send the second detection request. If the response information feedback by the external server according to the second detection request is received again at this time, it means that the external server is normally online. If the response information feedback by the external server according to the second detection request is not received at this time, obtain the abnormal detection result of the external server, indicating that the external server is not online; the first detection request and the second detection request include OPTIONS, and detect whether the external server is normal or abnormal through OPTIONS; When obtaining the abnormal detection result of the external server, it further includes: Receive the registration request of the terminal; Process according to the registration request of the terminal and feedback the processing result to the terminal.
7. A computing device, comprising: A processor, a memory, a communication interface and a communication bus, and the processor, the memory and the communication interface complete communication with each other through the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute the operations corresponding to the terminal call routing method according to any one of claims 1-5.
8. A computer storage medium, in which at least one executable instruction is stored, and the executable instruction enables the processor to execute the operations corresponding to the terminal call routing method according to any one of claims 1-5.
Citation Information
Patent Citations
Phone calling method and device
CN105577954A
VoIP providing call forwarding to external telephone network
CN106921627A