Edit SIP Setting
Edit the SIP settings of the PBX.
Request URL
POST {base_url}/{api_path}/sip_settings/update?access_token={access_token}
Request parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| alert_info | No | String | The configuration of the Alert-Info header. |
| caller_id_from | No | String | The SIP header from which the caller number is obtained. Valid value:
|
| client_call_assurance_list | No | Array<Integer> | The ID list of extensions for call assurance. This field takes effect when enb_client_call_assurance is 1. |
| codec_sel | No | String | The preferred list of audio codecs, separated by a comma. The list order indicates the priority. |
| cos_audio | No | Integer | The CoS priority value of audio RTP streams. Valid values: 0 to 7. |
| cos_sip | No | Integer | The CoS priority value of SIP signaling. Valid values: 0 to 7. |
| cos_video | No | Integer | The CoS priority value of video RTP streams. Valid values: 0 to 7. |
| def_outbound_reg_expires | No | Integer | The default expiration time of outbound registration, in seconds. Valid values: 0 to 99999. |
| did_from | No | String | The SIP header from which the DID number is obtained. Valid value:
|
| disable_reinvite_with_t38 | No | Integer | Whether to disable the Re-INVITE for T.38 fax. Valid value:
|
| enb_asserted_identity | No | Integer | Whether to enable the P-Asserted-Identity header. Valid value:
|
| enb_autp_rtp | No | Integer | Whether to enable RTP passthrough. This field cannot be modified when call
transcription is enabled. Valid value:
|
| enb_client_call_assurance | No | Integer | Whether to enable call assurance. Valid value:
|
| enb_ext_diversion | No | Integer | Whether to carry the Diversion header in extension call forwarding. Valid value:
|
| enb_guest_auth | No | Integer | Whether to enable guest authentication. Valid value:
|
| enb_inband_progress | No | Integer | Whether to enable Inband Progress. Valid value:
|
| enb_message | No | Integer | Whether to enable the SIP MESSAGE method. Valid value:
|
| enb_opus_codec | No | Integer | Whether to enable the Opus codec. Valid value:
|
| enb_random_outbound | No | Integer | Whether to enable random outbound SIP ports. Valid value:
|
| enb_t38_err_corr | No | Integer | Whether to enable T.38 error correction. Valid value:
|
| enb_tcp | No | Integer | Whether to enable TCP transport. Valid value:
|
| enb_tls | No | Integer | Whether to enable TLS transport. Valid value:
|
| enb_tls_verify_client | No | Integer | Whether to verify the TLS client certificate. Valid value:
|
| enb_tls_verify_server | No | Integer | Whether to verify the TLS server certificate. Valid value:
|
| enb_uacsta | No | Integer | Whether to enable UACSTA. Valid value:
|
| forward_dest | No | String | The destinations allowed for call forwarding, separated by a comma. Valid value:
|
| ilbc_mode | No | Integer | The frame mode of the iLBC codec. Valid value:
|
| max_reg_expires | No | Integer | The maximum expiration time of registration, in seconds. Valid values: 0 to 9999999. |
| max_subs_expires | No | Integer | The maximum expiration time of subscription, in seconds. Valid values: 0 to 99999. |
| max_t38_bitrate | No | Integer | The maximum transmission rate of T.38, in bits per second. Valid values: 2400, 4800, 7200, 9600, 12000, and 14400. |
| min_reg_expires | No | Integer | The minimum expiration time of registration, in seconds. Valid values: 0 to 99999. |
| min_subs_expires | No | Integer | The minimum expiration time of subscription, in seconds. Valid values: 0 to 99999. |
| outbound_port_end | No | Integer | The end value of random outbound SIP ports. |
| outbound_port_start | No | Integer | The start value of random outbound SIP ports. |
| qualify_freq | No | Integer | The interval of qualify keep-alive detection, in seconds. Valid values: 0 to 86400. |
| reg_attempts | No | Integer | The number of registration retries after a registration failure. Valid values: 0 to 99999. |
| rtp_member_list | No | Array<Option_Param> | The member list of RTP passthrough (extension IDs). This field takes effect when rtp_member_type is specific. |
| rtp_member_type | No | String | The member type of RTP passthrough. Valid value:
|
| rtp_port_end | No | Integer | The end value of RTP ports. |
| rtp_port_start | No | Integer | The start value of RTP ports. |
| rtp_trunk_list | No | Array<Option_Param> | The member list of RTP passthrough (trunk IDs). |
| session_expires | No | Integer | The Session Timer expiration time, in seconds. Valid values: 90 to 99999. The value must not be smaller than session_min_interval. |
| session_min_interval | No | Integer | The minimum interval of Session Timer, in seconds. Valid values: 90 to 99999. |
| session_name | No | String | The SDP session name (the s= field). Maximum length: 32 characters. |
| session_owner | No | String | The owner of the SDP session (the username part of the o= field). Maximum length: 32 characters. |
| session_timer | No | String | The Session Timer mode. Valid value:
|
| tcp_port | No | Integer | The SIP TCP listening port. |
| tls_conn_method | No | String | The TLS connection method. Valid value:
|
| tls_port | No | Integer | The SIP TLS listening port. |
| tls_server_cert | No | String | The path of the TLS server certificate. Maximum length: 255 characters. Set the value to empty to clear the certificate configuration. |
| tos_audio | No | String | The ToS/DSCP marking value of audio RTP streams. The value is a numeric string from 0 to 255. |
| tos_sip | No | String | The ToS/DSCP marking value of SIP signaling. The value is a numeric string from 0 to 255. |
| tos_video | No | String | The ToS/DSCP marking value of video RTP streams. The value is a numeric string from 0 to 255. |
| udp_port | No | Integer | The SIP UDP listening port. |
| user_agent | No | String | The custom value of the SIP User-Agent header. Maximum length: 255 characters. |
| force_ilbc_mode | No | Integer | Whether to force the ilbc_mode change without confirmation. When ilbc_mode is
changed to 30 and Linkus is enabled, an error is returned for confirmation. Set this
field to 1 and resubmit the request to skip the confirmation. Valid value:
|
- Option_Param
-
Parameter Type Description value String The ID of the extension or trunk in the list.
Response parameters
| Parameter | Type | Description |
|---|---|---|
| errcode | Integer | Returned error code.
Note: You can check the error code and
error message in Error Code and Error Message.
|
| errmsg | String | Returned message.
|
Example
Request example
POST /openapi/v1.0/sip_settings/update?access_token=xVx9wX2B38gSD0C2o4y9b9bd5QOPz2MK HTTP/1.1
Host: yeastardocs.example.yeastarcloud.com
Content-Type: application/json
{
"user_agent": "API-Test-UA"
}
Response example
HTTP/1.1 200 OK
{
"errcode": 0,
"errmsg": "SUCCESS"
}