https://retellai.com/?utm_source=discord&utm_medium=seo logo
Running an automation, we got back an error for a ...
# ❓・ai-evy-support
r
@AI Evy Running an automation, we got back an error for a number saying it wasn't a valid number. We think it's the error code. Do you have a list of approved error codes or a source that we could keep in our automation to filter out so we don't have API errors sending in batch calls?
a
Thanks for tagging me @romanoclan. I'll look through relevant sources and get back to you shortly.
### Answer The error you're experiencing is likely the
invalid_destination
disconnection reason [(1) ]() . Retell AI provides a comprehensive list of disconnection reasons that you can use to filter out problematic numbers in your batch calling automation . For the specific "invalid number" error, the disconnection reason is
invalid_destination
with a call status of
not_connected
, which indicates "Outbound call not connected, the number dialed is invalid" . Here are the key disconnection reasons you should filter out to avoid API errors in batch calls : -
invalid_destination
- The number dialed is invalid -
dial_failed
- Dialing failed with no or unknown sip error code -
dial_busy
- The number dialed is busy -
dial_no_answer
- The number dialed did not answer -
marked_as_spam
- The number dialed is marked as spam -
user_declined
- User declined the call -
telephony_provider_permission_denied
- SIP trunk credentials are not authenticated -
telephony_provider_unavailable
- The telephony provider is unavailable You can check these disconnection reasons through the Retell Dashboard or by using the get-call API endpoint . When setting up your automation, filter out numbers that previously resulted in these disconnection reasons to prevent repeated API errors . Note that when phone numbers engage in many short calls in a short period, they might be marked as spam at the carrier level, leading to numbers being blocked and showing up as
dial_failed
.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Debug call disconnection](https://docs.retellai.com/reliability/debug-call-disconnect) ​