https://retellai.com/?utm_source=discord&utm_medium=seo logo
can i block certain numbers from reaching inbound ...
# ❓・ai-evy-support
a
@AI Evy can i block certain numbers from reaching inbound agents
a
Thanks for tagging me @Andreas. I'll look through relevant sources and get back to you shortly.
### Answer Yes, you can restrict inbound calls by country using the
allowed_inbound_country_list
parameter when importing a phone number. [(1) ]() For blocking specific phone numbers, there's no built-in blocklist feature in Retell AI. However, community members have suggested these workarounds: [(2) ]() 1. **Inbound webhook approach**: Set up an inbound webhook where you maintain a list of blocked numbers, create a dynamic variable like
{{isblocked}}
, and then have the agent call the
end_call
function if the number is blocked. 2. **Twilio Studio proxy**: Use a Twilio number as a proxy and implement filter logic in Twilio Studio to decide whether to forward calls to your Retell agent. Twilio also has spam filter options. For the webhook approach, you would configure the
inbound_webhook_url
parameter when importing your number to receive webhook notifications for inbound calls, where you can override agent behavior based on the caller. [(1) ]()
​ To learn more, see the sources I considered: [[1] Import Phone Number](https://docs.retellai.com/api-references/import-phone-number) [[2] Discord message from @leon_haas_1 on 2024-09-24](https://discord.com/channels/1186424376300679209/1186462578310910112/1288054906288083057) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.