chuu
01/05/2026, 8:05 PMAI Evy
01/05/2026, 8:05 PMAI Evy
01/05/2026, 8:06 PMoutbound_agent_id configured while setting inbound_agent_id to null. This means the number would not accept inbound calls. [(1) ]() [(2) ]()
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneNumberResponse = await client.phoneNumber.update('+14157774444', {
inbound_agent_id: null,
outbound_agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
}) ;
[(2) ]()
Option 2: Use an inbound webhook for custom routing
You can set an inbound_webhook_url on your phone number. This webhook fires for inbound calls and allows you to override agent behavior or implement custom routing logic for each call.
javascript
const phoneNumberResponse = await client.phoneNumber.update('+14157774444', {
outbound_agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
inbound_webhook_url: '<https://example.com/inbound-webhook',>
}) ;
Option 3: Create an inbound agent that immediately transfers
You could create a minimal inbound agent configured to immediately perform a warm or cold transfer to your in-house call center number. [(3) ]()
The simplest approach for your use case is Option 1 (setting inbound_agent_id to null) if you want to reject inbound calls entirely, or configure call forwarding at your telephony provider level to route those calls to your call center.AI Evy
01/05/2026, 8:06 PMAI Evy
01/05/2026, 8:06 PMchuu
01/05/2026, 8:10 PMAI Evy
01/05/2026, 8:10 PMAI Evy
01/05/2026, 8:10 PMinbound_agent_id to null
You can update your imported phone number to disable inbound AI handling entirely. [(1) ]()
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneNumberResponse = await client.phoneNumber.update('+14157774444', {
inbound_agent_id: null,
outbound_agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
}) ;
With inbound_agent_id set to null, the number would not accept inbound calls through Retell. You would then need to configure the origination routing on your Twilio Elastic SIP Trunk to point inbound calls directly to your call center instead of Retell's SIP server (sip:sip.retellai.com) . [(2) ]()
Option 2: Use an inbound webhook for custom routing
You can set an inbound_webhook_url on your phone number. [(1) ]() This webhook fires for inbound calls, allowing you to override agent behavior or implement custom routing logic. [(3) ]()
javascript
const phoneNumberResponse = await client.phoneNumber.update('+14157774444', {
outbound_agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
inbound_webhook_url: '<https://example.com/inbound-webhook',>
}) ;AI Evy
01/05/2026, 8:11 PMAI Evy
01/05/2026, 8:11 PMAI Evy
01/05/2026, 8:11 PMAI Evy
01/05/2026, 8:14 PM