Retrieve settings for SBC.
OK
The SBC domain.
The SBC web port for http.
The SBC web port fot https.
const response = await fetch('http://127.0.0.1:8888/api/sbc', { method: 'GET', headers: {}, }); const data = await response.json();
{ "domain": "text", "http_port": {}, "https_port": {}, "transports": [ { "protocol": "UDP", "port": {} } ] }
Update SBC configuration.
const response = await fetch('http://127.0.0.1:8888/api/sbc', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({}), }); const data = await response.json();