CN113645359B - Call backup and calling method, device, terminal, server and storage medium - Google Patents

Call backup and calling method, device, terminal, server and storage medium Download PDF

Info

Publication number
CN113645359B
CN113645359B CN202110926351.5A CN202110926351A CN113645359B CN 113645359 B CN113645359 B CN 113645359B CN 202110926351 A CN202110926351 A CN 202110926351A CN 113645359 B CN113645359 B CN 113645359B
Authority
CN
China
Prior art keywords
server
terminal
networking
call
outgoing route
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110926351.5A
Other languages
Chinese (zh)
Other versions
CN113645359A (en
Inventor
代述见
罗娟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN202110926351.5A priority Critical patent/CN113645359B/en
Publication of CN113645359A publication Critical patent/CN113645359A/en
Application granted granted Critical
Publication of CN113645359B publication Critical patent/CN113645359B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/22Arrangements for supervision, monitoring or testing
    • H04M3/2272Subscriber line supervision circuits, e.g. call detection circuits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M11/00Telephonic communication systems specially adapted for combination with other electrical systems
    • H04M11/02Telephonic communication systems specially adapted for combination with other electrical systems with bell or annunciator systems
    • H04M11/022Paging systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application provides a call backup and a call method, a device, a terminal, a server and a storage medium, wherein the call backup method comprises the following steps: the terminal monitors whether the main server is abnormal; when the abnormality of the main server is detected, a registration request containing the number and the communication address of the terminal is sent to a pre-associated standby server, so that the standby server can store the number and the communication address in an associated mode; wherein: the main server is a server which is registered with the communication address of the terminal in advance and corresponds to the current-level networking to which the terminal belongs; the standby server is a server corresponding to other networking outside the current-level networking to which the terminal belongs. Compared with the prior art, the server corresponding to other networking except the current-level networking to which the terminal belongs is used as the standby server, so that the multi-machine backup of the main server is not needed, and the cost can be effectively saved.

Description

Call backup and calling method, device, terminal, server and storage medium
Technical Field
The application relates to the technical field of hierarchical networking, in particular to a call backup and call method, a call backup and call device, a terminal, a server and a storage medium.
Background
Currently, in hierarchical networking, the main method for implementing call backup is implemented by a multi-machine backup mode. The multi-machine backup means that two or more servers for managing the call service of the present-level networking are provided, and when the primary server fails, other servers can be used as new primary servers to provide services. However, this approach is costly to deploy and is not conducive to practical popularization. And when all servers of a certain level of networking simultaneously fail, the service can be unrecoverable.
Disclosure of Invention
The embodiment of the application aims to provide a call backup and a call method, a call backup and a call device, a call backup terminal, a call backup server and a call backup storage medium, which are used for realizing call backup in hierarchical networking.
The embodiment of the application provides a call backup method which is applied to a terminal of hierarchical networking and comprises the following steps: monitoring whether the main server is abnormal; when the abnormality of the main server is detected, a registration request containing the number and the communication address of the terminal is sent to a pre-associated standby server, so that the standby server can store the number and the communication address in an associated mode; wherein: the main server is a server which is registered with the communication address of the terminal in advance and corresponds to the current-level networking to which the terminal belongs; the standby server is a server corresponding to other networking outside the current-level networking to which the terminal belongs.
In the implementation process, the server of the current-level networking to which the terminal belongs is used as a main server, so that normal calling of equipment in the hierarchical networking can be realized when the equipment is normal. And the server corresponding to other networking except the home networking to which the terminal belongs is used as a standby server, and when the main server is abnormal, a registration request containing the number and the communication address of the terminal is sent to the standby server which is associated in advance, so that the registration is carried out on the standby server, and the communication address of the terminal can be obtained through searching by the standby server when the main server is abnormal, thereby realizing the call connection from the standby server to the terminal and realizing call backup. Compared with the prior art, the server corresponding to other networking except the current-level networking to which the terminal belongs is used as the standby server, so that the multi-machine backup of the main server is not needed, and the cost can be effectively saved. In addition, when all servers of a certain level of networking are simultaneously failed, the scheme of the embodiment of the application can continuously realize the call service, and compared with the prior art, the situation that the service cannot be recovered when all servers of a certain level of networking are simultaneously failed does not exist.
Further, the method further comprises: and when the main server is monitored to recover from the abnormal state to the normal state, sending a logout request to the standby server so that the standby server clears the communication address of the terminal.
In the implementation process, when the recovery of the main server is monitored, a logout request can be sent to the standby server, so that the communication address of the terminal in the standby server is cleared, and the main server continues to provide services for the terminal.
Further, the standby server is a server in a superior networking of the current-level networking to which the terminal belongs; or the standby server is a server in a lower-level networking of the current-level networking to which the terminal belongs.
In the practical application process, the server in the upper-level network group needs to configure the outbound route of each lower-level network. In the embodiment of the application, if the server in the upper-level networking of the current-level networking to which the terminal belongs is used as the standby server, after the terminal is registered in the standby server, the communication address reaching the terminal can be stored in the upper-level server, so that the terminal can be directly called when the original terminal in the upper-level networking calls the terminal.
Further, the backup server is preconfigured or synchronized with the service data in the main server.
In the implementation process, since the service data in the main server is preconfigured or synchronized in the standby server, when the terminal corresponding to the main server registers to the standby server, the related service of the terminal can be executed on the standby server as the corresponding service data exists, so that the service experience when the terminal is switched to the standby server and the service is improved.
The embodiment of the application also provides a call backup method which is applied to the server of the hierarchical networking and comprises the following steps: receiving a registration request sent by a terminal; the registration request comprises the number and the communication address of the terminal; the terminal is in different networking with the server; and storing the number and the communication address in an association mode.
In the implementation process, the terminal registers in the servers of different networks, and can realize calling through the servers of different networks when the server of the network to which the terminal belongs is abnormal, thereby realizing call backup.
Further, after receiving the registration request sent by the terminal, before associating and saving the number and the communication address, the method further includes: and determining that the number is in a preset backup number set.
In the implementation process, the backup number set is preset, so that the server can realize the backup of the specific number and the aim of effectively managing the registered number can be fulfilled. Meanwhile, the service volume of the server can be effectively controlled by only allowing the numbers in the preset backup number set to register, so that the aim of reasonably managing the load of the server is fulfilled.
The embodiment of the application also provides a calling method which is applied to the server of the hierarchical networking and comprises the following steps: when a call request is received and the call number in the call request is not in the registered number set of the server, searching the call number in the external networking number set of the server; the registration number set is a set of numbers which are associated and stored with communication addresses in the server; the external networking number set is a set which is not associated with the number stored with the communication address but stored with the corresponding outgoing route; if the calling number is found, acquiring a main outgoing route of the calling number, and forwarding the calling request to the next device indicated by the main outgoing route; the primary outgoing route is an outgoing route directed to a primary server of the calling number; if the next equipment indicated by the main outgoing route fails, acquiring a standby outgoing route of the calling number, and forwarding the calling request to the next equipment indicated by the standby outgoing route; the backup outgoing route is an outgoing route directed to a backup server of the calling number.
In the implementation process, by setting the outgoing route of the standby server pointing to the calling number, when the main server of the called terminal is abnormal, the terminal can be effectively called through the standby server, thereby ensuring the normal operation of the calling service and realizing the call backup.
The embodiment of the application also provides a call backup device which is applied to the terminal of the hierarchical networking and comprises the following components: the monitoring module is used for monitoring whether the main server is abnormal; the sending module is used for sending a registration request containing the number and the communication address of the terminal to a pre-associated standby server when the abnormality of the main server is detected, so that the standby server can store the number and the communication address in an associated mode; wherein: the main server is a server which is registered with the communication address of the terminal in advance and corresponds to the current-level networking to which the terminal belongs; the standby server is a server corresponding to other networking outside the current-level networking to which the terminal belongs.
The embodiment of the application also provides a call backup device, which is applied to the server of the hierarchical networking and comprises the following components: the receiving module receives a registration request sent by a terminal; the registration request comprises the number and the communication address of the terminal; the terminal is in different networking with the server; and the storage module is used for storing the number and the communication address in an associated mode.
The embodiment of the application also provides a calling device, which is applied to the server of the hierarchical networking and comprises the following components: the searching module is used for searching the calling number in the external networking number set of the server when the calling request is received and the calling number in the calling request is not in the registered number set of the server; the registration number set is a set of numbers which are associated and stored with communication addresses in the server; the external networking number set is a set which is not associated with the number stored with the communication address but stored with the corresponding outgoing route; the forwarding module is used for acquiring a main outgoing route of the calling number when the calling number is found and forwarding the calling request to the next device indicated by the main outgoing route; the primary outgoing route is an outgoing route directed to a primary server of the calling number; if the next equipment indicated by the main outgoing route fails, acquiring a standby outgoing route of the calling number, and forwarding the calling request to the next equipment indicated by the standby outgoing route; the backup outgoing route is an outgoing route directed to a backup server of the calling number.
The embodiment of the application also provides a terminal, which comprises: the first data communication module, the first processor, the first memory and the first communication bus; the first data communication module is used for carrying out data communication with a server in the hierarchical networking; the first communication bus is used for realizing connection communication among the first data communication module, the first processor and the first memory; the first processor is configured to execute one or more programs stored in the first memory, so as to implement any of the call backup methods applied to the terminal.
The embodiment of the application also provides a server, which comprises: the system comprises a second data communication module, a second processor, a second memory and a second communication bus; the second data communication module is used for carrying out data communication with the terminals in the hierarchical networking; the communication bus is used for realizing connection communication among the second data communication module, the second processor and the second memory; the second processor is configured to execute one or more programs stored in the second memory, so as to implement any of the foregoing call backup methods applied to the server, and/or implement the foregoing call method.
The embodiment of the application also provides a readable storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to realize the call backup method or the call method.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and should not be considered as limiting the scope, and other related drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a two-level hierarchical networking architecture according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a two-level hierarchical networking architecture with dual-machine backup according to an embodiment of the present application;
fig. 3 is a schematic flow chart of a call backup method according to an embodiment of the present application;
fig. 4 is a schematic flow chart of a calling method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a call backup apparatus applied to a terminal according to an embodiment of the present application;
Fig. 6 is a schematic structural diagram of a call backup apparatus applied to a server according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a calling device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application.
Embodiment one:
in order to facilitate understanding of the scheme provided by the embodiment of the present application, the following description is first given with respect to hierarchical networking.
Hierarchical networking is a common networking mode in voice service, and is generally realized by adopting a headquarter and branch architecture. For example, as shown in fig. 1, a 2-level networking architecture is shown in fig. 1. Wherein, the first-level networking A is provided with two second-level networking A1 and A2. An IP (Internet Protocol ) network is a network for making a call between terminals within a networking architecture, and a PSTN (Public Switched Telephone Network ) network is a network for making a call with a terminal outside the networking.
In each networking, the system is provided with at least one server and at least one terminal, and the terminal is registered in the server of the networking to which the terminal belongs, so that the call is realized through the servers in the networking. For example, the terminals a1 and a2 register on the server 1 in the network a, and when the terminal a1 requests to call the terminal a2 or the terminal a2 requests to call the terminal a1, the call can be directly realized through the server 1.
In addition, in each server, a route for a cross-networking call (referred to as an outgoing route) is configured. Among the servers in the lower level networking, the outgoing route points to the server of the upper level networking to which it belongs; in the server of the upper-level networking, the outgoing route points to the server of the networking to which the called terminal belongs. Thus, a cross-networking call can be implemented through configuration of the outgoing route. For example, in the case where the terminal A1 calls the terminal b1, the call request of the terminal A1 first reaches the server 1, then is transferred by the server 1 to the server 2 of the lower-level network A1 to which the terminal b1 belongs according to the outgoing route, and then is called to the terminal b1 through the server 2. For another example, in the case where the terminal b1 calls the terminal a1, the call request of the terminal b1 first reaches the server 2, then is transferred by the server 2 to the server 1 of the upper-level network a to which the terminal a1 belongs according to the outgoing route, and then is called to the terminal a1 through the server 1. For another example, in the case where the terminal b1 calls the terminal b1, the call request of the terminal b1 first reaches the server 2, then is forwarded by the server 2 to the server 1 of the upper-level network a according to the outgoing route, and then the server 1 forwards the call request to the server 3 of the lower-level network A2 to which the terminal b2 belongs according to the outgoing route, and calls the terminal b2 through the server 3.
In hierarchical networking, call backup is required in order to improve call reliability. When the server in the call link fails, the call backup can be realized through other servers, so that the normal processing of the call is ensured.
The conventional processing mode is a multi-machine backup mode at present, as shown in fig. 2, one server 11, one server 21 and one server 31 are respectively configured at the server 1, the server 2 and the server 3 as backups, so that when any server is abnormal, a call can be processed through the backup server of the server.
However, in the method, an additional server is required to be added, so that the cost is high, and the popularization of industrial application is not facilitated. Therefore, in the embodiment of the application, a new call backup method is provided to realize call backup in the hierarchical networking.
Referring to fig. 3, the call backup method provided in the embodiment of the present application includes:
s301: the terminal monitors whether the main server is abnormal.
It should be noted that, in the embodiment of the present application, the terminal may implement monitoring whether the primary server is abnormal by sending a detection message to the primary server.
For example, the terminal may send the detection message to the main server at a preset time interval. If the response message returned by the main server is not received after the timeout, or the message which is returned by the main server and represents that the abnormal state exists is received, the main server is determined to be abnormal.
It should be noted that the terminals described in the embodiments of the present application include, but are not limited to, gateways, IP phones, and SIP (Session Initiation Protocol ) terminals in any form that can implement virtual terminal functions.
It should also be noted that the server described in the embodiments of the present application may be, but is not limited to, an ip pbx (Internet ProtocolPrivate Branch Exchange ) server.
S302: when the terminal detects that the main server is abnormal, a registration request containing the number and the communication address of the terminal is sent to a standby server which is associated with the server in advance.
In the embodiment of the application, the information such as the address of the corresponding standby server can be preconfigured in the terminal, so that when the abnormality of the main server is detected, a registration request containing the number and the communication address of the terminal can be sent to the standby server.
It should be understood that in the embodiment of the present application, the main server may be a server in a network to which the terminal belongs, and the standby server may be any server outside the network to which the terminal belongs.
For example, for the level 2 networking shown in fig. 1, for terminals a1 and a2, server 1 may be configured as the primary server, and server 2 and/or server 3 may be configured as the backup server.
It should be understood that there may be only one configured backup server for one terminal, but there may also be multiple backup servers. When a plurality of backup servers are arranged, when the main server is abnormal, a registration request may be first sent to only one of the plurality of backup servers to request registration. When the backup server fails to register (for example, the backup server is abnormal), a registration request is sent to other backup servers to request registration.
It should be noted that, in the embodiment of the present application, the communication address of the terminal may be a URL (Uniform Resource Locator ) of the terminal. When a URL of a terminal is stored in a server, the server may be directly connected to the terminal through the URL of the terminal.
It should be understood that the terminal normally uses the main server to make the call when the abnormality of the main server is not monitored.
S303: after receiving the registration request, the standby server stores the number and the communication address of the terminal in an associated mode, and completes registration.
It should be understood that in the embodiment of the present application, for one server, it is the primary server of each terminal in the belonging network, and secondly, the server may also be the backup server of the terminal in the other network. Therefore, for one server, it first registers each terminal in the belonging network, that is, stores the number and communication address of each terminal in the belonging network in association with each other.
When the server is used as a standby server, after receiving registration requests sent by terminals of other networks, the server can store the number and the communication address of the terminal in a correlated way, and registration is completed. In this case, the terminal is in a position equivalent to the server, i.e., equivalent to the terminal of the network to which the server belongs, so that the server has a capability of being directly connected to the terminal.
It should be appreciated that if more terminals are registered on a server, the more traffic the server needs to load, which may cause an overload condition on a server. For this reason, in the embodiment of the present application, a backup number set may be configured in each backup server in advance. And after receiving the registration request sent by the terminal, judging whether the number of the terminal is in the backup number set, and if so, storing the number and the communication address of the terminal in a correlated mode. If not, the terminal can be considered to send out the registration request by mistake, and a message of registration error can be returned.
It should be noted that, in the embodiment of the present application, after registering with the standby server, it is also possible to continuously monitor whether the main server is abnormal. If the main server is found to recover from the abnormal state to the normal state, a logout request can be sent to the standby server at the moment, and the standby server can clear the communication address of the terminal according to the logout request. In this way, the provision of services to the terminal by the main server is resumed.
In the embodiment of the application, after the call backup method is adopted, the backup call in the case of the abnormality of the main server can be realized.
It should be noted that, when a server in a peer-level networking or a server in a lower-level networking is used as a standby server, since an outgoing route needs to be transferred through an upper-level networking when a cross-networking call is made, in addition to an original main outgoing route to a main server (i.e., an outgoing route of the main server directed to a number of a terminal to be called) being configured in the upper-level networking, a standby outgoing route to the standby server (i.e., an outgoing route of the standby server directed to a number of the terminal to be called) is also configured, so that it is ensured that the server in the upper-level networking can forward a call request to a server that can currently reach the called terminal through a certain outgoing route.
For example, referring to fig. 4, fig. 4 shows a calling method provided by an embodiment of the present application, including:
s401: when the server receives a call request and the call number in the call request is not in the registered number set of the server, the call number is searched in the external networking number set of the server.
It should be noted that the registered number set is a set of numbers in the server for which communication addresses are stored in association, and the external networking number set is a set of numbers for which communication addresses are not stored in association, but corresponding outgoing routes are stored.
For the embodiment of the application, when the number of a terminal is originally in the external networking number set of the server, but the server is a standby server of the terminal, after the terminal is registered in the server, the number of the terminal is moved from the external networking number set to the registration number set.
If the number of the requested terminal in the call request is in the registered number set, that is, the server can directly acquire the communication address corresponding to the number, so as to directly connect to the terminal of the number.
S402: if the calling number is found, the main outgoing route of the calling number is obtained, and the calling request is forwarded to the next device indicated by the main outgoing route.
S403: if the next device indicated by the main outgoing route fails, the standby outgoing route of the calling number is acquired, and the calling request is forwarded to the next device indicated by the standby outgoing route.
Taking the networking structure shown in fig. 1 as an example, assume that the standby server of the terminal b1 is the server 3, and when the main server of the terminal b1 is abnormal, the terminal b1 registers with the server 3.
Since both the server 3 and the server 2 are servers in the lower-level network of the network to which the server 1 belongs, it is necessary to configure the main outgoing route (directed to the server 2) and the standby outgoing route (directed to the server 3) of the terminal b1 in the server 1 of the upper-level network a.
Assuming that the terminal a1 calls the terminal b1, when the call request of the terminal a1 arrives at the server 1, the server 1 can search for a local registration number set, and because the terminal b1 is not registered on the server 1, can search for an external networking number set and find the number of the terminal b1 in the call request, thereby obtaining the main outgoing route of the terminal b1. At this time, the server 2 is abnormal and cannot respond to the server 1, so that the server 1 re-acquires the standby route to the terminal b1 and forwards the call request to the server 3. Since the terminal b1 is registered in the server 3, the server 3 searches for a local registration number set, and thus obtains the communication address of the terminal b1, and connects to the terminal b1.
Assuming that the terminal b1 calls the terminal a1, when the call request of the terminal b1 arrives at the server 3, the server 3 can search for a local registration number set, and because the terminal a1 is not registered on the server 3, can search for an external networking number set, find the number of the terminal a1 in the call request, thereby obtaining the outgoing route of the terminal a1 and forwarding the call request to the server 1. Since the terminal a1 is a terminal in the network group to which the server 1 belongs, the server 1 searches for a local registration number set, and thus obtains the communication address of the terminal a1, and connects to the terminal a1.
Assuming that the terminal b1 calls the terminal b2, when the call request of the terminal b1 arrives at the server 3, the server 3 can search for a local registration number set, and since the terminal b2 is a terminal in the network group to which the server 3 belongs, the server 3 searches for the local registration number set, and can obtain the communication address of the terminal b2, and connects to the terminal b2.
Assuming that the terminal b2 calls the terminal b1, at this time, the call request of the terminal b2 reaches the server 3, the server 3 can search for a local registration number set, and since the terminal b1 is registered on the server 3, the server 3 searches for the local registration number set, and can obtain the communication address of the terminal b1, and connects to the terminal b1.
It should be noted that, when performing a cross-networking call, the outgoing route needs to be transferred through the upper-level networking, so in a feasible implementation manner of the embodiment of the present application, a server in the upper-level networking of the networking to which the terminal belongs may also be adopted as a standby server of the terminal. At this time, when the main server of the terminal is not abnormal, the terminal can be normally connected through the outbound route in the server of the superior networking. However, when the main server of the terminal is abnormal, the terminal is registered by the server in the upper level networking, so that the terminal can be directly connected to the terminal through the server in the upper level networking, and the standby outgoing route can be unnecessary to be configured in the server in the upper level networking.
For example, taking the networking structure shown in fig. 1 as an example, assume that the backup server of the terminal b1 is the server 1. When the main server of the terminal b1 is not abnormal, when the terminal b1 is called across the network, it is necessary to forward a call request to the server 2 through an outgoing route by the server 1, and then to connect the terminal b1 by the server 2.
When the main server of the terminal b1 is abnormal, the terminal b1 is registered in the server 1.
Assuming that terminal a1 calls terminal b1, when the call request of terminal a1 arrives at server 1, server 1 can search for a local registration number set, and at this time, because terminal b1 is registered on server 1, the number of terminal b1 in the call request can be found, so that the communication address of terminal b1 can be obtained, and thus, terminal b1 can be connected.
Assuming that terminal b2 calls terminal b1, at this time, the call request of terminal b2 arrives at server 3 first, server 3 can forward the call request to server 1 according to the outgoing route, server 1 can find the local registration number set, at this time, because terminal b1 is registered on server 1, the number of terminal b1 in the call request can be found, and thus the communication address of terminal b1 can be obtained, and thus the terminal b1 is connected.
Obviously, the backup route of the terminal b1 configured in the server 1 of the upper-level networking is not required at this time.
It should be noted that in the practical application process, the terminal may often have some value added services. Such as color ring, voice mail, call forwarding, etc. For these services, in the embodiment of the present application, after the backup server corresponding to the terminal is configured, the backup server may pre-configure or synchronize service data of related services in the main server of the terminal, so as to implement service migration.
The address of the backup server corresponding to each terminal in the network may be configured in the main server, so that after the service data of a certain terminal is newly configured in the main server, the service data and the number of the terminal are actively sent to the backup server of the terminal, so that the number of the terminal and the service data are stored in the backup server in an associated manner, and service migration is realized.
It should be noted that, because the technical route of the call backup adopted in the embodiment of the present application is different from the existing multi-machine backup call backup route, the call backup technology in the embodiment of the present application may also be adopted in combination with the existing multi-machine backup.
For example, a hierarchical networking structure as shown in fig. 2 may be used to implement call backup, and when each server in a certain networking in fig. 2 is abnormal, the method of the embodiment of the present application is used to implement call backup.
The call backup method and the call method provided by the embodiment of the application can realize normal call when the equipment in the hierarchical networking is normal by taking the server of the current-level networking to which the terminal belongs as the main server. And the server corresponding to other networking except the home networking to which the terminal belongs is used as a standby server, and when the main server is abnormal, a registration request containing the number and the communication address of the terminal is sent to the standby server which is associated in advance, so that the registration is carried out on the standby server, and the communication address of the terminal can be obtained through searching by the standby server when the main server is abnormal, thereby realizing the call connection from the standby server to the terminal and realizing call backup. Compared with the prior art, the server corresponding to other networking except the current-level networking to which the terminal belongs is used as the standby server, so that the multi-machine backup of the main server is not needed, and the cost can be effectively saved. In addition, when all servers of a certain level of networking are simultaneously failed, the scheme of the embodiment of the application can continuously realize the call service, and compared with the prior art, the situation that the service cannot be recovered when all servers of a certain level of networking are simultaneously failed does not exist.
Embodiment two:
the present embodiment further illustrates the present application by taking a complete configuration process as an example on the basis of the first embodiment.
Referring to the hierarchical networking structure shown in fig. 1, first, numbers of terminals of the networking are respectively configured on a server 1, a server 2 and a server 3, and registered (the numbers and URLs of the terminals are associated and stored).
A first outgoing route is configured in the server 1, directed to the server 2, and a second outgoing route is configured, directed to the server 3.
A third outgoing route is configured in the server 2, pointing to the server 1.
A fourth outgoing route is configured in the server 3, pointing to the server 1.
The terminals a1 and a2 are configured with a main server as a server 1 and a backup server as a server 2.
The terminal b1 configures a main server as a server 2 and a backup server as a server 1.
The terminal b2 configures a main server as a server 3 and a backup server as a server 1.
Normally, the terminals a1, a2, b1, b2 make call connections according to the respective main servers.
When the main server of the terminal is abnormal, the terminal registers with the standby server, and the call connection is carried out through the standby server.
For example, assume that the server 2 is abnormal, and the terminal b1 is registered in the server 1. When the terminal a1 calls the terminal b1, the call request normally arrives at the server 1, the server 1 searches a local registration number set to obtain the URL of the terminal b1, and the URL is connected to the terminal b1 to realize the call from a1 to b 1.
According to the scheme, equipment is not required to be added in the hierarchical networking when call backup is realized, the cost is lower, and the implementation is more convenient. The scheme can be used for various terminals (such as a gateway, an IP telephone, an SIP terminal and the like), and has strong applicability.
Embodiment III:
based on the same inventive concept, two call backup apparatuses 500 and 600, and a call apparatus 700 are also provided in the embodiments of the present application. It should be appreciated that the specific functions of the apparatus 500, 600 and 700 may be found in the above description, and detailed descriptions are omitted here as appropriate to avoid repetition. The apparatus 500, 600, 700 includes at least one software functional module that can be stored in memory in the form of software or firmware or cured in the operating system of the apparatus 500, 600, 700. Specifically:
referring to fig. 5, an apparatus 500 is applied to a terminal of hierarchical networking, including: a monitoring module 501 and a transmitting module 502. Wherein:
a monitoring module 501, configured to monitor whether the main server is abnormal;
a sending module 502, configured to send, when it is detected that the primary server is abnormal, a registration request including a number and a communication address of the terminal to a pre-associated backup server, so that the backup server stores the number and the communication address in an associated manner; wherein:
The main server is a server which is registered with the communication address of the terminal in advance and corresponds to the current-level networking to which the terminal belongs; the standby server is a server corresponding to other networking outside the current-level networking to which the terminal belongs.
In a possible implementation manner of the embodiment of the present application, the sending module 502 is further configured to send a logout request to the standby server when the monitoring module 501 monitors that the main server is restored to a normal state from an abnormal state, so that the standby server clears the communication address of the terminal.
In the embodiment of the application, the standby server is a server in an upper-level networking of the current-level networking to which the terminal belongs; or the standby server is a server in a lower-level networking of the current-level networking to which the terminal belongs.
In the embodiment of the application, the backup server is preconfigured or synchronized with the service data in the main server.
Referring to fig. 6, an apparatus 600 is applied to a server of a hierarchical networking, and includes: a receiving module 601 and a saving module 602. Wherein:
a receiving module 601, configured to receive a registration request sent by a terminal; the registration request comprises the number and the communication address of the terminal; the terminal is in different networking with the server;
A saving module 602, for associatively saving the number and the communication address.
In a possible implementation manner of the embodiment of the present application, the apparatus 600 further includes a determining module, configured to determine, after the receiving module 601 receives the registration request sent by the terminal, that the number is in a preset backup number set before the saving module 602 saves the number and the communication address in an associated manner.
Referring to fig. 7, an apparatus 700 is applied to a server of a hierarchical networking, including: a lookup module 701 and a forwarding module 702. Wherein:
a searching module 701, configured to search, when a call request is received and a call number in the call request is not in a registered number set of the server, the call number in an external networking number set of the server; the registration number set is a set of numbers which are associated and stored with communication addresses in the server; the external networking number set is a set which is not associated with the number stored with the communication address but stored with the corresponding outgoing route;
a forwarding module 702, configured to obtain a primary outgoing route of the calling number when the calling number is found, and forward the call request to a next device indicated by the primary outgoing route; the primary outgoing route is an outgoing route directed to a primary server of the calling number; if the next equipment indicated by the main outgoing route fails, acquiring a standby outgoing route of the calling number, and forwarding the calling request to the next equipment indicated by the standby outgoing route; the backup outgoing route is an outgoing route directed to a backup server of the calling number.
It should be understood that, for simplicity of description, the descriptions in the first embodiment are omitted in this embodiment.
Embodiment four:
the present embodiment provides a terminal, as shown in fig. 8, which includes a first data communication module 801, a first processor 802, a first memory 803, and a first communication bus 804. Wherein:
the first data communication module 801 is configured to perform data communication with a server in the hierarchical networking.
The first communication bus 804 is used to implement connection communication among the first data communication module 801, the first processor 802, and the first memory 803.
The first processor 802 is configured to execute one or more programs stored in the first memory 803 to implement the call backup method executed by the terminal in the first and/or second embodiments.
In addition, the present embodiment provides a server, as shown in fig. 9, which includes a second data communication module 901, a second processor 902, a second memory 903, and a second communication bus 904. Wherein:
the second data communication module 901 is configured to perform data communication with a server in the hierarchical networking.
The second communication bus 904 is used to implement connection communication among the second data communication module 901, the second processor 902, and the second memory 903.
The second processor 902 is configured to execute one or more programs stored in the second memory 903 to implement the call backup method executed by the server or the call method executed by the server in the first and/or second embodiments described above.
It should be understood that the structures shown in fig. 8 and 9 are illustrative only, and that the terminal and server may also include more or fewer components than those shown in fig. 8 and 9, or have different configurations than those shown in fig. 8 and 9.
It should be understood that the first data communication module 801 and the second data communication module 901 may be implemented by using various existing wireless or wired communication modules, which is not limited in the embodiment of the present application.
The present embodiment also provides a readable storage medium, such as a floppy disk, an optical disk, a hard disk, a flash memory, a U disk, an SD (Secure Digital Memory Card, secure digital Card) Card, an MMC (Multimedia Card) Card, or the like, in which one or more programs implementing the above steps are stored, and the one or more programs may be executed by one or more processors to implement the call backup method in the above embodiment one and/or embodiment two, or implement the call method in the above embodiment one. And will not be described in detail herein.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
Further, the units described as separate units may or may not be physically separate, and units displayed as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
Furthermore, functional modules in various embodiments of the present application may be integrated together to form a single portion, or each module may exist alone, or two or more modules may be integrated to form a single portion.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
Herein, a plurality refers to two or more.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and variations will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (12)

1. The call backup method is characterized by being applied to terminals of hierarchical networking and comprising the following steps:
monitoring whether the main server is abnormal;
when the abnormality of the main server is detected, a registration request containing the number and the communication address of the terminal is sent to a pre-associated standby server, so that the standby server stores the number and the communication address in a registration number set in an associated mode; the registered number set is a set of numbers which are associated and stored with communication addresses in a server; wherein:
The main server is a server which is registered with the communication address of the terminal in advance and corresponds to the current-level networking to which the terminal belongs; the standby server is a server corresponding to other networking outside the home networking to which the terminal belongs; the standby server responds to a call request with the number of the terminal, determines the communication address of the terminal according to the registered number set, and is connected to the terminal according to the communication address; the call request is sent to the standby server by a server of the superior networking according to the indication of the standby outgoing route of the number; the backup outgoing route is an outgoing route to a backup server of the number.
2. The call backup method of claim 1, wherein the method further comprises:
and when the main server is monitored to recover from the abnormal state to the normal state, sending a logout request to the standby server so that the standby server clears the communication address of the terminal.
3. A call backup method as claimed in claim 1 or 2, wherein the backup server is preconfigured or synchronized with service data in the primary server.
4. A call backup method, applied to a server of a hierarchical networking, comprising:
receiving a registration request sent by a terminal; the registration request comprises the number and the communication address of the terminal; the terminal is in different networking with the server;
the number and the communication address are stored in a registration number set in an associated mode; the registration number set is a set of numbers which are associated and stored with communication addresses in the server;
receiving a call request sent by a server of the superior networking according to the indication of the standby outgoing route of the number; the call request has the number; the standby outgoing route is an outgoing route pointing to a standby server of the number;
and determining the communication address of the terminal according to the registration number set, and connecting to the terminal according to the communication address.
5. The call backup method of claim 4, wherein after receiving a registration request from the terminal, the method further comprises, prior to associating the number with the communication address:
and determining that the number is in a preset backup number set.
6. A method of calling, a server for hierarchical networking, comprising:
When a call request is received and the call number in the call request is not in the registered number set of the server, searching the call number in the external networking number set of the server; the registration number set is a set of numbers which are associated and stored with communication addresses in the server; the external networking number set is a set which is not associated with the number stored with the communication address but stored with the corresponding outgoing route;
if the calling number is found, acquiring a main outgoing route of the calling number, and forwarding the calling request to the next device indicated by the main outgoing route; the primary outgoing route is an outgoing route directed to a primary server of the calling number;
if the next equipment indicated by the main outgoing route fails, acquiring a standby outgoing route of the calling number, and forwarding the calling request to the next equipment indicated by the standby outgoing route; the backup outgoing route is an outgoing route directed to a backup server of the calling number.
7. A call backup apparatus, applied to a terminal of a hierarchical networking, comprising:
the monitoring module is used for monitoring whether the main server is abnormal;
The sending module is used for sending a registration request containing the number and the communication address of the terminal to a pre-associated standby server when the abnormality of the main server is detected, so that the standby server stores the number and the communication address in a registration number set in an associated mode; the registered number set is a set of numbers which are associated and stored with communication addresses in a server; wherein:
the main server is a server which is registered with the communication address of the terminal in advance and corresponds to the current-level networking to which the terminal belongs; the standby server is a server corresponding to other networking outside the home networking to which the terminal belongs; the standby server responds to a call request with the number of the terminal, determines the communication address of the terminal according to the registered number set, and is connected to the terminal according to the communication address; the call request is sent to the standby server by a server of the superior networking according to the indication of the standby outgoing route of the number; the backup outgoing route is an outgoing route to a backup server of the number.
8. A call backup apparatus, a server for hierarchical networking, comprising:
The receiving module is used for receiving a registration request sent by the terminal; the registration request comprises the number and the communication address of the terminal; the terminal is in different networking with the server;
a saving module, configured to store the number and the communication address in a registered number set in an associated manner; the registration number set is a set of numbers which are associated and stored with communication addresses in the server;
the receiving module is also used for receiving a call request sent by a server of the superior networking according to the indication of the standby outgoing route of the number; the call request has the number; the standby outgoing route is an outgoing route pointing to a standby server of the number; and determining the communication address of the terminal according to the registration number set, and connecting to the terminal according to the communication address.
9. A calling device, characterized by a server for hierarchical networking, comprising:
the searching module is used for searching the calling number in the external networking number set of the server when the calling request is received and the calling number in the calling request is not in the registered number set of the server; the registration number set is a set of numbers which are associated and stored with communication addresses in the server; the external networking number set is a set which is not associated with the number stored with the communication address but stored with the corresponding outgoing route;
The forwarding module is used for acquiring a main outgoing route of the calling number when the calling number is found and forwarding the calling request to the next device indicated by the main outgoing route; the primary outgoing route is an outgoing route directed to a primary server of the calling number; if the next equipment indicated by the main outgoing route fails, acquiring a standby outgoing route of the calling number, and forwarding the calling request to the next equipment indicated by the standby outgoing route; the backup outgoing route is an outgoing route directed to a backup server of the calling number.
10. A terminal, comprising: the first data communication module, the first processor, the first memory and the first communication bus;
the first data communication module is used for carrying out data communication with a server in the hierarchical networking;
the first communication bus is used for realizing connection communication among the first data communication module, the first processor and the first memory;
the first processor is configured to execute one or more programs stored in the first memory to implement the call backup method as claimed in any one of claims 1 to 3.
11. A server, comprising: the system comprises a second data communication module, a second processor, a second memory and a second communication bus;
the second data communication module is used for carrying out data communication with the terminals in the hierarchical networking;
the communication bus is used for realizing connection communication among the second data communication module, the second processor and the second memory;
the second processor is configured to execute one or more programs stored in the second memory to implement the call backup method according to claim 4 or 5 and/or to implement the call method according to claim 6.
12. A computer-readable storage medium storing one or more programs executable by one or more processors to implement the call backup method of any one of claims 1 to 5 or the call method of claim 6.
CN202110926351.5A 2021-08-12 2021-08-12 Call backup and calling method, device, terminal, server and storage medium Active CN113645359B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110926351.5A CN113645359B (en) 2021-08-12 2021-08-12 Call backup and calling method, device, terminal, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110926351.5A CN113645359B (en) 2021-08-12 2021-08-12 Call backup and calling method, device, terminal, server and storage medium

Publications (2)

Publication Number Publication Date
CN113645359A CN113645359A (en) 2021-11-12
CN113645359B true CN113645359B (en) 2023-09-19

Family

ID=78421212

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110926351.5A Active CN113645359B (en) 2021-08-12 2021-08-12 Call backup and calling method, device, terminal, server and storage medium

Country Status (1)

Country Link
CN (1) CN113645359B (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1559038A (en) * 2002-07-29 2004-12-29 ������������ʽ���� Internet communication system, Internet communication method, session management server, wireless communication device, communication relay server, and program
CN1798197A (en) * 2004-12-20 2006-07-05 北京佳讯飞鸿电气有限责任公司 Implement method for restricting VoIP service going out of bureau in foreign land
CN101098279A (en) * 2006-06-30 2008-01-02 李涛 Distributed dynamictopology system, construction method and terminal unit applied therein
CN101529879A (en) * 2006-10-26 2009-09-09 Ktf电信公司 Private mobile network integration service system using public land mobile network and call processing method therefof
CN101582795A (en) * 2009-04-20 2009-11-18 北京佳讯飞鸿电气股份有限公司 Method for realizing double dispatch command center system in IP network
CN101610188A (en) * 2009-07-30 2009-12-23 迈普通信技术股份有限公司 Sip server restoring method of service process fault and sip server
CN102447580A (en) * 2011-12-27 2012-05-09 上海顶竹通讯技术有限公司 Group networking dispatching system and dispatching method thereof
CN102523237A (en) * 2011-12-31 2012-06-27 北京佳讯飞鸿电气股份有限公司 Method for sharing load of SIP registrar in IP dispatching system
CN102843263A (en) * 2012-09-18 2012-12-26 浙江省电力公司 Remote backup method for dispatcher station
US8594307B1 (en) * 2010-09-08 2013-11-26 The Pnc Financial Services Group, Inc. Method of reverse call branch off-load
CN103516546A (en) * 2013-08-19 2014-01-15 北京佳讯飞鸿电气股份有限公司 IP terminal device management system and method for double-center networking
CN103634490A (en) * 2011-03-15 2014-03-12 阿尔卡特朗讯公司 A gateway for the survivability of an enterprise network using SIP
CN103716299A (en) * 2013-09-22 2014-04-09 中兴通讯股份有限公司 Method carrying out session based on SIP, terminal and call business server
CN104202786A (en) * 2014-08-27 2014-12-10 中国联合网络通信集团有限公司 Method and device for calling routing
CN106332282A (en) * 2015-07-03 2017-01-11 普天信息技术有限公司 Method for realizing group call in hierarchical networking
CN110312220A (en) * 2019-07-02 2019-10-08 中国联合网络通信集团有限公司 A kind of communication means and communication system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7496652B2 (en) * 2000-07-17 2009-02-24 Teleservices Solutions, Inc. Intelligent network providing network access services (INP-NAS)
US7440455B2 (en) * 2005-12-22 2008-10-21 Level 3 Communications, Llc Registration of multiple VoIP devices

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1559038A (en) * 2002-07-29 2004-12-29 ������������ʽ���� Internet communication system, Internet communication method, session management server, wireless communication device, communication relay server, and program
CN1798197A (en) * 2004-12-20 2006-07-05 北京佳讯飞鸿电气有限责任公司 Implement method for restricting VoIP service going out of bureau in foreign land
CN101098279A (en) * 2006-06-30 2008-01-02 李涛 Distributed dynamictopology system, construction method and terminal unit applied therein
CN101529879A (en) * 2006-10-26 2009-09-09 Ktf电信公司 Private mobile network integration service system using public land mobile network and call processing method therefof
CN101582795A (en) * 2009-04-20 2009-11-18 北京佳讯飞鸿电气股份有限公司 Method for realizing double dispatch command center system in IP network
CN101610188A (en) * 2009-07-30 2009-12-23 迈普通信技术股份有限公司 Sip server restoring method of service process fault and sip server
US8594307B1 (en) * 2010-09-08 2013-11-26 The Pnc Financial Services Group, Inc. Method of reverse call branch off-load
CN103634490A (en) * 2011-03-15 2014-03-12 阿尔卡特朗讯公司 A gateway for the survivability of an enterprise network using SIP
CN102447580A (en) * 2011-12-27 2012-05-09 上海顶竹通讯技术有限公司 Group networking dispatching system and dispatching method thereof
CN102523237A (en) * 2011-12-31 2012-06-27 北京佳讯飞鸿电气股份有限公司 Method for sharing load of SIP registrar in IP dispatching system
CN102843263A (en) * 2012-09-18 2012-12-26 浙江省电力公司 Remote backup method for dispatcher station
CN103516546A (en) * 2013-08-19 2014-01-15 北京佳讯飞鸿电气股份有限公司 IP terminal device management system and method for double-center networking
CN103716299A (en) * 2013-09-22 2014-04-09 中兴通讯股份有限公司 Method carrying out session based on SIP, terminal and call business server
CN104202786A (en) * 2014-08-27 2014-12-10 中国联合网络通信集团有限公司 Method and device for calling routing
CN106332282A (en) * 2015-07-03 2017-01-11 普天信息技术有限公司 Method for realizing group call in hierarchical networking
CN110312220A (en) * 2019-07-02 2019-10-08 中国联合网络通信集团有限公司 A kind of communication means and communication system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
VoIP技术的组网运用;郭龙等;《国外电子元器件》(第2期);全文 *

Also Published As

Publication number Publication date
CN113645359A (en) 2021-11-12

Similar Documents

Publication Publication Date Title
US20080285438A1 (en) Methods, systems, and computer program products for providing fault-tolerant service interaction and mediation function in a communications network
US9087023B2 (en) Intra-realm AAA fallback mechanism
JP2006013827A (en) Packet transfer apparatus
US10575366B2 (en) Last resource disaster routing in a telecommunications network
CN112532452B (en) Method, device, equipment and storage medium for switching main server and standby server of communication terminal
WO2020057445A1 (en) Communication system, method, and device
CN101159536B (en) Media gateway node condition synchronizing method in dual-home network
US20130185425A1 (en) Method for Optimizing Network Performance After A Temporary Loss of Connection
US8054955B2 (en) Telephone system, associated exchange, and transmission control method
CN113645359B (en) Call backup and calling method, device, terminal, server and storage medium
JP4712941B2 (en) Method for setting up a call in a communication network including a packet network and a circuit network
US11949812B2 (en) ENUM server and congestion control method
CN108270593A (en) A kind of two-node cluster hot backup method and system
US20080080366A1 (en) IP telephone system and telephone exchange
GB2494136A (en) Processing requests in a telecommunications network
CN113824595B (en) Link switching control method and device and gateway equipment
CN113038394B (en) Session binding relationship processing method and device, electronic equipment and readable medium
EP4216588A2 (en) Distributed management system and management method for smart card management devices
CN113055217B (en) Equipment offline repair method and device
JP2019193053A (en) Fault monitoring device and fault monitoring method
JP2000232484A (en) Node device, terminal and storage medium storing program for realizing them
JP2009055342A (en) Media gateway system compatible with sip
JP6032226B2 (en) Remote maintenance system, remote maintenance method, and program
JP3672186B2 (en) Network telephone system, gateway device used therefor, and method of using network telephone system
KR101623657B1 (en) Call processing system, method for processing call and recording media storing the program performing the said mehtod

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant