مورد

فهم أفضل الممارسات واستكشاف الحلول المبتكرة وإقامة اتصالات مع شركاء آخرين في جميع أنحاء مجتمع بيكر.

×

نقطة اللمس

نقطة اللمس

بالإضافة إلى الأجهزة الطرفية ، يجب أيضًا مراعاة جميع الموظفين والأماكن والأشياء المتصلة بالشبكة.

تعلم المزيد

مورد

مورد

فهم أفضل الممارسات واستكشاف الحلول المبتكرة وإقامة اتصالات مع شركاء آخرين في جميع أنحاء مجتمع بيكر.

اتصل بنا
كيفية تكوين معلمات الجهاز باستخدام HTTP API ؟

مقدمة

نظرة عامة

يوضح هذا الدليل كيفية تكوين معلمات الجهاز عبر واجهة برمجة التطبيقات HTTP، بما في ذلك إعدادات خادم SIP، وتفاصيل تسجيل حساب SIP، ومعلمات مفاتيح DSS، وخيارات الجهاز الأخرى. يعمل الجهاز كخادم HTTP، في حين يرسل العميل طلبات HTTP محددة لتطبيق تغييرات التكوين، كما هو موضح في الرسم البياني أدناه.

بنية اتصال HTTP API

في هذا المثال، يتم استخدام برنامج Postman لمحاكاة طلبات HTTP المرسلة إلى الجهاز.

الموديلات المعمول بها

جميع موديلات الهواتف المتوفرة حاليًا في خط منتجاتنا.

المتطلبات الأساسية

① جهاز اتصال متبادل BHP-SOS11V واحد، تم ترقيته إلى أحدث إصدار برنامج ثابت متاح ومتصل بمحول شبكة PoE.
   ② جهاز كمبيوتر واحد لإعداد الإعدادات مثبت عليه برنامج Postman، متصل بنفس المحول الشبكي، مع تأكيد وجود اتصال شبكي طبيعي.

مخطط توصيل الهاتف وجهاز الكمبيوتر

مخطط توصيل الهاتف وجهاز الكمبيوتر

استخدام Postman لمحاكاة طلبات HTTP

تنزيل وتثبيت Postman

قم بتنزيل برنامج Postman من الرابط:
   https://www.postman.com/downloads/
   ثم اتبع إرشادات التثبيت لإكمال الإعداد.

تكوين Postman

انقر على ملفجديد، ثم اختر طلب HTTP.

تكوين Postman

في نافذة الطلب الجديدة، اختر طريقة POST وأدخل عنوان URL HTTP للجهاز بالتنسيق التالي:

http://ip/xmlservice

لاحظ أن عنوان URL حساس لحالة الأحرف. استبدل ip بعنوان IP الفعلي للجهاز، كما هو موضح أدناه.

تكوين عنوان URL لطلب HTTP POST

ثم قم بتكوين معلمات طلب HTTP المطلوبة:

طريقة المصادقة: Basic Auth
   الرأس: Content-Type: xml/text

تكوين مصادقة HTTP والرؤوس

تكوين نص طلب HTTP

انقر على النص، واختر أصلي، ثم أدخل محتوى XML في نص الرسالة. يُعرض التنسيق النموذجي أدناه.

إدخال محتوى نص XML

البنية كالتالي:


   هذا هو رأس إعلان XML وهو مطلوب في كل طلب.

   
   

   يحدد هذا بنية أمر XML. يمكن أن تكون سمة cmd إما get لاسترجاع المعلمات الحالية أو set لكتابة معلمات جديدة.

sip.
   يحدد هذا عنصر التكوين الفعلي. في هذا المثال، يسترد الطلب معلمات متعلقة بخط SIP من الجهاز.

في الاستخدام العملي، يجب تعديل القسم التالي وفقًا للمعلمة الفعلية التي تريد الاستعلام عنها أو تكوينها:

   
   sip.
   

كيفية الحصول على قائمة المعلمات المدعومة

قد تدعم الموديلات المختلفة معلمات HTTP API مختلفة. يمكنك استخدام إحدى الطريقتين التاليتين للحصول على قائمة المعلمات المدعومة لجهاز معين.

الطريقة 1: في واجهة الويب للجهاز، انتقل إلى النظامتكوين النظام، ثم قم بتصدير ملف التكوين من النوع nc.

تصدير ملف تكوين nc من صفحة تكوين النظام

يمكنك النقر بالزر الأيمن لحفظ الملف، أو النقر بالزر الأيسر لعرض التكوين مباشرة. يتم سرد المعلمات الشائعة في القسم التالي.

الطريقة 2: بعض الموديلات لا توفر رابط ملف تكوين nc مباشرة في واجهة الويب. في هذه الحالة، يمكنك إدخال عنوان URL المقابل في شريط عناوين المتصفح لاسترجاع ملف تكوين nc يدويًا.

الحصول على ملف تكوين nc من المتصفح

ملاحظة: قد تستغرق هذه الطريقة وقتًا أطول للاستجابة.

المعلمات الشائعة

يسرد هذا القسم العديد من المعلمات الشائعة للرجوع إليها. قد يتم إضافة المزيد من المعلمات في التحديثات المستقبلية.

معلمات خط SIP

مثال لمعلمات خط SIP (من جهاز التحكم في الوصول i30):

   sip.line.1.PhoneNumber = 112
   sip.line.1.DisplayName = 112
   sip.line.1.SipName =
   sip.line.1.RegAddr = 172.18.1.45
   sip.line.1.RegPort = 2066
   sip.line.1.RegUser = 112
   sip.line.1.RegPswd = abc123
   sip.line.1.RegTTL = 3600
   sip.line.1.RegEnabled = 0

sip.line.1. تشير إلى أن هذه المعلمات تنتمي إلى خط SIP 1.

PhoneNumber يتوافق مع حقل رقم الهاتف في واجهة الويب.
   DisplayName يتوافق مع اسم العرض.
   RegAddr هو عنوان خادم وكيل SIP.
   RegPort هو منفذ خادم وكيل SIP.
   RegUser هو اسم مستخدم المصادقة، وعادةً ما يكون مماثلًا لرقم الهاتف.
   RegPswd هو كلمة المرور.
   RegTTL هو وقت انتهاء صلاحية التسجيل، والقيمة الافتراضية هي 3600 ثانية.
   RegEnabled يحدد ما إذا كان الخط مفعلًا: 0 يعني معطلاً، 1 يعني مفعلًا.

معلمات مفاتيح DSS

مثال لمعلمات مفاتيح DSS لجهاز i30:

   dss.page.1.key.1.Type=1
   dss.page.1.key.1.Value=125@1/f
   dss.page.1.key.1.Title=

يوصى بتكوين مفتاح DSS في واجهة الويب أولاً، ثم استخدام HTTP API مع أمر get لقراءة قيم المعلمات المقابلة وتأكيد التعيين الدقيق.

Type=1 تشير إلى أن نوع مفتاح DSS هو مفتاح سريع لأجهزة مثل i30 أو i12. بالنسبة للموديلات الأخرى، تحقق من قيمة النوع الفعلية باستخدام الطريقة الموصى بها أعلاه.

Value=125@1/f تعني:
   125 = رقم الوجهة
   @1 = الخط 1
   /f = النوع الفرعي: اتصال سريع

معلمات الشبكة

مثال لمعلمات الشبكة لأجهزة مثل i30 و i12:

   net.WANMode=DHCP
   net.static.IP=172.18.8.7
   net.static.SubnetMask=255.255.255.0
   net.static.Gateway=172.18.8.1
   net.static.PrimaryDNS=202.96.134.133
   net.static.SecondaryDNS=202.96.128.86
   net.static.DomainName=
   net.dhcp.Enabled=1

WANMode تشير إلى وضع الشبكة، والذي يمكن أن يكون DHCP أو ثابت. لا يمكن كتابة هذه المعلمة مباشرة باستخدام أمر set. فهي تتغير تلقائيًا وفقًا لقيمة dhcp.Enabled.

static.IP هو عنوان IP الثابت. وهو فعال فقط عندما يكون الجهاز في الوضع الثابت. في وضع DHCP، لا يزال يمكن استخدام أمر get لاسترجاع عنوان IP الحالي.
   static.SubnetMask هو قناع الشبكة.
   static.Gateway هو البوابة الافتراضية.
   static.PrimaryDNS هو خادم DNS الأساسي.
   static.SecondaryDNS هو خادم DNS الثانوي.
   dhcp.Enabled يحدد ما إذا كان DHCP مفعلًا: 1 يعني أن وضع DHCP نشط، بينما 0 يعني استخدام وضع IP الثابت.

معلمات مستوى الصوت

مثال لمعلمات مستوى الصوت لجهاز BHP-SOS11V:

   phone.volume.HandFreeVol=9
   phone.volume.HandFreeRingVol=3
   phone.volume.HandFreeToneVol=3

phone.volume.HandFreeVol هو مستوى صوت مكبر الصوت. النطاق هو 1-9، حيث 9 هو أعلى مستوى صوت.
   phone.volume.HandFreeRingVol هو مستوى صوت نغمة الرنين للمكالمات الواردة. النطاق هو 1-9، حيث 9 هو أعلى مستوى صوت.
   phone.volume.HandFreeToneVol هو مستوى صوت النغمات للنغمات الإرشادية مثل التنبيهات وأصوات الإخطارات. النطاق هو 1-9، حيث 9 هو أعلى مستوى صوت.

معلمات معلومات النظام

معلمات معلومات النظام للقراءة فقط، أي لا يمكن استعلامها إلا باستخدام أمر get.

مثال:

info.

تُرجع هذه المعلمة جميع معلومات النظام. إذا كنت تحتاج فقط إلى عنصر معين، فقم بتمديد مسار المعلمة إلى مستوى العقدة التالي.

على سبيل المثال، لاسترجاع عنوان MAC للجهاز:

info.dev.mac

كتالوج
المهنية الصانع الاتصالات الصناعية ، وتوفير ضمان الاتصالات موثوقية عالية!
مشاورات التعاون
خدمة العملاء الهاتف
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 .