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

Manage smart dials

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

A smart dial links an access number (a DID) to a destination for one account. When the account’s caller dials that DID, the calling card application connects the call to the stored destination without asking for a number. These methods manage the Smart Dial entries of the account’s Hot Keys/Smart Dialing screen; hot keys on the same screen have their own methods.

Links a DID to a destination.

Name Type Required Description
i_account int yes ID of the account
did string yes Hot Key / Access Number: a DID that leads to a Calling Card application, directly or through a callback application
dest string yes Destination Phone Number
description string no Free text
Name Type Description
result string OK
request
call("addSmartDial", {"i_account": 3092, "did": "442071234567", "dest": "905321234567", "description": "Mum"})
response
{"result": "OK"}

Changes the destination or description of a smart dial.

Name Type Required Description
i_account int yes ID of the account
did string yes The DID of the smart dial
dest string no New destination number
description string no Free text
Name Type Description
result string OK
request
call("updateSmartDial", {"i_account": 3092, "did": "442071234567", "dest": "905329876543"})
response
{"result": "OK"}

Removes a smart dial.

Name Type Required Description
i_account int yes ID of the account
did string yes The DID of the smart dial
Name Type Description
result string OK
request
call("deleteSmartDial", {"i_account": 3092, "did": "442071234567"})
response
{"result": "OK"}

Lists the smart dials of an account.

Name Type Required Description
i_account int yes ID of the account
Name Type Description
result string OK
smart_dials array Smart dials, each a struct with did (string), dest (string, the destination number) and description (string)
request
call("listSmartDials", {"i_account": 3092})
response
{
"result": "OK",
"smart_dials": [
{"did": "442071234567", "dest": "905321234567", "description": "Mum"},
],
}