touchpoint

In addition to terminal devices, all personnel, places, and things connected to the network should also be considered.

View Details

resource

Understand best practices, explore innovative solutions, and establish connections with other partners throughout the Baker community.

×

touchpoint

touchpoint

In addition to terminal devices, all personnel, places, and things connected to the network should also be considered.

Learn more

resource

resource

Understand best practices, explore innovative solutions, and establish connections with other partners throughout the Baker community.

Contact Us
How to Configure Device Parameters with the HTTP API?

    Introduction

    Overview

    This guide explains how to configure device parameters through the HTTP API, including SIP server settings, SIP account registration details, DSS key parameters, and other device options. The device acts as the HTTP server, while the client sends specific HTTP requests to apply configuration changes, as shown in the diagram below.

HTTP API connection architecture

    In this example, Postman is used to simulate HTTP requests sent to the device.

    Applicable Models

    All currently available phone models from our product line.

    Prerequisites

    ① One BHP-SOS11V intercom device, upgraded to the latest released firmware version and connected to a PoE switch.
② One configuration PC with Postman installed, connected to the same switch, with normal network communication confirmed.

    Phone and PC Connection Diagram

Phone and PC connection diagram

    Using Postman to Simulate HTTP Requests

    Download and Install Postman

    Download Postman from:
https://www.postman.com/downloads/
Then follow the installation instructions to complete the setup.

    Configure Postman

    Click FileNew, then select HTTP Request.

Configuring Postman

    In the new request window, select the POST method and enter the device HTTP URL in the following format:

http://ip/xmlservice

    Note that the URL is case-sensitive. Replace ip with the actual device IP address, as shown below.

Configuring the HTTP POST URL

    Then configure the required HTTP request parameters:

    Authentication method: Basic Auth
Header: Content-Type: xml/text

Configuring HTTP authentication and headers

    Configure the HTTP Request Body

    Click Body, select raw, then enter the XML content in the message body. A sample format is shown below.

Entering the XML body content

    The structure is as follows:


This is the XML declaration header and is required in every request.



This defines the XML command structure. The cmd attribute can be either get to retrieve current parameters or set to write new parameters.

sip.
This specifies the actual configuration item. In this example, the request retrieves SIP line-related parameters from the device.

    In real use, the following section must be adjusted according to the actual parameter you want to query or configure:


sip.

    How to Get the Supported Parameter List

    Different models may support different HTTP API parameters. You can use either of the following methods to obtain the supported parameter list for a specific device.

Method 1: In the device WEB interface, go to SystemSystem Configuration, then export the nc-type configuration file.

Exporting the nc configuration file from the system configuration page

    You can right-click to save the file, or left-click to view the configuration directly. Common parameters are listed in the next section.

Method 2: Some models do not provide the nc configuration file link directly in the web interface. In that case, you can enter the corresponding URL in the browser address bar to retrieve the nc configuration file manually.

Getting the nc configuration file from the browser

    Note: This method may take longer to respond.

    Common Parameters

    This section lists several common parameters for reference. More parameters may be added in future updates.

    SIP Line Parameters

    Example SIP line parameters (from the i30 access control device):

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. indicates that these parameters belong to SIP line 1.

PhoneNumber corresponds to the phone number field in the web interface.
DisplayName corresponds to the display name.
RegAddr is the SIP proxy server address.
RegPort is the SIP proxy server port.
RegUser is the authentication username, usually the same as the phone number.
RegPswd is the password.
RegTTL is the registration expiry time, with a default value of 3600 seconds.
RegEnabled defines whether the line is enabled: 0 means disabled, 1 means enabled.

    DSS Key Parameters

    Example DSS key parameters for the i30:

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

    It is recommended to configure the DSS key in the web interface first, then use the HTTP API with the get command to read back the corresponding parameter values and confirm the exact mapping.

Type=1 indicates that the DSS key type is Hotkey for devices such as the i30 or i12. For other models, verify the actual type value using the recommended method above.

Value=125@1/f means:
125 = destination number
@1 = line 1
/f = sub-type: speed dial

    Network Parameters

    Example network parameters for devices such as the i30 and 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 indicates the network mode, which can be DHCP or static. This parameter cannot be written directly with the set command. It changes automatically according to the value of dhcp.Enabled.

static.IP is the static IP address. It is effective only when the device is in static mode. In DHCP mode, the get command can still be used to retrieve the current IP address.
static.SubnetMask is the subnet mask.
static.Gateway is the default gateway.
static.PrimaryDNS is the primary DNS server.
static.SecondaryDNS is the secondary DNS server.
dhcp.Enabled defines whether DHCP is enabled: 1 means DHCP mode is active, while 0 means static IP mode is used.

    Volume Parameters

    Example volume parameters for the BHP-SOS11V:

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

phone.volume.HandFreeVol is the speakerphone volume. The range is 1-9, where 9 is the highest volume.
phone.volume.HandFreeRingVol is the ringtone volume for incoming calls. The range is 1-9, where 9 is the highest volume.
phone.volume.HandFreeToneVol is the tone volume for prompt tones such as alerts and notification sounds. The range is 1-9, where 9 is the highest volume.

    System Information Parameters

    System information parameters are read-only, which means they can only be queried with the get command.

    Example:

info.

    This parameter returns all system information. If you only need a specific item, extend the parameter path to the next node level.

    For example, to retrieve the device MAC address:

info.dev.mac

catalogue
Professional industrial communication manufacturer, providing high reliability communication guarantee!
Cooperation Consultation
customer service Phone