This function in blocklist-call.js
allows users to setup a blocklist to reject unwanted phone numbers. See here for a more in-depth guide.
This Function expects one environment variable to be set.
Variable | Meaning |
---|---|
BLOCKLIST |
The comma-separated list of numbers you want to reject in E.164 format |
This Function expects the incoming request to be a voice webhook. The parameters that will be used are From
and blocklist
.