Access Block


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.

URLs

References

Looking up a Resource (single objects, lists and tabular data)
Creating a Resource
Updating a Resource
Deleting a Resource

Notes

Accessblock Object

{
  "AccountAccessBlockId": 0,
  "Dnis": "",
  "Number": "",
  "Account": "",
  "Direction": 0,
  "AccessType": 0,
  "BlockType": 0,
  "Notify": false
}

Table Definition

ACCOUNT_ACCESS_BLOCK

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).