config (Configuration)
Interface Description
This interface is invoked to configure the OpenEyeCall running parameters.
Notes
The WebSocket connection with the OpenEyeCall is set up.
Method Definition
TUPCall.prototype.config = function(params, callbacks)
Parameter Description
Parameter |
Type |
Mandatory/Optional |
Description |
---|---|---|---|
params |
Mandatory |
Configuration parameter. |
|
callbacks |
Optional |
Callback method. |
Parameter |
Type |
Mandatory/Optional |
Description |
---|---|---|---|
log_path |
String |
Optional |
Path for storing SIP message logs. Absolute path or relative path of the OpenEye installation directory. For example, set this parameter to C:/log or ./log. You can also use D:\\tup\\log. If the path does not exist, the system automatically creates one. If an absolute path is used, ensure that each client has a specified drive letter. Therefore, a relative path is recommended. |
call |
Mandatory |
Call service. |
|
network |
Mandatory |
Network. |
|
media |
Mandatory |
Media. |
|
audio |
Mandatory |
Audio. |
|
account |
Mandatory |
Account password type. |
Parameter |
Type |
Mandatory/Optional |
Description |
---|---|---|---|
call_ipcall_enable |
Number |
Mandatory |
Enable the IP address-based call function. Set this parameter to 0. |
Parameter |
Type |
Mandatory/Optional |
Description |
---|---|---|---|
serverAddr |
String |
Mandatory |
SIP server IP address. |
sipServerPort |
Number |
Mandatory |
SIP server port number. The default UDP port number is 5060, and the default TLS port number is 5061. |
sipTransportMode |
Number |
Mandatory |
SIP signaling transmission mode. The value 0 indicates UDP, and the value 1 indicates TLS. |
httpPort |
Number |
Mandatory |
Generally, the value is 0. |
Parameter |
Type |
Mandatory/Optional |
Description |
---|---|---|---|
user_type |
Number |
Mandatory |
User terminal type. Set this parameter to 0. |
tls_anonymous_enable |
Number |
Mandatory |
Whether to enable TLS anonymous authentication. Anonymous authentication has security risks. Exercise caution when enabling this function. This function is disabled by default. The options are 0 (no) and 1 (yes). |
tls_rootcertpath |
String |
Optional |
Full path of the root certificate. The root certificate must be configured when TLS is used for transmission. For example, set this parameter to F:/test/cert/root_cert_huawei.pem. |
trans_mode |
Number |
Mandatory |
SIP transmission protocol.
|
Parameter |
Type |
Mandatory/Optional |
Description |
---|---|---|---|
trans_mode |
Number |
Mandatory |
Media stream encryption mode. Set this parameter to 1, indicating that RTP (no encryption) and SRTP (encryption) are supported. |
Parameter |
Type |
Mandatory/Optional |
Description |
---|---|---|---|
audio_codec |
String |
Mandatory |
Audio codec priority and supported audio codec modes, for example, 112,98,18,9,8,0.
|
dtmf_mode |
Number |
Optional |
Dual-tone multi-frequency (DTMF) mode, that is, transmission mode of the key sound and data.
|
audio_anr |
Number |
Optional |
Noise suppression. The value ranges from 0 to 4. The value 0 indicates that noise suppression is disabled. A larger value indicates greater noise suppression strength. By default, this function is disabled. |
audio_aec |
Number |
Optional |
Echo cancellation. The value 0 indicates that echo cancellation is disabled, and the value 1 indicates that echo cancellation is enabled. The default value is 0. It is recommended that this function be enabled. |
audio_agc |
Number |
Optional |
Automatic gain. The value 0 indicates that automatic gain is disabled, and the value 1 indicates that automatic gain is enabled. By default, this function is disabled. |
Parameter |
Type |
Mandatory/Optional |
Description |
---|---|---|---|
account_pwd_type |
Number |
Mandatory |
Account password type. Set this parameter to 0. |
Parameter |
Type |
Mandatory/Optional |
Description |
---|---|---|---|
callbacks |
function |
Optional |
Callback method. |
Parameter |
Type |
Description |
---|---|---|
description |
String |
Description of the current request. |
local_ip |
String |
Local IP address. The value is an IPv4 address, for example, 192.168.10.100. |
result |
Number |
Query result. The value 0 indicates success and other values indicate failure. |
rsp |
Number |
Internal message ID. |
Examples
function sipBasicCfg() { global_cloudIPCC_SDK.tupCall.config({ networkInfo: { serverAddr: "example.com", sipServerPort: 5060, sipTransportMode: "10.175.1.61", httpPort: 5060 } },{response: configResponse}); } function configResponse(data) { if (data.result == 0) { console.info("Config Success"); } else { console.error("Config Failed"); console.error(data); } }
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot