Перейти до вмісту

Read and change system configuration

Цей контент ще не доступний вашою мовою.

These methods read and write configuration keys of the switch, including keys that have no field in the panel. Only the root customer may call them. They change the configuration keys only, not the settings of the System Parameters screens.

Returns all known keys with their current and default values, or one key.

Name Type Required Description
key string no Return only this key
Name Type Description
result string OK
config array One struct per key with key, current_value and default_value, all strings
request
call("getSystemConfig", {"key": "system/sip/headers/passthrough"})
response
{
"result": "OK",
"config": [
{"key": "system/sip/headers/passthrough", "current_value": "", "default_value": ""},
],
}

Sets the value of one key.

Name Type Required Description
key string yes Name of the key. Only keys returned by getSystemConfig are accepted
value string yes New value
Name Type Description
result string OK

Pass the Remote-Party-ID header from trusted networks through to the other call leg:

request
call("setSystemConfig", {"key": "system/sip/headers/passthrough", "value": "Remote-Party-ID"})
response
{"result": "OK"}