HTTP API를 사용하여 장치 매개 변수를 구성하는 방법은 무엇입니까?

    소개

    개요

    이 가이드는 HTTP API를 통해 장치 매개변수를 구성하는 방법을 설명합니다. 여기에는 SIP 서버 설정, SIP 계정 등록 세부 정보, DSS 키 매개변수 및 기타 장치 옵션이 포함됩니다. 장치는 HTTP 서버 역할을 하고 클라이언트는 특정 HTTP 요청을 보내 구성 변경 사항을 적용합니다(아래 그림 참조).

HTTP API 연결 아키텍처

    이 예에서는 Postman을 사용하여 장치로 전송되는 HTTP 요청을 시뮬레이션합니다.

    적용 모델

    당사 제품 라인의 현재 사용 가능한 모든 전화 모델.

    사전 요구 사항

    ① 최신 펌웨어 버전으로 업그레이드되고 PoE 스위치에 연결된 BHP-SOS11V 인터콤 장치 1대.
② Postman이 설치된 구성용 PC 1대, 동일한 스위치에 연결되고 정상적인 네트워크 통신이 확인되어야 함.

    전화 및 PC 연결 다이어그램

전화 및 PC 연결 다이어그램

    Postman을 사용하여 HTTP 요청 시뮬레이션

    Postman 다운로드 및 설치

    Postman을 다음에서 다운로드하세요:
https://www.postman.com/downloads/
그런 다음 설치 지침에 따라 설정을 완료합니다.

    Postman 구성

    FileNew를 클릭한 다음 HTTP Request를 선택합니다.

Postman 구성

    새 요청 창에서 POST 메서드를 선택하고 다음 형식으로 장치 HTTP URL을 입력합니다:

http://ip/xmlservice

    URL은 대소문자를 구분합니다. ip를 실제 장치 IP 주소로 바꿉니다(아래 그림 참조).

HTTP POST URL 구성

    그런 다음 필요한 HTTP 요청 매개변수를 구성합니다:

    인증 방법: Basic Auth
헤더: Content-Type: xml/text

HTTP 인증 및 헤더 구성

    HTTP 요청 본문 구성

    Body를 클릭하고 raw를 선택한 다음 메시지 본문에 XML 내용을 입력합니다. 샘플 형식은 아래와 같습니다.

XML 본문 내용 입력

    구조는 다음과 같습니다:


이것은 XML 선언 헤더이며 모든 요청에 필요합니다.



이것은 XML 명령 구조를 정의합니다. cmd 속성은 현재 매개변수를 가져오는 get 또는 새 매개변수를 쓰는 set일 수 있습니다.

sip.
이것은 실제 구성 항목을 지정합니다. 이 예에서 요청은 장치에서 SIP 라인 관련 매개변수를 가져옵니다.

    실제 사용 시 다음 섹션은 실제로 쿼리하거나 구성하려는 매개변수에 따라 조정되어야 합니다:


sip.

    지원되는 매개변수 목록을 얻는 방법

    모델에 따라 지원되는 HTTP API 매개변수가 다를 수 있습니다. 다음 방법 중 하나를 사용하여 특정 장치에 대해 지원되는 매개변수 목록을 얻을 수 있습니다.

방법 1: 장치의 WEB 인터페이스에서 SystemSystem Configuration으로 이동한 다음 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 키 매개변수

    i30에 대한 DSS 키 매개변수 예:

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

    먼저 웹 인터페이스에서 DSS 키를 구성한 다음 get 명령과 함께 HTTP API를 사용하여 해당 매개변수 값을 읽어 정확한 매핑을 확인하는 것이 좋습니다.

Type=1은 i30 또는 i12와 같은 장치의 DSS 키 유형이 Hotkey임을 나타냅니다. 다른 모델의 경우 위의 권장 방법을 사용하여 실제 유형 값을 확인하십시오.

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<

카탈로그
고객 서비스 전화
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 &ldquo;cookies&rdquo; 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&rsquo;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 .