Introduction to SIP Server Primary and Backup Functions and Configuration for Industrial Phones

Introduction

SIP Server Primary and Backup

The redundancy mechanism of a SIP server helps ensure the reliability and continuity of SIP services. Primary and backup server deployment is one common redundancy method. The primary and backup servers share user accounts, Dialog information depending on the specific implementation of the server redundancy solution, Registration information, and other service data. Under normal conditions, all SIP requests and responses are handled by the primary server. When the primary server fails, is under maintenance, or becomes unreachable, the SIP endpoint automatically switches to the backup server to request service, helping maintain service continuity for users. After the primary server recovers, the SIP endpoint can automatically switch back to the primary server for service.
SIP Server primary and backup
Figure 1 SIP Server Primary and Backup

Terms and Definitions

Failover: A mechanism in which the backup server takes over all services when the primary server is unavailable, without affecting customer use.
Failback: A mechanism in which the device detects whether the primary server has recovered while the backup server is working, so that it can quickly switch back to the primary server.
Server Unavailable: The client requests registration and the Server responds with 500/503, or UDP receives a destination-unreachable ICMP message, or the TCP connection times out.
Register Failback: When the primary server is unavailable and the phone has registered to the backup server, the phone creates a new Register Dialog to detect whether the primary server has recovered. This function has an independent and configurable detection interval.

Target Audience

This document is intended for internal R&D or testing personnel who want to understand how the Dial plan function is improved.

SIP Server Primary and Backup Functions

Function Settings

Configure two Server entries for the SIP line of the phone. SIP Server1 is the primary server, and SIP Server2 is the backup server.

Failover

The phone supports Failover for the following signaling messages: Register, Invite, and Bye. Other signaling messages are not supported yet.
2.2.1 Register Failover
Trigger conditions: manual registration / registration timeout / Option or Cancel request timeout
1) The phone sends a Register message to the primary server.
2) The phone tries to send Register to the primary server for the specified number of times for V3 products, or for a specific duration for V2 products.
3) When the primary server is Unavailable, the phone sends the Register message to the backup server.
4) The backup server responds with 200 OK, and the phone is successfully registered.
2.2.2 Invite Failover
Trigger condition: the user places a call
1) Phone A calls Phone B.
2) Phone A sends an Invite request to the primary server.
3) Phone A tries to send Invite to the primary server for the specified number of times for V3 products, or for a specific duration for V2 products.
4) When the primary server is Unavailable, the phone sends Register to the backup server.
5) The backup server responds with 200 OK to the phone, and the phone is successfully registered to the backup server.
6) The phone sends an Invite request to the backup server.
7) The backup server responds with 200 OK, and Phone A and Phone B establish a call.
2.2.3 Bye Failover
Trigger condition: after the phone has established a call through the primary server, the phone hangs up the call
1) Phone A establishes a call with Phone B through the primary server.
2) Phone A hangs up the call.
3) Phone A sends a Bye request to the primary server.
4) Phone A tries to send Bye to the primary server for the specified number of times for V3 products, or for a specific duration for V2 products.
5) When the primary server is Unavailable, the phone sends Register to the backup server.
6) The backup server responds with 200 OK to the phone, and the phone is successfully registered to the backup server.
7) The phone sends a Bye message to the backup server.
8) The backup server responds with 200 OK, and the call with Phone B ends.
2.2.4 Failover Failure
When all servers are unavailable, the phone attempts each server in sequence according to the priority of the primary and backup servers, for the specified number of times for V3 products or for a specific duration for V2 products. The last server is an exception. According to RFC3261, SIP tries for 64*T1, which is 32 seconds. The current SIP signaling request then fails and the result is reported to the user.

Failback

The phone supports independent Register Failback. After the phone successfully registers to the backup server, it periodically sends an independent Register to the primary server to detect whether the primary server has recovered.
Trigger condition: Register Failback timer timeout.
1) The phone successfully registers to the backup server.
2) When Register Failback times out, the phone sends an independent Register to the primary server.
3) The primary server responds with 200 OK, and the phone switches back to the primary server.
When the primary server is still unavailable, the Register sent by the phone is retransmitted according to RFC3261 until the 64*T1, or 32-second, timeout is reached. After timeout, the timer starts again and periodically detects the primary server.

SIP Server Primary and Backup Configuration

Configuration Item Description

Configuration Item NameDescriptionValue
SIPNRegister Addr:Primary server address.IP/domain name
Default value: empty
SIPNRegister Port:Primary server service port.Numeric
Default value: 5060
SIPNRegister TTL:Primary server registration period.Numeric
Default value: 3600 Unit: seconds
SIPNTransport:Primary server transport protocol: UDP, TCP, or TLS.0: UDP
1: TCP
3: TLS
Default value: 0
SIPNBackup Addr:Backup server address.IP/domain name
Default value: empty
SIPNBackup Port:Backup server service port.Numeric
Default value: 5060
SIPNBackup TTL:Backup server registration period.Numeric
Default value: 3600 Unit: seconds
SIPNBackup Transport:Backup server transport protocol: UDP, TCP, or TLS.0: UDP
1: TCP
3: TLS
Default value: 0
SIPNEnable Failback:Controls whether Register Failback is enabled for the line.0/1
Default value: 1
SIPN Failback Interval:Time interval for detecting whether the primary server or Proxy has recovered after registration to the backup server or Proxy.Numeric
Default value: 1800 Unit: seconds
SIPN Signal Retry Counts:Number of SIP Request retransmissions when the server or Proxy is unavailable, except for the last server or Proxy, which uses a 32-second timeout.Numeric
Default value: 3

User Configuration Interface

The user can log in to the Web server of the phone and configure the primary and backup servers.
1) Click the "Line" tab and select the SIP subtab, which is the default page.
2) Select the line to be configured through the "Line" drop-down list inside the page.
3) Configure the line registration information.
4) Configure the server information for SIP Server1, the primary server, and SIP Server2, the backup server, as shown in Figure 2.
5) Click "Basic Settings" on the current page to set the configuration items related to primary and backup Failback, as shown in Figure 3.
6) Click the "Submit" button at the bottom of the page to make the configuration take effect.
SIP Server primary and backup configuration
Figure 2 SIP Server Primary and Backup Configuration
SIP primary and backup Failback configuration

Figure 3 SIP Primary and Backup Failback Configuration

catalogue
customer service Phone
We use cookie to improve your online experience. By continuing to browse this website, you agree to our use of cookie.

Cookies

This Cookie Policy explains how we use cookies and similar technologies when you access or use our website and related services. Please read this Policy together with our Terms and Conditions and Privacy Policy so that you understand how we collect, use, and protect information.

By continuing to access or use our Services, you acknowledge that cookies and similar technologies may be used as described in this Policy, subject to applicable law and your available choices.

Updates to This Cookie Policy

We may revise this Cookie Policy from time to time to reflect changes in legal requirements, technology, or our business practices. When we make updates, the revised version will be posted on this page and will become effective from the date of publication unless otherwise required by law.

Where required, we will provide additional notice or request your consent before applying material changes that affect your rights or choices.

What Are Cookies?

Cookies are small text files placed on your device when you visit a website or interact with certain online content. They help websites recognize your browser or device, remember your preferences, support essential functionality, and improve the overall user experience.

In this Cookie Policy, the term “cookies” also includes similar technologies such as pixels, tags, web beacons, and other tracking tools that perform comparable functions.

Why We Use Cookies

We use cookies to help our website function properly, remember user preferences, enhance website performance, understand how visitors interact with our pages, and support security, analytics, and marketing activities where permitted by law.

We use cookies to keep our website functional, secure, efficient, and more relevant to your browsing experience.

Categories of Cookies We Use

Strictly Necessary Cookies

These cookies are essential for the operation of the website and cannot be disabled in our systems where they are required to provide the service you request. They are typically set in response to actions such as setting privacy preferences, signing in, or submitting forms.

Without these cookies, certain parts of the website may not function correctly.

Functional Cookies

Functional cookies enable enhanced features and personalization, such as remembering your preferences, language settings, or previously selected options. These cookies may be set by us or by third-party providers whose services are integrated into our website.

If you disable these cookies, some services or features may not work as intended.

Performance and Analytics Cookies

These cookies help us understand how visitors use our website by collecting information such as traffic sources, page visits, navigation behavior, and general interaction patterns. In many cases, this information is aggregated and does not directly identify individual users.

We use this information to improve website performance, usability, and content relevance.

Targeting and Advertising Cookies

These cookies may be placed by our advertising or marketing partners to help deliver more relevant ads and measure the effectiveness of campaigns. They may use information about your browsing activity across different websites and services to build a profile of your interests.

These cookies generally do not store directly identifying personal information, but they may identify your browser or device.

First-Party and Third-Party Cookies

Some cookies are set directly by our website and are referred to as first-party cookies. Other cookies are set by third-party services, such as analytics providers, embedded content providers, or advertising partners, and are referred to as third-party cookies.

Third-party providers may use their own cookies in accordance with their own privacy and cookie policies.

Information Collected Through Cookies

Depending on the type of cookie used, the information collected may include browser type, device type, IP address, referring website, pages viewed, time spent on pages, clickstream behavior, and general usage patterns.

This information helps us maintain the website, improve performance, enhance security, and provide a better user experience.

Your Cookie Choices

You can control or disable cookies through your browser settings and, where available, through our cookie consent or preference management tools. Depending on your location, you may also have the right to accept or reject certain categories of cookies, especially those used for analytics, personalization, or advertising purposes.

Please note that blocking or deleting certain cookies may affect the availability, functionality, or performance of some parts of the website.

Restricting cookies may limit certain features and reduce the quality of your experience on the website.

Cookies in Mobile Applications

Where our mobile applications use cookie-like technologies, they are generally limited to those required for core functionality, security, and service delivery. Disabling these essential technologies may affect the normal operation of the application.

We do not use essential mobile application cookies to store unnecessary personal information.

How to Manage Cookies

Most web browsers allow you to manage cookies through browser settings. You can usually choose to block, delete, or receive alerts before cookies are stored. Because browser controls vary, please refer to your browser provider’s support documentation for details on how to manage cookie settings.

Contact Us

If you have any questions about this Cookie Policy or our use of cookies and similar technologies, please contact us at support@becke.cc .