jamshed_79280
08/21/2025, 5:48 PMAI Evy
08/21/2025, 5:48 PMAI Evy
08/21/2025, 5:49 PMnot_connected, the disconnection_reason field will show specific reasons such as :
- `invalid_destination`: Invalid phone number
- `telephony_provider_permission_denied`: SIP trunk authentication failed
- `telephony_provider_unavailable`: Telephony provider errors
- `sip_routing_error`: SIP routing loops or issues
- `marked_as_spam`: Call marked as spam
- `user_declined`: User declined the call
- `dial_failed`: Unknown error
- `dial_busy`: Number is busy
- `dial_no_answer`: Number didn't answer
If you're experiencing routing issues with call transfers specifically, ensure you have [(2) ]() :
- Added the transfer_call function to your agent's tools
- Updated your prompt with clear transfer conditions
- Configured the correct destination number in E.164 format
For custom telephony setups, double-check your configuration and verify you imported the correct information [(1) ]() . If using numbers purchased from Retell, note that they can currently only make calls to US numbers .
To investigate this specific number's routing status, check your call logs in the Retell dashboard for any recent calls to or from +1(332) 322-3506 and review the detailed logs for specific error codes.AI Evy
08/21/2025, 5:49 PMAI Evy
08/21/2025, 5:49 PMjamshed_79280
08/21/2025, 5:49 PMAI Evy
08/21/2025, 5:49 PMAI Evy
08/21/2025, 5:50 PM{{from_number}} not being recognized during inbound call greetings [(2) ]() . This can be resolved by properly configuring your inbound call webhook response with dynamic variables :
json
{
"call_inbound": {
"override_agent_id": "agent_12345",
"override_agent_version": 1,
"dynamic_variables": {
"customer_name": "John Doe"
},
"metadata": {
"random_id": "12345"
}
}
}AI Evy
08/21/2025, 5:50 PMAI Evy
08/21/2025, 5:50 PMAI Evy
08/21/2025, 5:51 PMjamshed_79280
08/21/2025, 5:51 PMAI Evy
08/21/2025, 5:51 PMAI Evy
08/21/2025, 5:52 PMinbound_agent_id assigned, which allows it to automatically use the agent when receiving inbound calls .
To verify your configuration, you can check your phone number settings using the Get Phone Number API [(2) ]() :
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) ;
If you need to customize the call experience based on the caller, you can set up an inbound call webhook [(3) ]() . This webhook allows you to override agent settings, set dynamic variables, and provide call-specific context . The webhook receives a payload like this:
json
{
"event": "call_inbound",
"call_inbound": {
"agent_id": "agent_12345",
"from_number": "+12137771234",
"to_number": "+12137771235"
}
}
And you can respond with customizations:
json
{
"call_inbound": {
"override_agent_id": "agent_12345",
"override_agent_version": 1,
"dynamic_variables": {
"customer_name": "John Doe"
},
"metadata": {
"random_id": "12345"
}
}
}
If you're experiencing specific issues with the inbound calls beyond basic connectivity, could you provide more details about what problems you're encountering?AI Evy
08/21/2025, 5:52 PMAI Evy
08/21/2025, 5:52 PMjamshed_79280
08/21/2025, 5:55 PM{
"phone_number": "+13323223506",
"phone_number_type": "retell-twilio",
"phone_number_pretty": "(332) 322-3506",
"nickname": "+1(332)322-3506",
"inbound_agent_id": "agent_f8f4097008cef5cda5f76d3d11",
"inbound_agent_version": 1,
"area_code": 332,
"last_modification_timestamp": 1755798128577,
"toll_free": false,
"country_code": "US",
"custom_sms_enabled": false
}@AI EvyAI Evy
08/21/2025, 5:55 PMAI Evy
08/21/2025, 5:56 PMinbound_agent_id assigned, which means it will automatically use the specified agent when receiving inbound calls [(1) ]() [(2) ]() . Since you mentioned the number is connecting with your agent inside Retell, this confirms the basic setup is working.
If you're experiencing any specific issues with inbound calls beyond basic connectivity, you can:
1. Check call logs for any error messages or disconnection reasons [(3) ]()
2. Set up an inbound webhook if you need to customize calls based on the caller [(4) ]()
3. Use dynamic variables to personalize the agent's responses for each call
The configuration looks correct based on the standard phone number response format [(1) ]() . Is there a specific issue you're experiencing with this inbound number that needs troubleshooting?AI Evy
08/21/2025, 5:56 PMAI Evy
08/21/2025, 5:56 PMjamshed_79280
08/21/2025, 5:57 PMAI Evy
08/21/2025, 5:57 PMAI Evy
08/21/2025, 5:57 PMinbound_agent_id assigned (agent_f8f4097008cef5cda5f76d3d11) , the number will automatically use the agent when receiving inbound calls .
However, if you want to control which calls are accepted or customize the experience based on the caller, you can set up an inbound call webhook [(2) ]() . The webhook allows you to:
- Override the agent ID for specific calls
- Set dynamic variables based on the caller
- Potentially reject calls by not responding with a successful status
The webhook receives information about incoming calls including the from_number and to_number, which helps you identify the caller and process the call accordingly . Here's what the webhook payload looks like:
json
{
"event": "call_inbound",
"call_inbound": {
"agent_id": "agent_12345",
"from_number": "+12137771234",
"to_number": "+12137771235"
}
}
Without an inbound webhook configured, your number will accept calls from any caller and route them to your assigned agent. If you need to implement call filtering or screening, you would need to set up the inbound call webhook functionality .AI Evy
08/21/2025, 5:57 PMAI Evy
08/21/2025, 5:57 PM