HTTP API - Get Configuration
POST http:// gateway /api/get_config
Request Parameters:
Parameter | Type | Description |
The following are the parameters included in the object, select at least one | ||
sip_proxy | Array | Contents of the array can only be empty |
sip_trunk | Array | Content is plastic, the value is 0-31, empty means all |
ip_to_tel_routing | Array | Content is plastic, the value is 0-31, empty means all |
tel_to_ip_routing | Array | Content is plastic, the value is 0-31, empty means all |
port_group | Array | Content is plastic, the value is 0-31, empty means all |
Response Parameters:
Parameter | Type | Description | ||||||||||||||||||||||||||||
Returns the object in JSON format, the following is the object content, including at least one | ||||||||||||||||||||||||||||||
sip_proxy | Object |
| ||||||||||||||||||||||||||||
sip_trunk | Array,contain s at least one object |
| ||||||||||||||||||||||||||||
ip_to_tel_routing | Array,contains at least one object |
| ||||||||||||||||||||||||||||
tel_to_ip_routing | Array,contains at least one object |
| ||||||||||||||||||||||||||||
port_group | Array,contains at least one object |
|
Example:
Request
curl -d '{"sip_proxy":[],"sip_trunk":[ ],"ip_to_tel_routing":[ ],"port_group":[],"tel_to_ip_routing":[]}' -H "Content-Type: application/json" http://gateway_ip/api/get_config
Response
{ "sip_proxy":{"domain":"","port":5060,"check_network_status":"off"},"sip_trunk":[ {"index":31,"enable":"on","domain":"172.18.110.110","port":9367,"description":"cs","check_network_status":"off"}],"ip_to_tel_routing":[ {"index":63,"enable":"on","description":"default","ope ration":"Allow","src_mode":"sip_trunk","dst_mode":"port","src_id":31,"dst_id":0,"src_prefix ":"","dst_prefix":"","prefix_to_be_added":"","suffix_to_be_added":"","del_digit":0,"reserve_digit":0}],"tel_to_ip_routing":[ {"index":63,"enable":"on","description":"default","operation": "Allow","src_mode":"port_group","dst_mode":"sip_trunk_group","src_id":0,"dst_id":0,"src_ prefix":"","dst_prefix":"","prefix_to_be_added":"","suffix_to_be_added":"","del_digit":0,"reserve_digit":0}],"port_group":[ {"index":0,"enable":"on","description":"all","sip_account":"","sip_authid":"","sip_authpswd":"","port_map":"[ 0,1,2,3,4,5,6,7]","reg_type":"no_register","select_type":"cyclic_ascending","tel_to_ip_hot_line":"","ip_to_tel_hot_line":""}]}