شرح وظيفة وإعداد SIP Server الأساسي والاحتياطي في الهواتف الصناعية

مقدمة

SIP Server الأساسي والاحتياطي

تساعد آلية التكرار في SIP Server على ضمان موثوقية خدمة SIP واستمراريتها. ويعد استخدام خادم أساسي وخادم احتياطي أحد أساليب التكرار الشائعة. يتشارك الخادم الأساسي والخادم الاحتياطي حسابات المستخدمين ومعلومات Dialog بحسب طريقة تنفيذ حل التكرار، ومعلومات Registration، وبيانات خدمة أخرى. في الحالة الطبيعية، يتولى الخادم الأساسي جميع طلبات SIP وردودها. وعندما يتعطل الخادم الأساسي أو يكون قيد الصيانة أو يصبح غير قابل للوصول، ينتقل طرف SIP تلقائيا إلى الخادم الاحتياطي لطلب الخدمة، مما يحافظ على استمرارية الاستخدام. وبعد استعادة الخادم الأساسي، يمكن لطرف SIP الرجوع تلقائيا إلى الخادم الأساسي لطلب الخدمة.
SIP Server الأساسي والاحتياطي
الشكل 1 SIP Server الأساسي والاحتياطي

شرح المصطلحات

Failover: آلية يتولى فيها الخادم الاحتياطي جميع الخدمات عندما يكون الخادم الأساسي غير متاح، من دون التأثير في استخدام العميل.
Failback: آلية يكتشف فيها الجهاز ما إذا كان الخادم الأساسي قد تعافى أثناء عمل الخادم الاحتياطي، وذلك للعودة بسرعة إلى الخادم الأساسي.
Server Unavailable: يطلب العميل التسجيل فيرد Server بالرمز 500/503، أو يستقبل UDP رسالة ICMP تفيد بأن العنوان الهدف غير قابل للوصول، أو تنتهي مهلة اتصال TCP.
Register Failback: عندما يكون الخادم الأساسي غير متاح ويسجل الهاتف على الخادم الاحتياطي، ينشئ الهاتف Register Dialog جديدا لاكتشاف ما إذا كان الخادم الأساسي قد تعافى. لهذه الوظيفة دورة فحص مستقلة وقابلة للضبط.

الجمهور المستهدف

هذا المستند موجه إلى موظفي البحث والتطوير أو الاختبار الداخليين الذين يرغبون في فهم كيفية تحسين وظيفة Dial plan.

وظيفة SIP Server الأساسي والاحتياطي

إعدادات الوظيفة

يتم تكوين معلومتي Server لخط SIP في الهاتف. يكون SIP Server1 هو الخادم الأساسي، ويكون SIP Server2 هو الخادم الاحتياطي.

Failover

يدعم الهاتف Failover لإشارات Register وInvite وBye. أما الإشارات الأخرى فلا تزال غير مدعومة حاليا.
2.2.1 Register Failover
شروط التشغيل: تسجيل يدوي / انتهاء مهلة التسجيل / انتهاء مهلة طلب Option أو Cancel
1) يرسل الهاتف إشارة Register إلى الخادم الأساسي.
2) يحاول الهاتف إرسال Register إلى الخادم الأساسي لعدد محدد من المرات في منتجات V3، أو لمدة محددة في منتجات V2.
3) عندما يكون الخادم الأساسي Unavailable، يرسل الهاتف إشارة Register إلى الخادم الاحتياطي.
4) يرد الخادم الاحتياطي بالرسالة 200 OK، ويتم تسجيل الهاتف بنجاح.
2.2.2 Invite Failover
شرط التشغيل: يقوم المستخدم بإجراء مكالمة
1) يتصل الهاتف A بالهاتف B.
2) يرسل الهاتف A طلب Invite إلى الخادم الأساسي.
3) يحاول الهاتف A إرسال Invite إلى الخادم الأساسي لعدد محدد من المرات في منتجات V3، أو لمدة محددة في منتجات V2.
4) عندما يكون الخادم الأساسي Unavailable، يرسل الهاتف Register إلى الخادم الاحتياطي.
5) يرد الخادم الاحتياطي على الهاتف بالرسالة 200 OK، ويتم تسجيل الهاتف على الخادم الاحتياطي بنجاح.
6) يرسل الهاتف طلب Invite إلى الخادم الاحتياطي.
7) يرد الخادم الاحتياطي بالرسالة 200 OK، ويتم إنشاء المكالمة بين الهاتفين A وB.
2.2.3 Bye Failover
شرط التشغيل: بعد أن ينشئ الهاتف مكالمة عبر الخادم الأساسي، يقوم الهاتف بإنهاء المكالمة
1) ينشئ الهاتف A مكالمة مع الهاتف B عبر الخادم الأساسي.
2) ينهي الهاتف A المكالمة.
3) يرسل الهاتف A طلب Bye إلى الخادم الأساسي.
4) يحاول الهاتف A إرسال Bye إلى الخادم الأساسي لعدد محدد من المرات في منتجات V3، أو لمدة محددة في منتجات V2.
5) عندما يكون الخادم الأساسي Unavailable، يرسل الهاتف Register إلى الخادم الاحتياطي.
6) يرد الخادم الاحتياطي على الهاتف بالرسالة 200 OK، ويتم تسجيل الهاتف على الخادم الاحتياطي بنجاح.
7) يرسل الهاتف رسالة Bye إلى الخادم الاحتياطي.
8) يرد الخادم الاحتياطي بالرسالة 200 OK، وتنتهي مكالمة الهاتف B.
2.2.4 فشل Failover
عندما تكون جميع الخوادم غير متاحة، يحاول الهاتف الوصول إلى كل خادم بالتتابع حسب أولوية الخادم الأساسي والخادم الاحتياطي، وذلك لعدد محدد من المرات في منتجات V3 أو لمدة محددة في منتجات V2. يستثنى الخادم الأخير من ذلك. ووفقا لمعيار RFC3261، يحاول SIP لمدة 64*T1، أي 32 ثانية. بعد ذلك يفشل طلب إشارة SIP الحالي ويتم إبلاغ المستخدم بالنتيجة.

Failback

يدعم الهاتف Register Failback المستقل. بعد نجاح تسجيل الهاتف على الخادم الاحتياطي، يرسل الهاتف Register مستقلا بشكل دوري إلى الخادم الأساسي لاكتشاف ما إذا كان الخادم الأساسي قد تعافى.
شرط التشغيل: انتهاء مؤقت Register Failback.
1) يتم تسجيل الهاتف بنجاح على الخادم الاحتياطي.
2) عند انتهاء مهلة Register Failback، يرسل الهاتف Register مستقلا إلى الخادم الأساسي.
3) يرد الخادم الأساسي بالرسالة 200 OK، وينتقل الهاتف إلى الخادم الأساسي.
عندما يظل الخادم الأساسي غير متاح، يعيد الهاتف إرسال Register وفقا لمعيار RFC3261 إلى أن تنتهي مهلة 64*T1، أي 32 ثانية. بعد انتهاء المهلة، يبدأ المؤقت مرة أخرى لفحص الخادم الأساسي بشكل دوري.

إعداد SIP Server الأساسي والاحتياطي

وصف عناصر الإعداد

اسم عنصر الإعدادالوصفالقيمة
SIPNRegister Addr:عنوان الخادم الأساسي.IP/اسم نطاق
القيمة الافتراضية: فارغة
SIPNRegister Port:منفذ خدمة الخادم الأساسي.رقمية
القيمة الافتراضية: 5060
SIPNRegister TTL:دورة تسجيل الخادم الأساسي.رقمية
القيمة الافتراضية: 3600 الوحدة: ثانية
SIPNTransport:بروتوكول نقل الخادم الأساسي: UDP أو TCP أو TLS.0: UDP
1: TCP
3: TLS
القيمة الافتراضية: 0
SIPNBackup Addr:عنوان الخادم الاحتياطي.IP/اسم نطاق
القيمة الافتراضية: فارغة
SIPNBackup Port:منفذ خدمة الخادم الاحتياطي.رقمية
القيمة الافتراضية: 5060
SIPNBackup TTL:دورة تسجيل الخادم الاحتياطي.رقمية
القيمة الافتراضية: 3600 الوحدة: ثانية
SIPNBackup Transport:بروتوكول نقل الخادم الاحتياطي: UDP أو TCP أو TLS.0: UDP
1: TCP
3: TLS
القيمة الافتراضية: 0
SIPNEnable Failback:يتحكم فيما إذا كان الخط يفعّل وظيفة Register Failback.0/1
القيمة الافتراضية: 1
SIPN Failback Interval:الفاصل الزمني لاكتشاف ما إذا كان الخادم الأساسي أو Proxy قد تعافى بعد التسجيل على الخادم الاحتياطي أو Proxy.رقمية
القيمة الافتراضية: 1800 الوحدة: ثانية
SIPN Signal Retry Counts:عدد مرات إعادة إرسال SIP Request عندما يكون الخادم أو Proxy غير متاح، باستثناء آخر خادم أو Proxy حيث تكون المهلة 32 ثانية.رقمية
القيمة الافتراضية: 3

واجهة إعداد المستخدم

يمكن للمستخدم تسجيل الدخول إلى Web server في الهاتف لتكوين الخادم الأساسي والخادم الاحتياطي.
1) انقر على علامة تبويب "الخط" واختر علامة SIP الفرعية، وهي الصفحة الافتراضية.
2) اختر الخط المراد تكوينه من القائمة المنسدلة "الخط" داخل الصفحة.
3) قم بتكوين معلومات تسجيل الخط.
4) قم بتكوين معلومات SIP Server1، وهو الخادم الأساسي، وSIP Server2، وهو الخادم الاحتياطي، كما هو موضح في الشكل 2.
5) انقر على "الإعدادات الأساسية" في الصفحة الحالية لتعيين عناصر الإعداد المتعلقة بـ Failback بين الأساسي والاحتياطي، كما هو موضح في الشكل 3.
6) انقر على زر "إرسال" في أسفل الصفحة حتى تصبح الإعدادات نافذة.
إعداد SIP Server الأساسي والاحتياطي
الشكل 2 إعداد SIP Server الأساسي والاحتياطي
إعداد SIP Failback الأساسي والاحتياطي

الشكل 3 إعداد SIP Failback الأساسي والاحتياطي

كتالوج
خدمة العملاء الهاتف
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 .