CN103236947A - Method for switching main server and standby of VOIP (voice over Internet phone) - Google Patents
Method for switching main server and standby of VOIP (voice over Internet phone) Download PDFInfo
- Publication number
- CN103236947A CN103236947A CN2013101423846A CN201310142384A CN103236947A CN 103236947 A CN103236947 A CN 103236947A CN 2013101423846 A CN2013101423846 A CN 2013101423846A CN 201310142384 A CN201310142384 A CN 201310142384A CN 103236947 A CN103236947 A CN 103236947A
- Authority
- CN
- China
- Prior art keywords
- server
- main server
- standby
- master server
- voip
- 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
Links
Images
Abstract
The invention provides a method for switching a main server and a standby server of a VOIP (voice over Internet phone). The method comprises the following steps that the VOIP is registered to the standby server after the main server downtime, a timer thread is created, and the timing time is set; when the operation time of the VOIP reaches the timing time, the VOIP sends a data detecting packet to the main server, and in addition, the next timing time is set; and whether the reply of the main server is received or not is detected, if the reply of the main server is received, the main server survives, otherwise, the main server does not survive, and the operation returns to the step for waiting the timing time again. If the server survives, the standby server is cancelled and is registered onto the main server. The method has the advantages that whether the main server is normal or not can be detected under the condition without making any modification on the main server, the standby server is cancelled and is registered on the main server, and the switching of the main server and the standby server is realized. The problem that the standby server is still used after the main server survives is solved.
Description
Technical field
The present invention relates to a kind of active/standby server changing method for the VOIP phone.
Background technology
In the VOIP practical application, generally have a plurality of servers; It is the branch of active/standby server.Be filled with its server address that need register and standby server address on the VOIP phone configuration page, purpose is to work as master server just often, and the VOIP phone is communicated by letter with master server.Only delayed machine at master server, or not online, the VOIP phone is just registered to being equipped with server.In case after master server was normal again, the VOIP phone switched back on the master server again again so, it is so perfect to be not so good as master server in the function support of server fully after all.But the master server VOIP phone of delaying when surviving again behind the machine does not know that master server is available in the prior art, just can not register to master server again certainly yet.
A kind of " master-salve equipment switch control method " disclosed in the prior art, see that publication number is: 101119187, open day be: 20080206 Chinese patent, master-salve equipment switch control method in a kind of redundant system has been described, at least include a master server object, one target client, one is equipped with server object, and a main working channel and that is connected between master server object and target client is connected the standby working channel that is equipped with between server object and target client; The master server object is by monitoring the communication connected mode and being equipped with server object and being connected; It is characterized in that: when active/standby server communication normal, the master server object initiatively sends the switching controls order according to main working channel running status fault-signal and starts principal and subordinate's switching, when active/standby server object communication fault, standby working channel starts the principal and subordinate according to the main working channel running status fault-signal of monitoring and switches.The present invention distinguishes with it and is: patent 101119187 is characterised in that carries out mutual communication and monitoring between the active/standby server, and carry out next step operation according to main working channel running status fault-signal, use master server monitoring and operation to exist when master server is delayed machine, patent 101119187 just can't realize the active/standby server handoff functionality; If use patent 101119187 then will make amendment to server, increase monitoring function, also to increase the monitoring passage with backup server, this defective the present invention will overcome.To delay under the situation of machine be the state of being judged master server by the VOIP phone to master server in the present invention, do not need server is made amendment.Same, patent 101119187 judgment modes are that the detection communication channel is unusual, and in application scenarios of the present invention, even master server has been delayed machine, but the communication channel of master server and VOIP phone might not be unusual, because communication channel generally can be out of order by telecommunications operator maintenance.
A kind of " management equipment of Dual-Computer Hot-Standby System, management method and Dual-Computer Hot-Standby System " also disclosed in the prior art, see that publication number is: 102916825A, open day be: the Chinese patent of 2013-02-06, a kind of management equipment, management method and Dual-Computer Hot-Standby System of Dual-Computer Hot-Standby System have been described.Described management equipment is used for being connected from server with described with described master server respectively, with between correspondence realization and the described master server and and described information interaction between server; Described management equipment be used for to judge that also can described master server operate as normal, and when judging described master server cisco unity malfunction, controls described master server and described automatic switchover between server by the mode that sends control command.Use technical scheme of the present invention, by respectively and carry out information interaction between the master and slave server, thereby realized the supervision to master and slave server.And, control running status between the master and slave server by the mode that sends control command, thereby realized the automatic switchover of master and slave server, avoided the fissure problem that occurs in the existing Dual-Computer Hot-Standby System, strengthened the stability of Dual-Computer Hot-Standby System.The present invention distinguishes with it and is: 102916825A is when master server is unusual, and management equipment transmission control command is carried out the switching between active/standby server.But what introduce in the present invention is that VOIP phone as client does not have management function, can't send control command, what send is the data snooping bag, be used for learning whether master server has brought back to life, need after the resurrection to register to master server, switch back and carry out work on the master server by being equipped with server.
Summary of the invention
Whether the technical problem to be solved in the present invention is to provide a kind of active/standby server changing method for the VOIP phone, namely detect master server in data detection packet of VOIP phone end timed sending and survive.After the master server survival, can nullify fully server and initiate registration to master server.Avoided also using the problem that is equipped with server after the master server survival always.
The present invention is achieved in that.
A kind of active/standby server changing method for the VOIP phone comprises the steps:
Step 10, VOIP phone are delayed the machine post-registration to being equipped with server at master server, create a timer thread, set timing;
When arriving described timing the running time of step 20, VOIP phone, the VOIP phone sends the data snooping bag to master server, and sets timing next time;
Whether step 30, detection receive the answer of master server, if receive, and then master server survival, otherwise step 20 is got back in not survival of master server.
If the survival of step 40 server is then nullified to being equipped with server, and is registered on the master server.
Further, described data snooping bag is registration packet.
The present invention has following advantage: the VOIP phone is by timed sending data snooping bag, because the data snooping bag is registration packet, then master server will be made respective acknowledgement under the prerequisite of not making any modification.Reaching does not need server to make any modification, and whether normal and be registered to the purpose of master server, realize the switching to active/standby server if just can realize detecting master server.
Description of drawings
The present invention is further illustrated in conjunction with the embodiments with reference to the accompanying drawings.
Fig. 1 is the inventive method flowchart.
Embodiment
Specific implementation of the present invention is: be filled with its master server address that need register in the prior art on the VOIP phone configuration page and be equipped with server address, the VOIP phone is registered on the master server under the normal operation; When master server was delayed machine, the VOIP phone was registered to being equipped with server.Yet the VOIP phone also can't be known and switch on the master server in the normal back of master server, causes VOIP to use the problem of server fully always.The present invention namely is used for addressing the above problem, and uses when of the present invention, and the VOIP phone is entering S101 and creating a timer thread after being equipped with the server registration, set timing.The VOIP phone enters S102 and waits for timing then, and step S103 judges whether to arrive timing, if do not arrive timing, then returns S102 and continues to wait for; If reach timing, then the VOIP phone enters S104 and sends a data detection packet to master server, and sets timing next time.Here the data snooping bag is registration packet, because VOIP registration itself time will send registration packet, directly uses registration packet to survey and has simplified the process that VOIP realizes, has avoided the modification to master server simultaneously again.
Receive when S105 step VOIP phone is judged that subsequently master server replys, if do not receive answer then also survival of master server is described, then return S102 and continue to wait for.In case the server survival will send response; Then the VOIP phone receives that answer thinks that then server survives in S105, and the VOIP phone enters S106 and nullifies to being equipped with server afterwards, re-registers to master server, has realized the purpose that active/standby server switches again.
Though more than described the specific embodiment of the present invention; but being familiar with those skilled in the art is to be understood that; our described specific embodiment is illustrative; rather than for the restriction to scope of the present invention; those of ordinary skill in the art are in modification and the variation of the equivalence of doing according to spirit of the present invention, all should be encompassed in the scope that claim of the present invention protects.
Claims (2)
1. an active/standby server changing method that is used for the VOIP phone is characterized in that: comprise the steps:
Step 10, VOIP phone are delayed the machine post-registration to being equipped with server at master server, create a timer thread, set timing;
When arriving described timing the running time of step 20, VOIP phone, the VOIP phone sends the data snooping bag to master server, and sets timing next time;
Whether step 30, detection receive the answer of master server, if receive, and then master server survival, otherwise step 20 is got back in not survival of master server;
If the survival of step 40 server is then nullified to being equipped with server, and is registered on the master server.
2. a kind of active/standby server changing method for the VOIP phone according to claim 1, it is characterized in that: in the described step 20, described data snooping bag is registration packet.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013101423846A CN103236947A (en) | 2013-04-23 | 2013-04-23 | Method for switching main server and standby of VOIP (voice over Internet phone) |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013101423846A CN103236947A (en) | 2013-04-23 | 2013-04-23 | Method for switching main server and standby of VOIP (voice over Internet phone) |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103236947A true CN103236947A (en) | 2013-08-07 |
Family
ID=48884965
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2013101423846A Pending CN103236947A (en) | 2013-04-23 | 2013-04-23 | Method for switching main server and standby of VOIP (voice over Internet phone) |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103236947A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104158735A (en) * | 2014-08-21 | 2014-11-19 | 网神信息技术(北京)股份有限公司 | Network data package distribution method and device |
CN109905550A (en) * | 2019-03-01 | 2019-06-18 | 上海市共进通信技术有限公司 | The method for realizing the adaptive handoff functionality of VOIP server |
CN112532452A (en) * | 2020-11-30 | 2021-03-19 | 厦门亿联网络技术股份有限公司 | Switching method, device and equipment of communication terminal main and standby servers and storage medium |
CN113595765A (en) * | 2021-07-02 | 2021-11-02 | 厦门亿联网络技术股份有限公司 | Method and device for fault transfer of VoIP terminal registration service |
CN115134220A (en) * | 2022-06-29 | 2022-09-30 | 北京飞讯数码科技有限公司 | Main/standby server switching method and device, computing equipment and storage medium |
CN115604234A (en) * | 2022-11-15 | 2023-01-13 | 深圳市华曦达科技股份有限公司(Cn) | VoIP server self-adaptive switching method, system and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030167343A1 (en) * | 2002-03-04 | 2003-09-04 | Takayuki Furuno | Communications system |
CN101051883A (en) * | 2007-05-11 | 2007-10-10 | 杭州华三通信技术有限公司 | Service switching method and system after main voice server fault restoring |
CN101204076A (en) * | 2005-02-11 | 2008-06-18 | 思科技术公司 | Resilient regisration with a call manager |
CN201497981U (en) * | 2009-04-30 | 2010-06-02 | 升东网络科技发展(上海)有限公司 | Database failure automatic detecting and shifting system |
-
2013
- 2013-04-23 CN CN2013101423846A patent/CN103236947A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030167343A1 (en) * | 2002-03-04 | 2003-09-04 | Takayuki Furuno | Communications system |
CN101204076A (en) * | 2005-02-11 | 2008-06-18 | 思科技术公司 | Resilient regisration with a call manager |
CN101051883A (en) * | 2007-05-11 | 2007-10-10 | 杭州华三通信技术有限公司 | Service switching method and system after main voice server fault restoring |
CN201497981U (en) * | 2009-04-30 | 2010-06-02 | 升东网络科技发展(上海)有限公司 | Database failure automatic detecting and shifting system |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104158735A (en) * | 2014-08-21 | 2014-11-19 | 网神信息技术(北京)股份有限公司 | Network data package distribution method and device |
CN109905550A (en) * | 2019-03-01 | 2019-06-18 | 上海市共进通信技术有限公司 | The method for realizing the adaptive handoff functionality of VOIP server |
CN112532452A (en) * | 2020-11-30 | 2021-03-19 | 厦门亿联网络技术股份有限公司 | Switching method, device and equipment of communication terminal main and standby servers and storage medium |
CN112532452B (en) * | 2020-11-30 | 2023-10-31 | 厦门亿联网络技术股份有限公司 | Method, device, equipment and storage medium for switching main server and standby server of communication terminal |
CN113595765A (en) * | 2021-07-02 | 2021-11-02 | 厦门亿联网络技术股份有限公司 | Method and device for fault transfer of VoIP terminal registration service |
CN115134220A (en) * | 2022-06-29 | 2022-09-30 | 北京飞讯数码科技有限公司 | Main/standby server switching method and device, computing equipment and storage medium |
CN115134220B (en) * | 2022-06-29 | 2023-11-10 | 北京飞讯数码科技有限公司 | Master-slave server switching method and device, computing equipment and storage medium |
CN115604234A (en) * | 2022-11-15 | 2023-01-13 | 深圳市华曦达科技股份有限公司(Cn) | VoIP server self-adaptive switching method, system and storage medium |
CN115604234B (en) * | 2022-11-15 | 2023-03-10 | 深圳市华曦达科技股份有限公司 | VoIP server self-adaptive switching method, system and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103236947A (en) | Method for switching main server and standby of VOIP (voice over Internet phone) | |
US9407498B2 (en) | Mobile gateways in pool for session resilience | |
CN102035676B (en) | ARP (Address Resolution Protocol) interaction based method and equipment for detecting and recovering link fault | |
CN102404146B (en) | Master-slave switching method, network device and DHCP server | |
US20160142283A1 (en) | Methods and apparatus to provide redundancy in a process control system | |
CN101483558A (en) | Method, system and apparatus for packet switching network access by network appliance | |
CN101170459A (en) | Failure detection and link recovery method based on bidirectional forward link | |
CN103368712A (en) | Switchover method and device for main equipment and standby equipment | |
CN106470117B (en) | Transmission switching method, equipment and the system of LTE broadband cluster system | |
US9596130B2 (en) | Method and system for link switching | |
CN105472049B (en) | CGN backup protection method and device for carrier-grade network address conversion | |
CN105024836B (en) | Method and device for switching primary Service Router (SR) and standby SR and SR | |
CN103384212A (en) | Double-machine high availability scheme for communication application system and implementation thereof | |
CN102255757A (en) | Link switching method and device | |
CN101841432A (en) | Port backup method, device and system for service access router | |
CN103532863A (en) | Method and device for realizing software stacking | |
CN104065508A (en) | Application service health examination method, device and system | |
CN104639867A (en) | Method and system for resuming video conferences | |
CN105429814A (en) | Method and device for BFD protection by utilizing multiple board cards | |
CN102647304A (en) | Synchronizing method of address resolution protocols and device | |
CN104734952A (en) | Data message forwarding method and device | |
CN103581025A (en) | Method and system for processing routing information and equipment | |
CN104579729B (en) | The notification method and device of CGN single board default | |
CN105553866A (en) | Traffic load balancing method and routing equipment | |
CN104219086A (en) | Two-layer link dual-homing implementation method, device and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20130807 |