This API is used to block incoming calls from specific ANI numbers, IP addresses or partial IP addresses or block outgoing calls (overriding Rate Plan access) to certain destination on an account basis.
GET /accounts/{AccountId}/services/accessblock
Return a list of access block entries for the specified account.
GET /accounts/services/accessblock/{LookupValue}
Return a specific access block entry by Id.
POST /accounts/services/accessblock
Create a new access block entry.
PUT /accounts/services/accessblock
Update an existing access block entry.
DELETE /accounts/services/accessblock/{Id}
Delete the specified access block entry.
Looking up a Resource (single objects, lists and tabular data)
Creating a Resource
Updating a Resource
Deleting a Resource
{
"AccountAccessBlockId": 0,
"Dnis": "",
"Number": "",
"Account": "",
"Direction": 0,
"AccessType": 0,
"BlockType": 0,
"Notify": false
}
This table is used to block incoming calls from specific ANI numbers, IP addresses or partial IP addresses or block outgoing calls (overriding Rate Plan access) to certain destination on an account basis.
Field Name | Type | Size | Description |
---|---|---|---|
ACCOUNT_ACCESS_BLOCK_ID | bigint | 8 | Primary key. |
DNIS | varchar | 40 | DNIS to match, or enter an asterisk (*) as a wildcard to apply across all DNIS numbers. |
NUMBER | varchar | 40 | Number, IP address or partial IP address (e.g. 192...* to ALLOW an entire A class of IP addresses) to allow access. |
ACCOUNT | varchar | 40 | Account that this entry is associated with. |
DIRECTION | tinyint | 1 | Direction that this entry applies to (0 = Inbound, 1 = Outbound) |
TYPE | tinyint | 1 | Type of entry. 0- System (User Cannot Edit/Delete) 1- User (User Can Edit/Delete) |
BLOCK_TYPE | tinyint | 1 | For incoming calls determines how the call is blocked. 0 -Disconnect 1 - Play or Send Busy 2 - Play or Send FastBusy 3 - DND (Play called party is unavailable prompt) 4 - DND - Out of Service (Play out of service prompt) 5 - Blocked (Play caller is blocked prompt) |
NOTIFY | bit | 1 | Determines whether or not the user should be notified via E-mail if this entry is matched (a blocked caller dials in). |