CN118018391A - Telephone traffic recovery method based on FREESWITCH soft switch disaster recovery hot standby system - Google Patents

Telephone traffic recovery method based on FREESWITCH soft switch disaster recovery hot standby system Download PDF

Info

Publication number
CN118018391A
CN118018391A CN202211393038.0A CN202211393038A CN118018391A CN 118018391 A CN118018391 A CN 118018391A CN 202211393038 A CN202211393038 A CN 202211393038A CN 118018391 A CN118018391 A CN 118018391A
Authority
CN
China
Prior art keywords
freeswitch
recovery
server
service
soft
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.)
Pending
Application number
CN202211393038.0A
Other languages
Chinese (zh)
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.)
Shenzhen Lan You Technology Co Ltd
Original Assignee
Shenzhen Lan You 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 Shenzhen Lan You Technology Co Ltd filed Critical Shenzhen Lan You Technology Co Ltd
Priority to CN202211393038.0A priority Critical patent/CN118018391A/en
Publication of CN118018391A publication Critical patent/CN118018391A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • H04L49/00Packet switching elements
    • H04L49/55Prevention, detection or correction of errors
    • H04L49/557Error correction, e.g. fault recovery or fault tolerance

Landscapes

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

Abstract

The invention discloses a telephone traffic recovery method based on FREESWITCH soft switch disaster recovery hot standby system, relating to the technical field of Internet communication. The invention comprises the following steps: and the fault recovery command sequence executes the corresponding fault recovery command according to the established switching step, judges the running state mark, and if the fault main server process is found, forcibly ends the running of the main server, and opens the telephone traffic takeover switch of the standby server to a working mode so as to enable the telephone traffic takeover switch to accept a new soft exchange telephone traffic distribution function. The automatic fault recovery command sequence provided by the invention controls the fault recovery step of FREESWITCH services, and can automatically increase the control instruction of the associated service; the consistency of the switching steps of the server program is ensured; the unavailable time caused by untimely service switching is reduced; automatically recovering FREESWITCH the interrupted call data of the soft switch service; and the stability of the service program for providing the telephone traffic function to the outside is increased FREESWITCH.

Description

Telephone traffic recovery method based on FREESWITCH soft switch disaster recovery hot standby system
Technical Field
The invention belongs to the technical field of internet communication, and particularly relates to a telephone traffic recovery method based on FREESWITCH soft switch disaster recovery hot standby system.
Background
FREESWITCH is a soft-switching solution for phones with a strong scalability. FREESWITCH is directed to providing routing and interconnection communication protocols for audio, video, text, or any other form of media, including a softphone and softswitch to provide product drivers for voice and chat; when FREESWITCH soft switch server configured as disaster recovery hot backup mode fails, human intervention is needed to be performed on the system or program of the main and standby servers so as to perform role conversion of the main and standby servers, and the service is kept to be provided.
For example, CN113727464a discloses a method for establishing a high concurrency call of a SIP streaming media server, which receives call request information that a first SIP terminal initiates creation of a SIP session to a corresponding first Opensips; the first Opensips selects a first FREESWITCH node with the minimum current load according to the call request information, and establishes a streaming media channel of the first SIP terminal; querying a metadata table of the SIP account number in a database through the selected first FREESWITCH node, and determining a second Opensips registered by a second SIP terminal; and processing and forwarding the call request information to the corresponding second SIP terminal through the second Opensips so as to establish a call between connection and progress, thereby providing perfect and reliable SIP call service for users, and ensuring the concurrent capability of media calls of the server through the expansibility of Opensips and FREESWITCH clusters. Also, as in CN112291142B, a cloud communication method based on intelligent routing is provided, when a problem occurs in a line resource behind an entity line, the system can automatically switch other usable lines, and since user charging is bound on a virtual line, switching the entity line does not affect service usage, unbinding and rebinding the user is not needed, and automatic transfer of line faults is realized.
After the roles of the main server and the standby server are switched, the original telephone traffic distribution logic is kept consistent, the telephone traffic generated when the fault occurs is rebuilt, the voice stream data of the telephone call is ensured not to be cut off because of the occurrence of equipment fault switching, and the interrupted telephone call is automatically recovered. The FREESWITCH soft switch cluster server host in the disaster recovery hot standby mode provides services through a Virtual IP (VIP) address unified externally. However, the present FREESWITCH soft switch cluster server fault recovery method configured as the active-standby mode mainly has the following defects:
1. when a cluster host fails and needs to be switched, the skill level of operation and maintenance personnel is relied on, and the operation of different operation and maintenance personnel cannot guarantee consistency, so that the recovery time of the failure is prolonged;
2. although the disaster recovery hot backup flow switching gateway based on hardware can achieve higher stability, the input cost is higher, and the disaster recovery of the hardware equipment cannot support all fault scenes, so that the switching step is not flexible enough.
Therefore, the application provides a telephone traffic recovery method based on FREESWITCH soft switch disaster recovery hot standby system.
Disclosure of Invention
The invention aims to provide a telephone traffic recovery method based on FREESWITCH soft switch disaster recovery hot standby system, which is based on a programmed execution control mode to normalize an automatic execution sequence with controllable program for a fault recovery process of FREESWITCH soft switch cluster service, and mainly solves the following technical problems:
1. Performing sequence programming control on FREESWITCH soft switch clusters in a main mode and a standby mode, and avoiding error caused by experience operation according to a specified execution sequence;
2. after the roles of the FREESWITCH soft switch servers are switched, the site state when the fault occurs can be recovered in time, and the previous conversation is continued to be normally carried out;
3. the steps and the sequence of the execution related to the recovery process can be customized according to the actual production environment, and the executed process control can be realized by using a plurality of glue languages on the market, so that the flexibility of the switching scheme is realized.
In order to solve the technical problems, the invention is realized by the following technical scheme:
As a first aspect of the present invention, the present invention provides a traffic recovery method based on FREESWITCH soft-switch disaster recovery hot standby system, including the following steps:
Step 101, executing a fault recovery program, adopting a lua analyzer to run a fault recovery command sequence, restarting a FREESWITCH server as a watchdog program when executing the step 101, and using a lua analyzer built in a FREESWITCH server to run the configured fault recovery command sequence;
step 102, judging whether the fault recovery command sequence has an operation state mark, if so, terminating executing the fault recovery program; otherwise, step 103 is entered, and the method for judging whether the fault recovery command sequence has the running state mark is as follows:
When the fault recovery command sequence is operated, a global variable acquisition command of FREESWITCH is used to fetch an operation state variable value which is named cc_ runing and is stored in a global memory;
Judging the running state variable value, if the fetched running state variable value is 1, judging that the fault recovery command sequence has set a running state mark, and stopping the execution of the fault recovery step to avoid the generation of new system faults by repeatedly calling the fault recovery control command;
when the running state variable value does not exist or is not 1, continuing to execute the subsequent steps of fault recovery;
Step 103, setting a fault recovery running state mark;
step 104, executing a fault recovery control command sequence, wherein FREESWITCH services on the standby server provide services to the outside and take over all tasks of the main server;
step 105, executing a call recovery program in FREESWITCH services on the standby server;
Step 106, clearing the fault recovery running state mark, and finishing the fault recovery execution; further, the method for clearing the fault recovery running state flag in step 106 is as follows: when all the switching steps are executed, running global_setvar failover_ runing =0 in FREESWITCH of the execution failure recovery command sequence, and clearing the failure recovery running state mark;
Step 107 ends, and in this step, it indicates that the failure recovery command sequence has been executed.
Further, a fault recovery operation state flag needs to be set in preparation for reference when the fault recovery control process is repeatedly executed; a global variable setting command global_setvar failover_ runing =1, a flag indicating a record running state, an running state variable value of 1, named failover_ runing, is used FREESWITCH, and the set command is stored in global memory.
Further, in the step 104, the method for executing the fault recovery control command sequence is as follows:
judging whether FREESWITCH service processes on the main server are closed or not, if not, forcibly closing the operation of the processes, and disconnecting the network connection link of the TCP/IP;
After receiving the request of active disconnection from the main server, the TCP of the client retries to establish the network connection request with FREESWITCH service, and because the VIP device is already switched to the preset standby FREESWITCH server at this time, the newly generated network request of the client will be streamed to the FREESWITCH service on the standby machine;
Global variable set command global_setvar cc_ runing =1 for service FREESWITCH on standby server, change internal traffic takeover switch for FREESWITCH service to working mode;
The FREESWITCH service on the standby server decides whether to allow the external service to take over all tasks of the original main server by judging whether global_setvar cc_ runing =1 exists.
Further, in the step 105, the following operations are performed when the call recovery procedure is executed:
Setting a standby server as a main server;
FREESWITCH service determines whether newly generated soft-switched traffic needs to be taken over by obtaining the value of global variable cc runing: when the value of global variable cc_ runing is equal to 1, it indicates that all newly generated soft switch traffic will be taken over by the service on the primary server, followed by a call resume command in FREESWITCH service;
The call restoration command takes out the call records stored in the public database, judges whether the call records are generated when a fault occurs, if so, the FREESWITCH server side resends reInvite signaling to the two parties currently talking through the SIP protocol, and prompts the reconstruction of soft exchange communication interrupted by the two parties of the client side and the FREESWITCH server side when the fault occurs, so as to restore the call and the data interaction.
As a second aspect of the present invention, the present invention is an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps of the traffic recovery method based on FREESWITCH soft-switch disaster recovery hot standby system as provided in the first aspect when the processor executes the computer program.
As a third aspect provided by the present invention, the present invention is a computer readable storage medium having stored thereon a computer program, which when executed by a processor, implements the steps of the traffic recovery method based on FREESWITCH soft-switch disaster recovery hot standby system as provided by the first aspect.
As a fourth aspect of the present invention, the present invention is a FREESWITCH soft-switch disaster recovery hot standby system, where the soft-switch disaster recovery hot standby system includes a main server and a standby server, and the main server and the standby server establish a main-standby relationship based on FREESWITCH.
The invention has the following beneficial effects:
The automatic fault recovery command sequence provided by the invention controls the fault recovery step of FREESWITCH services, and can automatically increase the control instruction of the associated service; the consistency of the switching steps of the server program is ensured; the unavailable time caused by untimely service switching is reduced; automatically recovering FREESWITCH the interrupted call data of the soft switch service; and the stability of the service program for providing the telephone traffic function to the outside is increased FREESWITCH.
Of course, it is not necessary for any one product to practice the invention to achieve all of the advantages set forth above at the same time.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a traffic recovery method based on FREESWITCH soft switch disaster recovery hot standby system of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in the present description and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
Furthermore, the terms "first," "second," "third," and the like in the description of the present specification and in the appended claims, are used for distinguishing between descriptions and not necessarily for indicating or implying a relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
Embodiment one:
As shown in fig. 1, as an embodiment provided by the present invention, the present invention is a traffic recovery method based on FREESWITCH soft switch disaster recovery hot standby system, including the following steps:
Step 101, executing a fault recovery program, adopting a lua analyzer to run a fault recovery command sequence, restarting a FREESWITCH server as a watchdog program when executing the step 101, and using a lua analyzer built in a FREESWITCH server to run the configured fault recovery command sequence;
Specifically, when the FREESWITCH soft-switch disaster recovery hot-standby service fails, the method for executing the fault recovery program is called and executed by a third party program, in the method, FREESWITCH is used as a watchdog program and is responsible for running a main program of a fault recovery command sequence, the fault recovery command sequence executes a corresponding fault recovery command according to a set switching step, an operation state variable value of the fault over_ runing recorded in the FREESWITCH program is judged, when each fault recovery command sequence is executed, the operation state variable value of the fault over_ runing is taken out, and when the operation state variable value of the fault over_ runing is judged to be 1, the switching step is terminated (the fault recovery step is terminated), so that the fault recovery step is prevented from being called for a plurality of times in the process of executing the fault recovery;
step 102, judging whether the fault recovery command sequence has an operation state mark, if so, terminating executing the fault recovery program; otherwise, step 103 is entered, and the method for judging whether the fault recovery command sequence has the running state mark is as follows:
When the fault recovery command sequence is run, using the global variable acquisition command global_ getvar cc _ runing of FREESWITCH, taking out the running state variable value named cc_ runing stored in the global memory;
Judging the running state variable value through a program, if the fetched running state variable value is 1, judging that the fault recovery command sequence has set a running state mark, and stopping the execution of the fault recovery step to avoid the generation of new system faults by repeatedly calling the fault recovery control command;
when the running state variable value does not exist or is not 1, continuing to execute the subsequent steps of fault recovery;
Specifically, firstly judging the service running state of FREESWITCH on the main server, if the FREESWITCH service process on the main server is found, then forcibly ending the running of the soft switch service program on the main server, closing all network connections originally connected to FREESWITCH services on the main server, forcibly disconnecting the connection established by the client and the fault FREESWITCH service, so that the soft switch client generates reconnection, and after VIP switching, redistributing the client network data packet to a new FREESWITCH server (namely a standby server) by the network diversion equipment;
Step 103, setting a fault recovery running state mark;
step 104, executing a fault recovery control command sequence, wherein FREESWITCH services on the standby server provide services to the outside and take over all tasks of the main server;
step 105, executing a call recovery program in FREESWITCH services on the standby server;
Step 106, clearing the fault recovery running state mark, and finishing the fault recovery execution;
Step 107 ends, and in this step, it indicates that the failure recovery command sequence has been executed.
The traffic recovery method based on FREESWITCH soft-switch disaster recovery hot standby system according to claim 1, wherein in step 102.
As an embodiment of the present invention, preferably, the method for setting the running state flag is:
In this step, a fault recovery operation state flag needs to be set in preparation for reference when the fault recovery control process is repeatedly executed; a global variable setting command global_setvar failover_ runing =1, a flag indicating a record running state, an running state variable value of 1, named failover_ runing, is used FREESWITCH, and the set command is stored in global memory.
As an embodiment of the present invention, preferably, the step 104 is a method for executing a fault recovery control command sequence, which is as follows:
judging whether FREESWITCH service processes on the main server are closed or not, if not, forcibly closing the operation of the processes, and disconnecting the network connection link of the TCP/IP;
After receiving the request of active disconnection from the main server, the TCP of the client retries to establish the network connection request with FREESWITCH service, and because the VIP device is already switched to the preset standby FREESWITCH server at this time, the newly generated network request of the client will be streamed to the FREESWITCH service on the standby machine;
Global variable set command global_setvar cc_ runing =1 for service FREESWITCH on standby server, change internal traffic takeover switch for FREESWITCH service to working mode;
The global variable is operated in FREESWITCH services on the preset standby server, a command global_setvar cc_ runing =1 is set to be in an operating mode, and FREESWITCH services on the standby server determine whether to allow external service and take over all tasks of the original main server by judging whether global_setvar cc_ runing =1 exists.
Specifically, FREESWITCH services on the standby server are controlled, and the telephone traffic takeover switch is opened to a working mode, so that the standby server receives a new soft switch telephone traffic distribution function and provides telephone traffic services to the outside.
As an embodiment of the present invention, preferably, in step 105, when executing the call recovery procedure, the following operations are performed:
Setting a standby server as a main server;
FREESWITCH service determines whether newly generated soft-switched traffic needs to be taken over by obtaining the value of global variable cc runing: when the value of global variable cc runing is equal to 1, it indicates that all newly generated soft switch traffic will be taken over by the service on the primary server, followed by execution of call resume command fsctlrecover in FREESWITCH service;
The call restoration command takes out the call records stored in the public database, judges whether the call records are generated when a fault occurs, if so, the FREESWITCH server side resends reInvite signaling to the two parties currently talking through the SIP protocol, and prompts the reconstruction of soft exchange communication interrupted by the two parties of the client side and the FREESWITCH server side when the fault occurs, so as to restore the call and the data interaction.
Specifically, after the standby FREESWITCH server is changed to the primary FREESWITCH server, the fault recovery command sequence executes a corresponding call recovery command on the target FREESWITCH server, and the program queries call record data stored in the public database and invokes a call re-establishment function command, FREESWITCH re-sends reInvite signaling to both parties currently in a call through the SIP protocol, so as to prompt both parties to reestablish a connection interrupted when a fault occurs, and resume the call and data interaction.
As an embodiment of the present invention, preferably, the method for clearing the fault recovery running state flag in step 106 is:
when all the switching steps have been performed, global_setvar failover_ runing =0 is run in FREESWITCH of the execution failure recovery command sequence, and the failure recovery running state flag is cleared.
In one embodiment of the present invention, preferably, the remote execution function of the operating system uses the automatic control command sequence configurable by the program to operate the state change of the service deployed on the disaster recovery hot backup cluster host to realize the soft switch service switching on the disaster recovery hot backup cluster host FREESWITCH.
As an embodiment provided by the invention, preferably, call recovery is executed after FREESWITCH service switching, so that the call in the event of failure can be recovered to continue the call, and the traffic stability of FREESWITCH soft switch service deployed on the disaster recovery hot backup cluster is improved.
As one embodiment provided by the invention, the preferred automated command sequence controls FREESWITCH the fault recovery steps of the service, and can add control instructions of the associated service by itself.
Embodiment two:
as still another embodiment of the present invention, the present invention is an electronic device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements the steps of the traffic recovery method based on FREESWITCH soft-switch disaster recovery hot standby system provided in the first embodiment when executing the computer program.
As a further embodiment provided by the invention, the automatic control command sequence writing mode is flexible, the operation control command provided by the embodiment can be realized through multiple languages, so that the operation control command is convenient to deploy and execute in different operating system environments, the control command of the associated service can be added in the control command sequence, the switching requirements of multiple application scenes are flexibly adapted, the compatibility, the universality and the configurability are realized, the execution sequence of scripted control is realized, and the error rate caused by different technical capabilities or inconsistent operation of different operation and maintenance personnel and the service interruption time during operation switching are reduced.
Embodiment III:
As still another embodiment of the present invention, the present invention is a computer readable storage medium having stored thereon a computer program, which when executed by a processor, implements the steps of the traffic recovery method based on FREESWITCH soft-switch disaster recovery backup system provided in the first embodiment.
Embodiment four:
as still another embodiment provided by the invention, the invention is a FREESWITCH soft-switch disaster recovery hot standby system, which includes a main server and a standby server, and the main server and the standby server establish a main-standby relationship based on FREESWITCH.
Fifth embodiment:
As a further embodiment provided by the invention, the invention can be flexibly applied to the switching control of other network service applications after being simply modified;
For example: 1. when the watchdog program judges that the service fails, the dual-machine hot standby streaming media forwarding server can quickly execute a defined switching command sequence to switch streaming media data streams to a new standby server, so that the interruption time of audio and video streams is reduced;
2. When the server fails, the double-machine hot standby chat server quickly calls the defined switching command sequence through the watchdog program, and when a new server is started, the chat session record which is established before can be restored.
In the description of the present specification, the descriptions of the terms "one embodiment," "example," "specific example," and the like, mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The preferred embodiments of the invention disclosed above are intended only to assist in the explanation of the invention. The preferred embodiments are not exhaustive or to limit the invention to the precise form disclosed. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the invention and the practical application, to thereby enable others skilled in the art to best understand and utilize the invention. The invention is limited only by the claims and the full scope and equivalents thereof.

Claims (10)

1. The telephone traffic recovery method based on FREESWITCH soft switch disaster recovery hot standby system is characterized by comprising the following steps:
step 101, executing a fault recovery program: operating a fault recovery command sequence by using a lua parser;
Step 102, judging whether an operation state mark exists in the fault recovery command sequence, and if the operation state mark exists, terminating executing the fault recovery program; otherwise, go to step 103;
Step 103, setting a fault recovery running state mark;
step 104, executing a fault recovery control command sequence, wherein FREESWITCH services on the standby server provide services to the outside and take over all tasks of the main server;
step 105, executing a call recovery program in FREESWITCH services on the standby server;
And 106, clearing the fault recovery running state mark, and ending the fault recovery program.
2. The traffic recovery method based on FREESWITCH soft-switch disaster recovery hot standby system according to claim 1, wherein when executing step 101, a FREESWITCH server is re-started as a watchdog program, and a lua parser built in FREESWITCH server is used to run a configured failure recovery command sequence.
3. The traffic recovery method based on FREESWITCH soft-switch disaster recovery hot standby system according to claim 1, wherein in step 102, the method for determining whether the running state flag exists in the failure recovery command sequence is as follows:
when the fault recovery command sequence is operated, a global variable acquisition command of FREESWITCH is used for fetching an operation state variable value named cc_ runing stored in a global memory;
Judging the running state variable value, if the running state variable value is 1, judging that a running state mark is set in the fault recovery command sequence, and ending the fault recovery step;
and when the running state variable value does not exist or is not 1, continuing to execute the subsequent steps of fault recovery.
4. The traffic recovery method based on FREESWITCH soft-switch disaster recovery hot standby system according to claim 3, wherein the method for setting the running state flag is:
Using the global variable set command global_ setvarfailover _ runing =1 of FREESWITCH, the running state variable value named failover_ runing is denoted as 1, and the set command is stored in the global memory.
5. The traffic recovery method based on FREESWITCH soft-switch disaster recovery hot standby system according to claim 1, wherein the method for executing the failure recovery control command sequence in step 104 is as follows:
Judging whether FREESWITCH service processes on the main server are closed or not, if not, forcibly closing the operation of the main server processes, and disconnecting the network connection link of the TCP/IP;
After receiving the request of active disconnection of the main server, the TCP of the client re-initiates a network connection request with FREESWITCH service;
Global variable set command global_setvar cc_ runing =1 for service FREESWITCH on standby server, change internal traffic takeover switch for FREESWITCH service to working mode;
The FREESWITCH service on the standby server decides whether to allow the external service to take over all tasks of the main server by judging whether global_ setvarcc _ runing =1 exists.
6. The traffic recovery method based on FREESWITCH soft-switch disaster recovery hot standby system according to claim 1, wherein in step 105, the following operations are performed when executing a call recovery procedure:
Setting a standby server as a main server;
FREESWITCH service determines whether newly generated soft-switched traffic needs to be taken over by obtaining the value of global variable cc runing: when the value of global variable cc_ runing is equal to 1, it means that all newly generated soft switch traffic will be taken over by the service on the primary server, and then a call resume command is executed in FREESWITCH service;
And taking out the call records stored in the public database, judging whether the call records are generated when faults occur, and if so, retransmitting reInvite signaling to the two parties currently talking through the SIP protocol by the FREESWITCH server.
7. The traffic recovery method based on FREESWITCH soft-switch disaster recovery hot standby system according to claim 1, wherein the method for clearing the fault recovery running state flag in step 106 is as follows:
When all the switching steps have been performed, the command global_setvar failover_ runing =0 is run in FREESWITCH services executing the failback command sequence, and the failback running status flag is cleared.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor performs the steps of the method for recovering traffic based on FREESWITCH soft-switch disaster recovery hot standby system as claimed in any one of claims 1 to 7 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method for traffic restoration based on FREESWITCH soft-switch disaster recovery hot standby system according to any one of claims 1 to 7.
10. The FREESWITCH soft-switching disaster recovery hot standby system is characterized by comprising a main server and a standby server, wherein the main server and the standby server establish a main-standby relationship based on FREESWITCH.
CN202211393038.0A 2022-11-08 2022-11-08 Telephone traffic recovery method based on FREESWITCH soft switch disaster recovery hot standby system Pending CN118018391A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211393038.0A CN118018391A (en) 2022-11-08 2022-11-08 Telephone traffic recovery method based on FREESWITCH soft switch disaster recovery hot standby system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211393038.0A CN118018391A (en) 2022-11-08 2022-11-08 Telephone traffic recovery method based on FREESWITCH soft switch disaster recovery hot standby system

Publications (1)

Publication Number Publication Date
CN118018391A true CN118018391A (en) 2024-05-10

Family

ID=90945130

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211393038.0A Pending CN118018391A (en) 2022-11-08 2022-11-08 Telephone traffic recovery method based on FREESWITCH soft switch disaster recovery hot standby system

Country Status (1)

Country Link
CN (1) CN118018391A (en)

Similar Documents

Publication Publication Date Title
US7085960B2 (en) Communication system and method
JP3930743B2 (en) Method for providing network connectivity in a fault tolerant platform
CN102439903B (en) Method, device and system for realizing disaster-tolerant backup
US8467287B2 (en) High available method for border gateway protocol version 4
US7539127B1 (en) System and method for recovering from endpoint failure in a communication session
RU2407195C2 (en) System and method for provision of operation of higher persistence network with remote access
US20060031540A1 (en) High availability software based contact centre
WO2012122945A1 (en) Operating method and device for virtual network element
US20120128135A1 (en) Fast detection and reliable recovery on link and server failures in a dual link telephony server architecture
US20170353589A1 (en) Supporting hitless upgrade of call processing nodes in cloud-hosted telephony system
WO2003056756A1 (en) A method of setting backup home location register
CA2478361C (en) Method and apparatus for migrating to an alternate call controller
EP1786216A1 (en) Method and system for switching the state of a termination in a media gateway
US8134915B2 (en) Method and apparatus for providing network redundancy
CN112564990B (en) Management method for switching audio management server
US8775617B2 (en) Method for optimizing network performance after a temporary loss of connection
CN114422335A (en) Communication method, communication device, server and storage medium
US8451828B2 (en) Registering an internet protocol phone in a dual-link architecture
CN113489601A (en) Anti-destruction method and device based on video networking autonomous cloud network architecture
CN118018391A (en) Telephone traffic recovery method based on FREESWITCH soft switch disaster recovery hot standby system
EP2618533B1 (en) Method and system for determining ip bearer optimization based on virtual media gateway
KR100713072B1 (en) Duplexed softswitch system and method thereof
CN103138998B (en) A kind of detection of proxy-state, device and system
JP5342578B2 (en) Call control system and information redundancy method used for call control
CN112003929B (en) RabbitMQ cluster-based thermal restoration method, system, device and medium

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