HTTP API - CALL Forward
9.1 Set Call Forward Request
GET https://gateway_ip/api/set_port_info
9.2 Request Parameter
Parameter | Type | Description |
Required Parameter | ||
port | Integer | |
action | String | Should be “CallForward” |
param | String | Could be like Uncondational,NoReply, Busy,
Not_Reachable,CancelAll |
number | String | Phone Number |
9.3 The First to Read Call Forward Request
GET https://gateway_ip/api/set_port_info
9.4 The First Request Parameter
Parameter | Type | Description |
Required Parameter | ||
port | Integer | |
action | String | Should be “CheckCallForward” |
9.5 The Second To Read Call Forward Request
GET https://gateway_ip/api/get_port_info
9.6 The Second Request Parameter
Parameter | Type | Description |
Required Parameter | ||
port | Integer | |
info_type | String | Should be “CallForward” |
Example:
1. Set call forward
https://gateway_ip/api/set_port_info?port=8&action=CallForward¶m=Uncondi tional&number=15013828917
{"error_code":200,"sn":"xxxx-xxxx-xxxx-xxxx"}
2. Send checking command
https://gateway_ip/api/set_port_info?port=8&action=CheckCallForward
{"error_code":200,"sn":"xxxx-xxxx-xxxx-xxxx"}
3. Get result
https://gateway_ip/api/get_port_info?port=8&info_type=CallForward
{"error_code":200,"sn":"xxxx-xxxx-xxxx-xxxx","info":[{"port":8,"CallForwardi ng":{"Unconditional":"15013828917"}}]}