https://retellai.com/?utm_source=discord&utm_medium=seo logo
I setup a virtual phone from Zadarma but when I ma...
# ❓・ai-evy-support
v
@AI Evy I setup a virtual phone from Zadarma but when I make the call it rings 3 times and then says "unavailable"
a
Thanks for tagging me @victorl_18576_63719. I'll look through relevant sources and get back to you shortly.
### Answer When a call rings several times and then reports "unavailable" using a virtual phone from Zadarma, the issue may relate to SIP trunking, telephony provider availability, or misconfiguration. The official documentation lists the following relevant disconnection reasons for outbound calls: - telephony_provider_unavailable: The telephony provider is not available or has errors. - sip_routing_error: Issues with SIP routing, such as loops or excessive hops. - dial_no_answer: The number dialed did not answer. - dial_failed: Dialing failed with no or unknown SIP error code. To troubleshoot: 1. Check the call history and detailed log for the disconnection reason, SIP error code, and error message. 2. If using custom telephony (such as Zadarma SIP trunking) , double-check your configuration and ensure the correct information has been imported. 3. If the configuration appears correct, delete the imported number and re-import it. 4. If the issue persists, check with your telephony provider (Zadarma) to see if there are any errors or restrictions on their side [(1) ]() . If your setup involves a virtual PBX, ensure that Retell AI is registered as a proper PBX extension or SIP URI. For DTMF and call transfer issues, enable RFC2833 DTMF in Zadarma and configure Retell AI to process DTMF input correctly [(2) ]() . You can review more troubleshooting steps and possible causes at [Debug outbound connection issues]() and [Integration Issues with Zadarma Virtual PBX and Retell AI]() .
​ To learn more, see the sources I considered: [[1] Debug outbound connection issues](https://docs.retellai.com/reliability/debug-outbound-call) [[2] Integration Issues with Zadarma Virtual PBX and Retell AILinkedInZadarma.com](https://discord.com/channels/1186424376300679209/1361670748078604369) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
v
How can I edit a created phone settings?
@AI Evy How can I edit a created phone settings?
a
Thanks for the follow-up, @victorl_18576_63719. I'll get back to you soon.
### Answer The available sources do not describe a way to directly edit the settings of an already created phone number in Retell AI. The documented workflow covers importing a phone number with specific settings (such as termination URI, agent binding, nickname, etc.) using the import API, but it does not mention an update or edit operation for an existing number [(1) ]() . If you need to change the configuration, you may need to delete the number and re-import it with the new settings [(2) ]() . Check out these potentially useful sources: [Import Phone Number]() , [Telnyx]() , [AI Phone Numbers: How to Buy & Set Up | Retell AI]() Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Import Phone Number](https://docs.retellai.com/api-references/import-phone-number) [[2] Telnyx](https://docs.retellai.com/deploy/telnyx) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the follow-up, @victorl_18576_63719. I'll get back to you soon.
v
@AI Evy how can I setup two phones with same number but different extension.
a
### Answer Based on the available sources, setting up two phones with the same number but different extensions is not directly supported as a native Retell AI feature [(1) ]() . The current transfer call functionality works only with Retell numbers, and Retell numbers are currently only US-based numbers [(2) ]() . However, there are some workarounds mentioned in the community discussions: For call transfers with extensions, you would need to handle the call transfers on your backend [(1) ]() . The process involves: 1. Setting up your own endpoint to handle transfers when a new call comes in from Twilio 2. Creating another endpoint for your transfer function 3. Using call forwarding to the existing IVR number and utilizing the send_digits node inside of dial() .number This approach requires custom implementation rather than using Retell's native transfer functionality . Check out these potentially useful sources: [Call number with extension]() , [Call transfer to number with extension]() Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Call transfer to number with extension](https://discord.com/channels/1186424376300679209/1354159184270065704) [[2] Call number with extension](https://discord.com/channels/1186424376300679209/1270039139776991315) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
v
I have a PBX with 2 extensions. each extension has a user and password, but the virtual number is the same. The routing happens in the zadarma PBX. Each extension has a user and password that is setup when adding the phones on Retell. When a call is routed to the 1st extension, that phone should ring. Somehow, Retell must distinguish between the calls made to one SIP trunk user than the other, regardless of both SIP trunk User/extension has the same virtual phone number
@AI Evy I have a PBX with 2 extensions. each extension has a user and password, but the virtual number is the same. The routing happens in the zadarma PBX. Each extension has a user and password that is setup when adding the phones on Retell. When a call is routed to the 1st extension, that phone should ring. Somehow, Retell must distinguish between the calls made to one SIP trunk user than the other, regardless of both SIP trunk User/extension has the same virtual phone number
a
Thanks for the follow-up, @victorl_18576_63719. I'll get back to you soon.
### Answer Based on the available sources, when using elastic SIP trunking with Retell AI, you can set up multiple extensions with different credentials but the same virtual number [(1) ]() [(2) ]() . Here's how this works: When importing numbers to Retell using elastic SIP trunking, you need to supply the username and password you set up in your outbound authentication [(1) ]() . For your scenario with 2 extensions on the same virtual number, you would: 1. Create separate SIP trunk configurations - Each extension would have its own username and password credentials in your Zadarma PBX 2. Import each extension separately - When importing numbers to Retell, you supply Zadarma's FQDN as the termination SIP URI along with the specific username and password for each extension 3. Routing distinction - Retell distinguishes between the extensions based on the different username/password combinations you provide during the import process, even though they share the same virtual phone number The key is that during the import process, you'll need to provide the termination URI to identify your elastic SIP trunk, which is used for outbound calls [(3) ]() . You can assign a unique agent ID to bind each number/extension combination, ensuring that calls are automatically directed to the specified agent . You can also import numbers programmatically via the Import Number API [(1) ]() . Each imported number with its specific credentials will show up in your dashboard, and you can make phone calls from the Dashboard directly . For PBX systems like yours, there are integration manuals available, and if you're having
trouble setting up the connection, you can check the available documentation for telephony providers [(2) ]() .
​ To learn more, see the sources I considered: [[1] Telnyx](https://docs.retellai.com/deploy/telnyx) [[2] Custom Telephony Overview](https://docs.retellai.com/deploy/custom-telephony) [[3] AI in SIP Calling & Telephony Solutions | Retell AI](https://www.retellai.com/blog/integrating-ai-with-sip-trunking-and-modern-telephony) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
v
@AI Evy please develop this: Import each extension separately - When importing numbers to Retell, you supply Zadarma's FQDN as the termination SIP URI along with the specific username and password for each extension
a
Thanks for the follow-up, @victorl_18576_63719. I'll get back to you soon.
### Answer When importing each extension separately to Retell, you'll use the Import Phone Number API to configure each extension with its unique credentials [(1) ]() . Here's how this works: Step 1: Identify Your Zadarma Configuration For each extension, you'll need: - The same virtual phone number (in E.164 format like "+14157774444") - Zadarma's termination SIP URI (FQDN) - Unique username for each extension - Unique password for each extension Step 2: Import Each Extension Separately You'll make separate API calls to import each extension. The Import Phone Number API requires these key parameters :
Copy code
json
{
  "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:
Copy code
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"
}
Key Points: - The
termination_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.
​ To learn more, see the sources I considered: [[1] Import Phone Number](https://docs.retellai.com/api-references/import-phone-number) [[2] Twilio](https://docs.retellai.com/deploy/twilio) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
v
@AI Evy please provide specific instructions on how to use the API calls to import each extension in a windows command line
a
Thanks for the follow-up, @victorl_18576_63719. I'll get back to you soon.
Key Parameters to Replace: - `YOUR_API_KEY_HERE`: Your Retell API key - `+14157774444`: Your actual virtual phone number in E.164 format - `your.zadarma.uri.com`: Zadarma's actual termination SIP URI - `extension1_username`/`extension2_username`: Your specific extension usernames - `extension1_password`/`extension2_password`: Your specific extension passwords - `your_agent_id_here`: The agent ID you want to bind to each extension Windows Command Line Notes: - Use
^
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 .
### Answer ### Windows Command Line Instructions for Importing Extensions To import each extension using Windows Command Line, you'll use
curl
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:
Copy code
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:
Copy code
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\"}"
​ To learn more, see the sources I considered: [[1] 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.
v
@AI Evy the Zadarma's actual termination SIP URI, is pbx.zadarma.com?
a
Thanks for the follow-up, @victorl_18576_63719. I'll get back to you soon.
### Answer I cannot confirm whether
pbx.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 .
​ To learn more, see the sources I considered: [[1] Import Phone Number](https://docs.retellai.com/api-references/import-phone-number) [[2] Custom Telephony Overview](https://docs.retellai.com/deploy/custom-telephony) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.