victorl_18576_63719
09/27/2025, 8:19 AMAI Evy
09/27/2025, 8:19 AMAI Evy
09/27/2025, 8:19 AMAI Evy
09/27/2025, 8:19 AMAI Evy
09/27/2025, 8:19 AMvictorl_18576_63719
09/27/2025, 8:37 AMvictorl_18576_63719
09/27/2025, 8:56 AMAI Evy
09/27/2025, 8:56 AMAI Evy
09/27/2025, 8:56 AMAI Evy
09/27/2025, 8:56 AMAI Evy
09/27/2025, 8:56 AMAI Evy
10/05/2025, 8:53 AMvictorl_18576_63719
10/05/2025, 8:53 AMAI Evy
10/05/2025, 8:53 AMAI Evy
10/05/2025, 8:53 AMAI Evy
10/05/2025, 8:53 AMvictorl_18576_63719
10/05/2025, 8:57 AMvictorl_18576_63719
10/05/2025, 8:57 AMAI Evy
10/05/2025, 8:57 AMAI Evy
10/05/2025, 8:57 AMAI Evy
10/05/2025, 8:58 AMAI Evy
10/05/2025, 8:58 AMvictorl_18576_63719
10/05/2025, 9:11 AMAI Evy
10/05/2025, 9:11 AMAI Evy
10/05/2025, 9:11 AMjson
{
"phone_number": "+14157774444",
"termination_uri": "zadarma.termination.uri.com",
"sip_trunk_auth_username": "extension1_username",
"sip_trunk_auth_password": "extension1_password",
"inbound_agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
"outbound_agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
"nickname": "Extension 1"
}
For your second extension, you'd use the same phone number but different credentials:
json
{
"phone_number": "+14157774444",
"termination_uri": "zadarma.termination.uri.com",
"sip_trunk_auth_username": "extension2_username",
"sip_trunk_auth_password": "extension2_password",
"inbound_agent_id": "differentAgentIdForExtension2",
"outbound_agent_id": "differentAgentIdForExtension2",
"nickname": "Extension 2"
}AI Evy
10/05/2025, 9:11 AMtermination_uri is used for outbound calls and should be Zadarma's SIP URI
- The sip_trunk_auth_username and sip_trunk_auth_password are the credentials for authentication with your SIP trunk
- Each extension can be bound to different agents using inbound_agent_id and outbound_agent_id
- You can also import numbers programmatically via the Import Number API [(2) ]()
After importing, each extension will show up as a separate entry in your Retell dashboard, even though they share the same virtual phone number . Retell distinguishes between them based on the different authentication credentials you provided during import.AI Evy
10/05/2025, 9:12 AMAI Evy
10/05/2025, 9:12 AMvictorl_18576_63719
10/05/2025, 9:24 AMAI Evy
10/05/2025, 9:24 AMAI Evy
10/05/2025, 9:24 AM^ for line continuation in Windows Command Prompt
- Ensure all quotes are properly escaped
- The API will return a 201 response with the imported phone number details upon success
After successful import, each extension will appear as a separate entry in your Retell dashboard, distinguished by their unique authentication credentials .AI Evy
10/05/2025, 9:24 AMcurl commands to call the Import Phone Number API [(1) ]() . Here are the specific instructions:
Prerequisites:
- Install curl for Windows (if not already available)
- Have your Retell API key ready
- Know your Zadarma termination URI and extension credentials
Command Structure for Extension 1:
cmd
curl -X POST <https://api.retellai.com/import-phone-number> ^
-H "Authorization: Bearer YOUR_API_KEY_HERE" ^
-H "Content-Type: application/json" ^
-d "{\"phone_number\": \"+14157774444\", \"termination_uri\": \"your.zadarma.uri.com\", \"sip_trunk_auth_username\": \"extension1_username\", \"sip_trunk_auth_password\": \"extension1_password\", \"inbound_agent_id\": \"your_agent_id_here\", \"outbound_agent_id\": \"your_agent_id_here\", \"nickname\": \"Extension 1\"}"
Command Structure for Extension 2:
cmd
curl -X POST <https://api.retellai.com/import-phone-number> ^
-H "Authorization: Bearer YOUR_API_KEY_HERE" ^
-H "Content-Type: application/json" ^
-d "{\"phone_number\": \"+14157774444\", \"termination_uri\": \"your.zadarma.uri.com\", \"sip_trunk_auth_username\": \"extension2_username\", \"sip_trunk_auth_password\": \"extension2_password\", \"inbound_agent_id\": \"your_second_agent_id_here\", \"outbound_agent_id\": \"your_second_agent_id_here\", \"nickname\": \"Extension 2\"}"AI Evy
10/05/2025, 9:24 AMAI Evy
10/05/2025, 9:24 AMvictorl_18576_63719
10/05/2025, 9:27 AMAI Evy
10/05/2025, 9:27 AMAI Evy
10/05/2025, 9:27 AMpbx.zadarma.com is the correct termination SIP URI for Zadarma based on the available sources [(1) ]() [(2) ]() . The documentation shows that the termination URI should uniquely identify your elastic SIP trunk and is used for outbound calls [(1) ]() . For Twilio elastic SIP trunks, it mentions they always end with ".pstn.twilio.com" .
For your specific Zadarma configuration, you'll need to check with Zadarma directly to get the correct termination SIP URI for your PBX setup. The termination URI format varies by provider and your specific configuration.
Once you have the correct URI from Zadarma, you can use it in your import commands as shown in the previous examples .AI Evy
10/05/2025, 9:27 AMAI Evy
10/05/2025, 9:27 AM