Rate this page:

PSTNBlacklistInterface

Props

addPstnBlackListItem

Copy URL
addPstnBlackListItem: 

(request: AddPstnBlackListItemRequest) => Promise<AddPstnBlackListItemResponse>

Add a new phone number to the PSTN blacklist. Use blacklist to block incoming calls from specified phone numbers to numbers purchased from Voximplant. Since we have no control over exact phone number format for calls from SIP integrations, blacklisting such numbers should be done via JavaScript scenarios.

delPstnBlackListItem

Copy URL
delPstnBlackListItem: 

(request: DelPstnBlackListItemRequest) => Promise<DelPstnBlackListItemResponse>

Remove phone number from the PSTN blacklist.

getPstnBlackList

Copy URL
getPstnBlackList: 

(request: GetPstnBlackListRequest) => Promise<GetPstnBlackListResponse>

Get the whole PSTN blacklist.

setPstnBlackListItem

Copy URL
setPstnBlackListItem: 

(request: SetPstnBlackListItemRequest) => Promise<SetPstnBlackListItemResponse>

Update the PSTN blacklist item. BlackList works for numbers that are purchased from Voximplant only. Since we have no control over exact phone number format for calls from SIP integrations, blacklisting such numbers should be done via JavaScript scenarios.