https://retellai.com/?utm_source=discord&utm_medium=seo logo
someone had problems connecting Zadarma with Retel...
# ❓・ai-evy-support
m
@AI Evy someone had problems connecting Zadarma with Retell AI? I tried to import the number, and when I call to the number an agent awnsers but it's not the agent assigned to that number
a
Thanks for tagging me @marcelotbh. I'll look through relevant sources and get back to you shortly.
### Answer Based on the sources, this issue where a different agent answers than the one assigned to your number has been reported before [(1) ]() . Here are the troubleshooting steps to resolve this: First, verify your phone number configuration: You can check which agent is currently assigned to your imported number using the Get Phone Number API [(2) ]() :
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneNumberResponse = await client.phoneNumber.retrieve('+14157774444') ;
console.log(phoneNumberResponse.inbound_agent_id) ;
Key things to verify: 1. **Agent binding**: Ensure your phone number is assigned only to the correct agent ID [(1) ]() . The
inbound_agent_id
field should match your intended agent [(2) ]() . 2. **Agent version**: Check that the
inbound_agent_version
is set correctly . If not provided, it defaults to the latest version . 3. **Re-import if necessary**: If your configuration appears incorrect, you may need to delete the imported number and re-import it with the correct settings [(3) ]() . For custom telephony troubleshooting: If the issue persists, double-check your import configuration and ensure you imported the correct information . The import process requires specific parameters like
termination_uri
,
phone_number
, and the correct
inbound_agent_id
[(4) ]() . If these steps don't resolve the issue, you may need to check with Zadarma (your telephony provider) to see if there are any routing issues on their side [(3) ]() .
​ To learn more, see the sources I considered: [[1] Agent switching automatically bug](https://discord.com/channels/1186424376300679209/1404178632074596475) [[2] Get Phone Number](https://docs.retellai.com/api-references/get-phone-number) [[3] Debug outbound connection issues](https://docs.retellai.com/reliability/debug-outbound-call) [[4] Import Phone Number](https://docs.retellai.com/api-references/import-phone-number) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
m
everything seems ok @AI Evy still, another agent is anwsering the inbound calls, talking in english and with no introduction phrase.
a
Thanks for the follow-up, @marcelotbh. I'll get back to you soon.
Common Causes: 1. **Webhook Override**: If your number has an inbound webhook, it may be responding with a different
override_agent_id
[(1) ]() 2. **Agent Version**: The
inbound_agent_version
might be pointing to an old or incorrect version [(2) ]() 3. **Default Fallback**: If the webhook fails, it will check if the number has an inbound agent id set, and if not, it may disconnect the call or use a default behavior [(1) ]() Next Steps: - Remove any inbound webhook temporarily to test if that's causing the override - Verify the exact agent ID and version in your phone number configuration - Check if the "wrong" agent might actually be a default or fallback agent in your account
​ To learn more, see the sources I considered: [[1] Inbound call webhook](https://docs.retellai.com/features/inbound-call-webhook) [[2] List Phone Numbers](https://docs.retellai.com/api-references/list-phone-numbers) [[3] Get Agent Versions](https://docs.retellai.com/api-references/get-agent-versions) ​
### Answer Based on the sources, there are several additional troubleshooting steps to resolve this issue where the wrong agent is answering inbound calls: Check for Inbound Call Webhook Override If you have an inbound call webhook configured, it might be overriding your agent assignment [(1) ]() . The webhook can override the agent using the
override_agent_id
field . Check if your phone number has an
inbound_webhook_url
set by listing your phone numbers [(2) ]() :
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneNumberResponses = await client.phoneNumber.list() ;
console.log(phoneNumberResponses) ;
Verify Agent Configuration The issue might be with the agent configuration itself. Check all versions of your agent to ensure the correct one is being used [(3) ]() :
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const agentResponses = await client.agent.getVersions('16b980523634a6dc504898cda492e939') ;
console.log(agentResponses) ;
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.