Get SIP settings
Returns the SIP (Session Initiation Protocol) account settings.
- 200
- 401
OK
- application/json
- Schema
- Example (from schema)
- Example
Schema
- enable boolean
Determines whether the SIP is enabled
- host_to_id boolean
Use host as SIP ID.
- proxy ipv4|dns
SIP proxy
- realm ipv4|dns
SIP realm address
- user string
Possible values:
non-emptyand<= 31 characters, Value must match regular expression^[0-9a-zA-Z\s~!@#$%^&;*()_-+={[}]|"<,>.?/]{1,31}?$`SIP account user name
- password string
Possible values:
>= 6 charactersand<= 31 characters, Value must match regular expression^[0-9a-zA-Z\s~!@#$%^&;*()_-+={[}]|"<,>.?/]{6,31}?$`SIP account password. Allowed characters: letters (a–z, A–Z), digits (0–9), and special symbols
~\!@#$%^&;*()_-+={[}]|"<,>.?/`. - transport string
Possible values: [
udp,tcp,tls]Secure SIP Protocol
- user_id string
Possible values:
non-emptyand<= 31 characters, Value must match regular expression^[0-9a-zA-Z\s~!@#$%^&;*()_-+={[}]|"<,>.?/]{0,31}?$`SIP user id
- is_enable_ring_code boolean
Determines whether the ring code is enabled
- timeout integer
Possible values: [
120,300,600,1200,1800]Maximum call duration in seconds before auto hang-up.
- registration_interval integer
Possible values:
>= 30and<= 900SIP server registration interval in seconds
stun object
STUN settings
ip ipv4|dnsSTUN IP address
port integerSTUN port
- user_agent string
SIP User-Agent header value.
{
"enable": true,
"host_to_id": true,
"proxy": "sip:sip.bas-ip.com",
"realm": "sip.bas-ip.com",
"user": "101",
"password": "123abc",
"transport": "udp",
"user_id": "user123",
"is_enable_ring_code": true,
"timeout": 120,
"registration_interval": 30,
"stun": {
"ip": "stun.l.google.com",
"port": 19302
},
"user_agent": "BasIpVoip v2.0 (at-07l 5.12.0)"
}
{
"proxy": "sip:sip.bas-ip.com",
"realm": "sip.bas-ip.com",
"user": "101",
"password": "123abc",
"timeout": 120,
"transport": "udp",
"enable": true,
"user_id": "user123",
"is_enable_ring_code": false,
"registration_interval": 30,
"stun": {
"ip": "stun.l.google.com",
"port": 19302
},
"user_agent": "BasIpVoip v2.0 (at-10 6.1.0)"
}
Unauthorized request. Log In
- application/json
- Schema
- Example (from schema)
- Log In
Schema
- error string
Error information
{
"error": "Log In"
}
{
"error": "Log In"
}