Hi sensation,
If you're looking to handle spam calls, you can set up a Server URL to filter inbound calls using Vapi. Here's a [guide](
https://docs.vapi.ai/server-url/spam-call-rejection) that outlines how to screen inbound calls and reject known spam numbers:
1.
Configure a Server URL: Apply it to your phone number, assistant, or organization.
2.
Handle assistant-request webhook: Vapi sends the webhook to your server for inbound calls without a fixed assistantId.
3.
Validate the caller number: Check if the number is on your spam list and respond accordingly:
-
Spam number: Return an error message to end the call.
-
Allowed number: Proceed with a transient assistant configuration.
Ensure that your server responds within about 7.5 seconds to avoid call failures. For a coding example using Node.js, check the documentation link provided above.