Перейти к содержимому

Manage hot dial numbers

Это содержимое пока не доступно на вашем языке.

A hot key is a single digit that a calling card caller presses instead of dialling a full number. Each key of an account stores one destination. These methods manage the Hot Key entries of the account’s Hot Keys/Smart Dialing screen; smart dials on the same screen have their own methods.

All methods support trusted mode with i_customer.

Stores a destination behind a key.

Name Type Required Description
i_account int yes ID of the account
hot_key string yes Hot Key: a digit from 0 to 9 that the account does not use yet
dest string yes Destination Phone Number
description string no Free text
Name Type Description
result string OK
request
call("addHotDialNumber", {"i_account": 3092, "hot_key": "1", "dest": "447700900123", "description": "Home"})
response
{"result": "OK"}

Changes the destination of a key.

Name Type Required Description
i_account int yes ID of the account
hot_key string yes The key to change
dest string yes New destination number
Name Type Description
result string OK
request
call("updateHotDialNumber", {"i_account": 3092, "hot_key": "1", "dest": "447700900456"})
response
{"result": "OK"}

Removes a key.

Name Type Required Description
i_account int yes ID of the account
hot_key string yes The key to remove
Name Type Description
result string OK
request
call("delHotDialNumber", {"i_account": 3092, "hot_key": "1"})
response
{"result": "OK"}

Lists the keys of an account.

Name Type Required Description
i_account int yes ID of the account
Name Type Description
result string OK
hot_keys array Keys, each a struct with hot_key (string), dest (string, the destination number) and description (string)
request
call("listHotDialNumbers", {"i_account": 3092})
response
{
"result": "OK",
"hot_keys": [
{"hot_key": "1", "dest": "447700900123", "description": "Home"},
{"hot_key": "2", "dest": "13105550142", "description": "Office"},
],
}