CN113595765A - Method and device for fault transfer of VoIP terminal registration service - Google Patents
Method and device for fault transfer of VoIP terminal registration service Download PDFInfo
- Publication number
- CN113595765A CN113595765A CN202110754578.6A CN202110754578A CN113595765A CN 113595765 A CN113595765 A CN 113595765A CN 202110754578 A CN202110754578 A CN 202110754578A CN 113595765 A CN113595765 A CN 113595765A
- Authority
- CN
- China
- Prior art keywords
- target server
- registration
- server
- new target
- request
- 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
- 238000012546 transfer Methods 0.000 title claims abstract description 28
- 238000000034 method Methods 0.000 title claims abstract description 25
- 238000004891 communication Methods 0.000 claims abstract description 145
- 238000001514 detection method Methods 0.000 claims abstract description 72
- 230000000977 initiatory effect Effects 0.000 claims abstract description 21
- 239000000523 sample Substances 0.000 claims description 18
- 238000013508 migration Methods 0.000 claims 1
- 230000005012 migration Effects 0.000 claims 1
- 102100022219 NF-kappa-B essential modulator Human genes 0.000 description 40
- 230000007246 mechanism Effects 0.000 description 8
- 238000011084 recovery Methods 0.000 description 6
- 230000011664 signaling Effects 0.000 description 6
- 230000002159 abnormal effect Effects 0.000 description 5
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0659—Management of faults, events, alarms or notifications using network fault recovery by isolating or reconfiguring faulty entities
- H04L41/0661—Management of faults, events, alarms or notifications using network fault recovery by isolating or reconfiguring faulty entities by reconfiguring faulty entities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/1066—Session management
- H04L65/1073—Registration or de-registration
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/1066—Session management
- H04L65/1096—Supplementary features, e.g. call forwarding or call holding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/1066—Session management
- H04L65/1101—Session protocols
- H04L65/1104—Session initiation protocol [SIP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/80—Responding to QoS
Abstract
The invention discloses a method and a device for fault transfer of a VoIP terminal registration service. The method for the fault transfer of the VoIP terminal registration service comprises the following steps: selecting one server from a plurality of servers analyzed according to the domain name as a target server, and sending a registration request to the target server to successfully register on the target server; sending a communication request to the target server, and performing registration continuation detection on the target server when the target server abnormally responds to the communication request; and if the registration renewal detection fails, reselecting another server as a new target server, and initiating a registration request to the new target server to successfully register on the new target server. The method and the device can enable the VoIP terminal to rapidly carry out fault transfer when the server is down, thereby ensuring the communication stability of the VoIP terminal.
Description
Technical Field
The invention relates to the technical field of network communication, in particular to a method and a device for fault transfer of a VoIP terminal registration service.
Background
Voice over Internet Protocol (VoIP) is a Voice call technology, and a Voice call and a multimedia conference are achieved through Internet Protocol (IP), that is, communication is performed through the Internet. VoIP technology is used for a variety of internet access devices including VoIP phones, smart phones, and personal computers, and these VoIP terminals are registered in servers of various VoIP service providers, and perform various communication services such as conversation and sending short messages through cellular networks and WiFi. When a server registered by the VoIP terminal is down, the communication service is abnormal, the VoIP terminal cannot perform fault transfer rapidly at the moment, the communication service can be performed normally only through manual operation or after the registered service is recovered passively, and the communication stability of the VoIP terminal is difficult to guarantee.
Disclosure of Invention
The invention provides a method and a device for fault transfer of a VoIP terminal registration service, which can enable a VoIP terminal to quickly carry out fault transfer when a server is down, thereby ensuring the communication stability of the VoIP terminal.
In order to solve the foregoing technical problem, in a first aspect, an embodiment of the present invention provides a method for failover of a registration service of a VoIP terminal, including:
selecting one server from a plurality of servers analyzed according to the domain name as a target server, and sending a registration request to the target server to successfully register on the target server;
sending a communication request to the target server, and performing registration continuation detection on the target server when the target server abnormally responds to the communication request;
and if the registration renewal detection fails, reselecting another server as a new target server, and initiating a registration request to the new target server to successfully register on the new target server.
Further, after the reselecting another server as a new target server and initiating a registration request to the new target server to successfully register on the new target server if the registration renewal detection fails, the method further includes:
and re-sending the communication request to the new target server, and recovering the communication service when the new target server normally responds to the communication request.
Further, if the registration renewal detection fails, reselecting another server as a new target server, and initiating a registration request to the new target server to successfully register on the new target server, further comprising:
and if the registration renewal detection fails, the registration request is sent to the target server again after waiting for the registration retry time so as to successfully register on the target server.
Further, the sending a communication request to the target server and performing registration continuation detection on the target server when the target server abnormally responds to the communication request specifically includes:
and sending the communication request to the target server, and sending a registration renewal probe packet to the target server when the target server cannot respond or erroneously responds to the communication request, so as to judge whether the target server is available according to return data of the target server to the registration renewal probe packet.
Further, if the registration renewal detection fails, reselecting another server as a new target server, and initiating a registration request to the new target server to successfully register on the new target server, specifically:
and if the registration continuation detection fails, sequentially selecting another server as the new target server according to the analysis sequence of the plurality of servers, and sending the registration request to the new target server until the server is successfully registered on the new target server.
In a second aspect, an embodiment of the present invention provides a device for failover of a registration service of a VoIP terminal, including:
the registration module is used for selecting one server from a plurality of servers analyzed according to the domain name as a target server and sending a registration request to the target server so as to successfully register on the target server;
the detection module is used for sending a communication request to the target server and performing registration continuation detection on the target server when the target server abnormally responds to the communication request;
and the transfer module is used for reselecting another server as a new target server if the registration continuation detection fails, and initiating a registration request to the new target server to successfully register on the new target server.
Further, the transfer module is further configured to reselect another server as a new target server if the registration continuation detection fails, initiate a registration request to the new target server to successfully register on the new target server, resend the communication request to the new target server, and resume a communication service when the new target server normally responds to the communication request.
Further, if the registration renewal detection fails, reselecting another server as a new target server, and initiating a registration request to the new target server to successfully register on the new target server, further comprising:
and if the registration renewal detection fails, the registration request is sent to the target server again after waiting for the registration retry time so as to successfully register on the target server.
Further, the sending a communication request to the target server and performing registration continuation detection on the target server when the target server abnormally responds to the communication request specifically includes:
and sending the communication request to the target server, and sending a registration renewal probe packet to the target server when the target server cannot respond or erroneously responds to the communication request, so as to judge whether the target server is available according to return data of the target server to the registration renewal probe packet.
Further, if the registration renewal detection fails, reselecting another server as a new target server, and initiating a registration request to the new target server to successfully register on the new target server, specifically:
and if the registration continuation detection fails, sequentially selecting another server as the new target server according to the analysis sequence of the plurality of servers, and sending the registration request to the new target server until the server is successfully registered on the new target server.
The embodiment of the invention has the following beneficial effects:
the method comprises the steps of selecting one server from a plurality of servers analyzed according to a domain name as a target server, sending a registration request to the target server to successfully register on the target server, sending a communication request to the target server, performing registration continuation detection on the target server when the target server abnormally responds to the communication request, reselecting another server as a new target server if the registration continuation detection fails, and initiating the registration request to the new target server to successfully register on the new target server, so that the fault transfer of the VoIP terminal registration service is realized. Compared with the prior art, the embodiment of the invention associates the registration service with the communication service, when the VoIP terminal is registered on one server but cannot normally perform the communication service, the VoIP terminal actively triggers the fault transfer mechanism of the registration service to automatically switch and register on the other server, the VoIP terminal can quickly recover the communication service without manual operation or passively waiting for the recovery of the registration service, and the VoIP terminal can quickly perform fault transfer when the server is down, thereby ensuring the communication stability of the VoIP terminal.
Drawings
Fig. 1 is a schematic flowchart of a method for failover of a VoIP terminal registration service according to a first embodiment of the present invention;
fig. 2 is another schematic flow chart of a failover method of a VoIP terminal registration service in the first embodiment of the present invention;
fig. 3 is a schematic structural diagram of a failover apparatus for a VoIP terminal registration service in a second embodiment of the present invention.
Detailed Description
The technical solutions in the present invention will be described clearly and completely with reference to the accompanying drawings, and it is obvious that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that, the step numbers in the text are only for convenience of explanation of the specific embodiments, and do not serve to limit the execution sequence of the steps. The method provided by the embodiment can be executed by the relevant terminal device, and the following description takes the VoIP terminal as an execution subject as an example.
As shown in fig. 1, a first embodiment provides a method for failover of a VoIP terminal registration service, including steps S1 to S3:
s1, selecting a server from the servers analyzed according to the domain name as a target server, and sending a registration request to the target server to successfully register on the target server;
s2, sending a communication request to the target server, and performing registration and successive offer detection on the target server when the target server abnormally responds to the communication request;
and S3, if the registration continuation detection fails, reselecting another server as a new target server, and initiating a registration request to the new target server to successfully register on the new target server.
As shown in fig. 2, as an example, in step S1, the VoIP terminal selects one server from several servers as a target server by parsing out a plurality of servers such as IP1, IP2, IP3, etc. or one server of IP1 from the registered domain name by the domain name server, and sends a registration request to the target server to successfully register on the target server. The VoIP terminal may select the server IP1 which is firstly analyzed from the servers as the target server according to the analysis sequence IP1 → IP2 → IP3 → … or IP1 of the servers.
In step S2, after the VoIP terminal is successfully registered in the target server, the VoIP terminal sends a communication request, such as various communication service requests for subscribing, talking or sending short messages, to the target server according to the communication requirement, and when the target server normally responds to the communication request, the target server is considered to be normally operating, and at this time, the VoIP terminal normally performs the communication service, and when the target server abnormally responds to the communication request, the target server is considered to be faulty, and at this time, the VoIP terminal triggers a failover mechanism of the registration service, and performs registration continuation detection on the target server.
In step S3, in the case where a plurality of servers are resolved from the domain name, if the registration continuation detection fails and the target server is considered to be unavailable, the VoIP terminal reselects one server from the servers other than the target server as a new target server, and initiates a registration request to the new target server to successfully register on the new target server. Wherein, the VoIP terminal may select the server IP2, which is firstly parsed except the target server IP1, from the several servers as a new target server according to the parsing order IP1 → IP2 → IP3 → … of the several servers.
In the embodiment, the registration service is associated with the communication service, when the VoIP terminal is registered on one server but cannot normally perform the communication service, the VoIP terminal actively triggers a failover mechanism of the registration service to automatically switch and register on another server, the VoIP terminal can quickly recover the communication service without manual operation or passive waiting for recovery of the registration service, and the VoIP terminal can quickly perform failover when the server is down, so that the communication stability of the VoIP terminal is ensured.
In a preferred embodiment, after reselecting another server as a new target server and initiating a registration request to the new target server to successfully register on the new target server if the registration continuation detection fails, the method further includes: and re-sending the communication request to the new target server, and recovering the communication service when the new target server normally responds to the communication request.
As an example, for the case of resolving a plurality of servers according to the domain name, if the registration continuation detection fails and the target server is considered to be unavailable, the VoIP terminal reselects one server from other servers except the target server as a new target server, initiates a registration request to the new target server to successfully register on the new target server, and after the VoIP terminal successfully registers on the new target server, the VoIP terminal resends a communication request, such as various communication service requests of subscribing, talking or sending short messages, to the new target server according to the communication requirement, and resumes the communication service when the new target server normally responds to the communication request.
According to the embodiment, after the VoIP terminal is automatically switched and registered on another server, the VoIP terminal selects whether to recover the communication service according to the communication requirement, so that the communication service can be rapidly recovered on the premise of considering the communication requirement of the user, and the communication stability of the VoIP terminal is guaranteed.
In a preferred embodiment, if the registration renewal detection fails, reselecting another server as a new target server, and initiating a registration request to the new target server to successfully register on the new target server, further comprising: and if the registration renewal detection fails, the registration request is sent to the target server again after waiting for the registration retry time so as to successfully register on the target server.
As an example, for the case of resolving one server according to the domain name, if the registration continuation detection fails and the target server is considered to be unavailable, the VoIP terminal waits for the registration retry time and then resends the registration request to the target server to be successfully registered on the target server again, and when the VoIP terminal is successfully registered on the target server again, the VoIP terminal resends the communication request to the target server according to the communication requirement, such as various communication service requests of subscribing, talking or sending short messages, and resumes the communication service when the target server normally responds to the communication request.
In the embodiment, when no other server is available for the VoIP terminal to switch registration, the VoIP terminal automatically waits for registration retry time and then sends the registration request to the target server again, and tries registration at regular time, compared with the case of waiting for registration service recovery through manual operation or passively, the waiting time is effectively shortened, when the server goes down, the VoIP terminal can rapidly perform fault transfer, and when the VoIP terminal is registered on the server again, the VoIP terminal selects whether to recover the communication service according to the communication requirement, and can rapidly recover the communication service under the premise of considering the communication requirement of the user, thereby ensuring the communication stability of the VoIP terminal.
In a preferred embodiment, the sending a communication request to the target server, and performing registration continuation detection on the target server when the target server abnormally responds to the communication request specifically includes: and sending a communication request to the target server, and sending a registration renewal probe packet to the target server when the target server cannot respond or erroneously responds to the communication request so as to judge whether the target server is available according to the return data of the target server to the registration renewal probe packet.
Illustratively, the VoIP terminal sends a communication request to the target server, and when the target server cannot respond or erroneously responds to the communication request, the target server is considered to have a fault, at this time, the VoIP terminal generates a registration continuation probe packet according to the registration request, that is, registration register signaling of a standard rfc header field including request uri, from, to, cseq, contact, call-id, content-length, and the like, and sends the registration continuation probe packet to the target server, the target server will make feedback according to the registration register signaling and its own operating state, for example, when the network is not reachable, the target server returns 503, when the account password of the registration register signaling is incorrect, the target server returns 403, and the VoIP terminal judges whether the target server is available according to the return data of the registration continuation probe packet from the target server.
In a preferred embodiment, if the registration renewal detection fails, reselecting another server as a new target server, and initiating a registration request to the new target server to successfully register on the new target server, specifically: if the registration continuation detection fails, another server is sequentially selected as a new target server according to the analysis sequence of the plurality of servers, and a registration request is sent to the new target server until the new target server is successfully registered.
Illustratively, if the registration continuation detection fails, and the target server is considered to be unavailable, the VoIP terminal reselects the server IP2, which is parsed first except for the target server IP1, from among the servers as a new target server according to the parsing order of the servers IP1 → IP2 → IP3 → …, initiates a registration request to the new target server IP2 to be successfully registered on the new target server IP2, and when the VoIP terminal fails to be successfully registered on the new target server IP2, the VoIP terminal continues to select the server IP3, which is parsed first except for the target server IP1 and the server IP2, as a new target server, initiates a registration request to the new target server IP3 to be successfully registered on the new target server IP3, and so on until the VoIP terminal is successfully registered on the new target server.
In order to illustrate the embodiment more clearly, reference may be made to the following application scenarios, which have great advantages for application scenarios in which batches of VoIP terminals are registered on a server, where a failover mechanism of a registration service is triggered by a VoIP terminal in a linkage manner when a communication service is abnormal, rather than simply starting a retransmission mechanism only when the registration fails.
Scene 1:
the method comprises the following steps: a large number of VoIP terminals are registered on the same server, the registration duration of the VoIP terminals is 3600s, and the server is down after the registration of the VoIP terminals is successful.
The operation is as follows: wherein a certain VoIP terminal fails to initiate a call.
As a result:
1. this embodiment is not employed:
(1) the VoIP terminal normally displays the registered state, operation and maintenance personnel cannot sense abnormal downtime of the server, the actual situation is that a large number of VoIP terminals are disconnected, the registered state of the VoIP terminal is displayed abnormally, and communication service is abnormal;
(2) the VoIP terminal needs to initiate registration continuation after 3600s and can renew the registration state, and senses that the downtime of the server is abnormal, and the downtime of the communication service of the VoIP terminal is too long;
(3) if the registration duration of the VoIP terminal is shortened, the traffic bandwidth occupies a large amount in a short time, and the number of the VoIP terminals is large, the bandwidth and the server load balancing pressure can be increased.
2. With the present embodiment:
(1) single server scenario: the VoIP terminal can trigger registration renewal detection, the registration renewal detection has no response, the VoIP terminal updates the registration state into registration failure, operation and maintenance personnel can sense that the server is possibly out of order, and the server is actively checked;
(2) a multi-server scenario: the VoIP terminal triggers the registration renewal detection, the registration renewal detection can be switched to other servers without response, communication services such as conversation and subscription can be quickly recovered, and the communication services of the VoIP terminal are recovered to be normal.
As shown in fig. 3, a second embodiment provides a failover apparatus for a registration service of a VoIP terminal, including: the registration module 21 is configured to select a server from the servers parsed according to the domain name as a target server, and send a registration request to the target server to successfully register the server on the target server; the detection module 22 is configured to send a communication request to the target server, and perform registration continuation detection on the target server when the target server abnormally responds to the communication request; and a transferring module 23, configured to reselect another server as a new target server if the registration renewal detection fails, and initiate a registration request to the new target server to successfully register on the new target server.
Illustratively, the VoIP terminal selects one server from several servers as a target server by parsing out a plurality of servers such as IP1, IP2, IP3, etc. or IP1 one server from the registered domain name through the domain name server by the registration module 21, and transmits a registration request to the target server for successful registration on the target server. The VoIP terminal may select the server IP1 which is firstly analyzed from the servers as the target server according to the analysis sequence IP1 → IP2 → IP3 → … or IP1 of the servers.
Through the detection module 22, after the VoIP terminal is successfully registered on the target server, the VoIP terminal sends a communication request, such as various communication service requests for subscription, conversation, or sending a short message, to the target server according to the communication requirement, and when the target server normally responds to the communication request, the target server is considered to be normally operating, at this time, the VoIP terminal normally performs the communication service, when the target server abnormally responds to the communication request, the target server is considered to be out of order, at this time, the VoIP terminal triggers a fault transfer mechanism of the registration service, and performs registration continuation detection on the target server.
Through the transfer module 23, in case that the plurality of servers are resolved according to the domain name, if the registration continuation detection fails and the target server is considered to be unavailable, the VoIP terminal selects one server from the other servers except the target server again as a new target server, and initiates a registration request to the new target server to successfully register on the new target server. Wherein, the VoIP terminal may select the server IP2, which is firstly parsed except the target server IP1, from the several servers as a new target server according to the parsing order IP1 → IP2 → IP3 → … of the several servers.
In the embodiment, the registration service is associated with the communication service, when the VoIP terminal is registered on one server but cannot normally perform the communication service, the VoIP terminal actively triggers a failover mechanism of the registration service to automatically switch and register on another server, the VoIP terminal can quickly recover the communication service without manual operation or passive waiting for recovery of the registration service, and the VoIP terminal can quickly perform failover when the server is down, so that the communication stability of the VoIP terminal is ensured.
In a preferred embodiment, the transferring module 23 is further configured to reselect another server as a new target server if the registration continuation detection fails, send a registration request to the new target server to successfully register on the new target server, resend the communication request to the new target server, and resume the communication service when the new target server normally responds to the communication request.
As an example, in the case that the plurality of servers are analyzed according to the domain name, by the transfer module 23, if the registration continuation detection fails and the target server is considered to be unavailable, the VoIP terminal reselects one server from the servers other than the target server as a new target server, initiates a registration request to the new target server to successfully register on the new target server, and after the VoIP terminal is successfully registered on the new target server, the VoIP terminal resends a communication request, such as various communication service requests, such as a subscription, a call, or a short message, to the new target server according to the communication requirement, and resumes the communication service when the new target server normally responds to the communication request.
In the embodiment, after the VoIP terminal is automatically switched and registered on another server, the VoIP terminal selects whether to recover the communication service according to the communication requirement through the transfer module 23, so that the communication service can be rapidly recovered under the premise of considering the communication requirement of the user, thereby ensuring the stability of the communication of the VoIP terminal.
In a preferred embodiment, if the registration renewal detection fails, reselecting another server as a new target server, and initiating a registration request to the new target server to successfully register on the new target server, further comprising: and if the registration renewal detection fails, the registration request is sent to the target server again after waiting for the registration retry time so as to successfully register on the target server.
As an example, for the case of parsing out one server according to the domain name, through the transfer module 23, if the registration continuation detection fails and the target server is considered to be unavailable, the VoIP terminal waits for the registration retry time and then resends the registration request to the target server to be successfully registered on the target server again, and when the VoIP terminal is successfully registered on the target server again, the VoIP terminal resends the communication request to the target server according to the communication requirement, such as various communication service requests of subscribing, talking or sending short messages, and resumes the communication service when the target server normally responds to the communication request.
In the embodiment, through the transfer module 23, when no other server is available for the VoIP terminal to switch registration, the VoIP terminal automatically waits for registration retry time and then sends a registration request to the target server again, and tries registration at regular time, compared with the case of waiting for registration service recovery through manual operation or passive waiting, the waiting time is effectively shortened, when the server goes down, the VoIP terminal can perform fault transfer quickly, and when the VoIP terminal is registered on the server again, the VoIP terminal selects whether to recover the communication service according to the communication requirement, and can recover the communication service quickly under the premise of considering the communication requirement of the user, thereby ensuring the communication stability of the VoIP terminal.
In a preferred embodiment, the sending a communication request to the target server, and performing registration continuation detection on the target server when the target server abnormally responds to the communication request specifically includes: and sending a communication request to the target server, and sending a registration renewal probe packet to the target server when the target server cannot respond or erroneously responds to the communication request so as to judge whether the target server is available according to the return data of the target server to the registration renewal probe packet.
Illustratively, the VoIP terminal sends a communication request to the target server, and when the target server cannot respond or erroneously responds to the communication request, the target server is considered to have a fault, at this time, the VoIP terminal generates a registration continuation probe packet according to the registration request, that is, registration register signaling of a standard rfc header field including request uri, from, to, cseq, contact, call-id, content-length, and the like, and sends the registration continuation probe packet to the target server, the target server will make feedback according to the registration register signaling and its own operating state, for example, when the network is not reachable, the target server returns 503, when the account password of the registration register signaling is incorrect, the target server returns 403, and the VoIP terminal judges whether the target server is available according to the return data of the registration continuation probe packet from the target server.
In a preferred embodiment, if the registration renewal detection fails, reselecting another server as a new target server, and initiating a registration request to the new target server to successfully register on the new target server, specifically: if the registration continuation detection fails, another server is sequentially selected as a new target server according to the analysis sequence of the plurality of servers, and a registration request is sent to the new target server until the new target server is successfully registered.
Illustratively, if the registration continuation detection fails, and the target server is considered to be unavailable, the VoIP terminal reselects the server IP2, which is parsed first except for the target server IP1, from among the servers as a new target server according to the parsing order of the servers IP1 → IP2 → IP3 → …, initiates a registration request to the new target server IP2 to be successfully registered on the new target server IP2, and when the VoIP terminal fails to be successfully registered on the new target server IP2, the VoIP terminal continues to select the server IP3, which is parsed first except for the target server IP1 and the server IP2, as a new target server, initiates a registration request to the new target server IP3 to be successfully registered on the new target server IP3, and so on until the VoIP terminal is successfully registered on the new target server.
In summary, the embodiments of the present invention have the following beneficial effects:
the method comprises the steps of selecting one server from a plurality of servers analyzed according to a domain name as a target server, sending a registration request to the target server to successfully register on the target server, sending a communication request to the target server, performing registration continuation detection on the target server when the target server abnormally responds to the communication request, reselecting another server as a new target server if the registration continuation detection fails, and initiating the registration request to the new target server to successfully register on the new target server, so that the fault transfer of the VoIP terminal registration service is realized. According to the embodiment of the invention, the registration service is associated with the communication service, when the VoIP terminal is registered on one server but cannot normally perform the communication service, the VoIP terminal actively triggers the fault transfer mechanism of the registration service to automatically switch and register on the other server, the VoIP terminal can quickly recover the communication service without manual operation or passive waiting for the recovery of the registration service, and the VoIP terminal can quickly perform fault transfer when the server is down, so that the communication stability of the VoIP terminal is ensured.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.
It will be understood by those skilled in the art that all or part of the processes of the above embodiments may be implemented by hardware related to instructions of a computer program, and the computer program may be stored in a computer readable storage medium, and when executed, may include the processes of the above embodiments. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
Claims (10)
1. A method for fault transfer of VoIP terminal registration service is characterized by comprising the following steps:
selecting one server from a plurality of servers analyzed according to the domain name as a target server, and sending a registration request to the target server to successfully register on the target server;
sending a communication request to the target server, and performing registration continuation detection on the target server when the target server abnormally responds to the communication request;
and if the registration renewal detection fails, reselecting another server as a new target server, and initiating a registration request to the new target server to successfully register on the new target server.
2. The method of claim 1, wherein after the reselecting another server as a new target server and initiating a registration request to the new target server to successfully register on the new target server if the registration continuation detection fails, the method further comprises:
and re-sending the communication request to the new target server, and recovering the communication service when the new target server normally responds to the communication request.
3. The method of claim 1, wherein if the registration renewal detection fails, reselecting another server as a new target server, initiating a registration request to the new target server to successfully register on the new target server, further comprising:
and if the registration continuation detection fails, after waiting for registration retry time, re-sending the registration request to the target server to successfully register on the target server.
4. The method for failover of VoIP terminal registration service according to claim 1, wherein said sending a communication request to said target server and performing registration continuation detection on said target server when said target server abnormally responds to said communication request specifically comprises:
and sending the communication request to the target server, and sending a registration renewal probe packet to the target server when the target server cannot respond or erroneously responds to the communication request, so as to judge whether the target server is available according to return data of the target server to the registration renewal probe packet.
5. The method for failover of VoIP terminal registration service according to claim 1, wherein if the registration renewal detection fails, another server is reselected as a new target server, and a registration request is initiated to the new target server to successfully register on the new target server, specifically:
and if the registration continuation detection fails, sequentially selecting another server as the new target server according to the analysis sequence of the plurality of servers, and sending the registration request to the new target server until the server is successfully registered on the new target server.
6. A failure transfer device of VoIP terminal registration service is characterized by comprising:
the registration module is used for selecting one server from a plurality of servers analyzed according to the domain name as a target server and sending a registration request to the target server so as to successfully register on the target server;
the detection module is used for sending a communication request to the target server and performing registration continuation detection on the target server when the target server abnormally responds to the communication request;
and the transfer module is used for reselecting another server as a new target server if the registration continuation detection fails, and initiating a registration request to the new target server to successfully register on the new target server.
7. The apparatus for failover of VoIP terminal registration traffic as in claim 6, wherein said migration module is further configured to reselect another said server as a new target server if the registration renewal detection fails, to resend the communication request to the new target server after initiating a registration request to the new target server to successfully register on the new target server, and to resume communication traffic when the new target server normally responds to the communication request.
8. The apparatus for failover of a VoIP terminal registration service of claim 6, wherein if the registration renewal detection fails, another of the servers is reselected as a new target server, a registration request is initiated to the new target server to successfully register on the new target server, further comprising:
and if the registration renewal detection fails, the registration request is sent to the target server again after waiting for the registration retry time so as to successfully register on the target server.
9. The apparatus for failover of VoIP terminal registration service according to claim 6, wherein said sending a communication request to said target server and performing registration continuation detection on said target server when said target server abnormally responds to said communication request specifically comprises:
and sending the communication request to the target server, and sending a registration renewal probe packet to the target server when the target server cannot respond or erroneously responds to the communication request, so as to judge whether the target server is available according to return data of the target server to the registration renewal probe packet.
10. The apparatus for failover of VoIP terminal registration service according to claim 6, wherein if the registration renewal detection fails, another server is reselected as a new target server, and a registration request is initiated to the new target server to successfully register on the new target server, specifically:
and if the registration continuation detection fails, sequentially selecting another server as the new target server according to the analysis sequence of the plurality of servers, and sending the registration request to the new target server until the server is successfully registered on the new target server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110754578.6A CN113595765A (en) | 2021-07-02 | 2021-07-02 | Method and device for fault transfer of VoIP terminal registration service |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110754578.6A CN113595765A (en) | 2021-07-02 | 2021-07-02 | Method and device for fault transfer of VoIP terminal registration service |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113595765A true CN113595765A (en) | 2021-11-02 |
Family
ID=78245712
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110754578.6A Pending CN113595765A (en) | 2021-07-02 | 2021-07-02 | Method and device for fault transfer of VoIP terminal registration service |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113595765A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113992500A (en) * | 2021-11-04 | 2022-01-28 | 厦门亿联网络技术股份有限公司 | Main/standby server switching method and device suitable for VoIP terminal |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101562634A (en) * | 2009-05-22 | 2009-10-21 | 中兴通讯股份有限公司 | Method and system for guaranteeing quality of service of voice over internet protocol |
CN103236947A (en) * | 2013-04-23 | 2013-08-07 | 厦门亿联网络技术股份有限公司 | Method for switching main server and standby of VOIP (voice over Internet phone) |
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 |
-
2021
- 2021-07-02 CN CN202110754578.6A patent/CN113595765A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101562634A (en) * | 2009-05-22 | 2009-10-21 | 中兴通讯股份有限公司 | Method and system for guaranteeing quality of service of voice over internet protocol |
CN103236947A (en) * | 2013-04-23 | 2013-08-07 | 厦门亿联网络技术股份有限公司 | Method for switching main server and standby of VOIP (voice over Internet phone) |
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 |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113992500A (en) * | 2021-11-04 | 2022-01-28 | 厦门亿联网络技术股份有限公司 | Main/standby server switching method and device suitable for VoIP terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10743175B2 (en) | Method, apparatus, and system for disaster recovery of IMS | |
US8374079B2 (en) | Proxy server, communication system, communication method and program | |
US8069365B2 (en) | Method and device for realizing IP multimedia subsystem disaster tolerance | |
CN101573928B (en) | Method for the delivery of messages in a communication system | |
US9319431B2 (en) | Methods, systems, and computer readable media for providing sedation service in a telecommunications network | |
US8619547B2 (en) | Communication system with failover communication services | |
US9509811B2 (en) | Methods and apparatus for resolving data inconsistencies in an IMS network | |
CN101997850B (en) | Call management method and device for IP (Internet Protocol) multimedia subsystem | |
CN113242583A (en) | Calling method, terminal and network side equipment | |
EP4093107A1 (en) | Multimedia service processing method, storage medium, chip, and related device | |
US9389969B2 (en) | Method for SIP proxy failover | |
US10841344B1 (en) | Methods, systems and apparatus for efficient handling of registrations of end devices | |
CN101606378A (en) | The method and system that is used for communication session initialization in the communication network | |
CN113595765A (en) | Method and device for fault transfer of VoIP terminal registration service | |
CN101459533B (en) | System and method for improved application server disaster tolerance in next generation network | |
US8117311B2 (en) | Communication method, server and medium on notification of session status | |
CN113746865B (en) | Fault transfer method and device for VoIP terminal communication service | |
CN113992500A (en) | Main/standby server switching method and device suitable for VoIP terminal | |
US11683854B1 (en) | Service-aware traffic session timers | |
US10721655B2 (en) | Method of processing emergency call transfer requests | |
CN115499415A (en) | Call request processing method, network node and storage medium | |
JP2014007617A (en) | Call control server, communication system, and call control method | |
EP3214818A1 (en) | Method for an enhanced monitoring and/or synchronization between network nodes of a telecommunications network realizing an ip multimedia subsystem network and serving a user of the telecommunications network, telecommunications network, system, program and computer program product |
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 |