marcelotbh
10/06/2025, 9:42 PMAI Evy
10/06/2025, 9:42 PMAI Evy
10/06/2025, 9:43 PMjavascript
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) ;AI Evy
10/06/2025, 9:43 PMinbound_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) ]() .AI Evy
10/06/2025, 9:43 PMAI Evy
10/06/2025, 9:43 PMmarcelotbh
10/06/2025, 9:49 PMAI Evy
10/06/2025, 9:49 PMAI Evy
10/06/2025, 9:50 PMoverride_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 accountAI Evy
10/06/2025, 9:50 PMAI Evy
10/06/2025, 9:50 PMoverride_agent_id field . Check if your phone number has an inbound_webhook_url set by listing your phone numbers [(2) ]() :
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) ]() :
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) ;AI Evy
10/06/2025, 9:50 PM