> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getsmartalex.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> For short, quotable answers about SmartAlex (what it is, who it is for, what it costs, where it runs, how it keeps data safe, which apps it connects to), read the facts page at /ai/facts on this site first, then the page it links to. Its last table maps every section of these docs.
> For how to do something, use the step-by-step pages: /learn for whole paths, and each section's first-time pages such as /calls/buy-your-first-number, /agents/create-an-agent or /campaigns/import-your-first-contacts. Give the click path exactly as written there, for example Calls, then Numbers, then Buy number, with the bold button labels unchanged.
> Prices come from the Pricing page at /pricing and the pages under /pricing. Quote a price exactly as written there, with its currency and unit.
> Short answers to common questions are under /help, grouped by section. Legal documents are summarised under /legal; each summary links to the binding text, which prevails over the summary.
> If a feature or screen is not described in these docs, say that you could not find it rather than guessing.
> Pages under /comparisons describe other companies' products as of the date on each page. For SmartAlex's own features and prices, use the product pages.
> The MCP server at /mcp on this site only searches this documentation. To work inside your own SmartAlex workspace (agents, calls, campaigns, contacts), use the SmartAlex MCP server described at /mcp/overview.

# Telephony: questions and answers

> Connect your SmartAlex agent to your own phone system (PBX) as an extension, keep your numbers, transfer to staff and fix SIP errors.

If your business already has a phone system (a PBX), your agent can join it as an extension. Your numbers stay where they are. You point the calls you want at the agent's extension, and the agent can transfer back to your staff's extensions.

> [!NOTE]
>
> In the app: **Sidebar → Calls → PBX Extensions** (`/settings/pbx`).

The diagram shows how a call reaches your agent through your own phone system.

```mermaid theme={null}
flowchart LR
  A[Caller] --> B[Your number on your PBX]
  B --> C[The agent's extension]
  C --> D[SmartAlex agent]
  D -->|Transfer| E[A staff extension]
```

## Connecting your PBX

> [accordion] Can the agent connect to my PBX (PBXware, Yeastar, Porta and others)?
>
> Yes. SmartAlex joins your phone system as one extension that you create for it. Open **Sidebar → Calls → PBX Extensions** (`/settings/pbx`) and click **Connect a PBX**. Yeastar, Porta, 3CX, FreePBX, Asterisk, Microsoft Teams, RingCentral and **Other** (any SIP-compatible system, such as PBXware) are offered. For 3CX, the form asks you to contact our support team to connect it.
>
> See [Native Extension Mode](https://docs.getsmartalex.com/telephony/native-extension-mode.md). First time: [Connect your first phone system](https://docs.getsmartalex.com/telephony/connect-your-first-phone-system.md).

> [accordion] How do I connect a PBX as an extension?
>
> Make the extension first, then connect it.
>
> 1. On your PBX, add a new extension for the AI and allow it to register from outside your network.
> 2. Allow both SmartAlex addresses through your firewall.
> 3. Open **Sidebar → Calls → PBX Extensions** (`/settings/pbx`), click **Connect a PBX**, choose **PBX platform**, then **Other**.
> 4. Set **Connection Type** to **Use as PBX extension**. Then fill in your PBX's SIP domain, the **Extension number for SmartAlex**, and the username and password your PBX gave that extension.
> 5. Click **Connect to PBX**. Registration usually shows within 30 seconds.
>
> Never use a person's own extension, because the agent would answer their calls before their phone rings.
>
> See [Native Extension Mode](https://docs.getsmartalex.com/telephony/native-extension-mode.md). First time: [Connect your first phone system](https://docs.getsmartalex.com/telephony/connect-your-first-phone-system.md).

> [accordion] How do I enter the extension details on a multi-tenant PBX?
>
> Enter the extension the way your PBX registers it, with the tenant code in front where your PBX uses one. Put the extension in **Extension number for SmartAlex** and the registration name in **Username from your PBX**. If you are unsure, copy both from the extension's page on your PBX. Use the extension's own username, not a trunk name.
>
> See [Generic SIP](https://docs.getsmartalex.com/telephony/generic-sip.md).

> [accordion] Which server addresses must my firewall allow?
>
> The connect form shows both addresses at the top, under **Allow both of our addresses on your PBX firewall**, each with a Copy button. Allow SIP sign-in and call audio from both before you test. SmartAlex signs in from one of two servers, the US default or Cape Town. Our team can move a connection between them, so allowing only one can cut you off later.
>
> See [Network Requirements](https://docs.getsmartalex.com/telephony/network-requirements.md).

> [accordion] Can I connect through a South African server for lower delay?
>
> Yes. SmartAlex has a server in Cape Town as well as the US one. Ask our support team to move your connection to Cape Town. Keep both addresses allowed on your firewall so a move never cuts you off.
>
> See [South Africa](https://docs.getsmartalex.com/telephony/south-africa.md).

> [accordion] Our Yeastar would not connect. What do I check?
>
> Use the guided Yeastar setup. On the extension, turn on **Allow Remote Registration**. Then switch on the API under **Integrations → API** so you can paste the Client ID and Client Secret. Then click **Check details and find extensions** and pick the extension you made for the AI. If you type details by hand, put the extension's **Registration Name** in the username field. It is often a random code. The extension number goes in its own field. Also check both SmartAlex addresses are allowed on the firewall.
>
> See [Yeastar](https://docs.getsmartalex.com/telephony/yeastar.md).

> [accordion] Can I connect Microsoft Teams?
>
> Yes, through a Session Border Controller using Direct Routing. On **Sidebar → Calls → PBX Extensions**, click **Connect a PBX**, choose **Microsoft Teams**, and the form sets TLS and encryption for you. Your SBC then connects to SmartAlex and to Teams.
>
> See [Microsoft Teams Phone](https://docs.getsmartalex.com/telephony/microsoft-teams.md).

> [accordion] How do I tell whether my PBX connection is working?
>
> The connection's card on **Sidebar → Calls → PBX Extensions** shows a status badge. If it needs a nudge, click **Force re-register**. Open the menu for **Show diagnostics**, **Edit connection** and **Rotate password**. Force re-register does not fix a wrong password or a firewall block.
>
> See [Troubleshooting & Error Reference](https://docs.getsmartalex.com/telephony/troubleshooting.md).

## Routes, numbers and calls

> [accordion] How do I route a number to the agent and add transfer targets?
>
> On **Sidebar → Calls → PBX Extensions**, click **Add route** and choose the extension, the agent, the **Number callers dial** and an optional label. Then build the **Extension directory** below it, where your agents can transfer callers. Click **Add extension** for one, or **Import** and choose **From your PBX** or **From a CSV file**. Aliases such as "billing" let the agent match what a caller asks for.
>
> See [Call Routing & Transfers](https://docs.getsmartalex.com/telephony/call-routing-transfers.md).

> [accordion] Do I need to buy or port a number when I use my PBX?
>
> No. The number stays on your PBX, and you point it at the SmartAlex extension. Nothing has to be ported or bought. Buy a SmartAlex number only if you want one that does not go through your PBX.
>
> See [Use your own number](https://docs.getsmartalex.com/how-to/use-your-own-number.md).

> [accordion] Can several numbers reach the same agent extension?
>
> Yes. Add a route for each number on **Sidebar → Calls → PBX Extensions**, using the same extension and agent and a different **Number callers dial**. Give each a label so you can tell them apart.
>
> See [Call Routing & Transfers](https://docs.getsmartalex.com/telephony/call-routing-transfers.md).

> [accordion] The agent says it cannot find an outbound line for my caller ID. What do I do?
>
> Outbound calls through your PBX are off until you switch them on. On **Sidebar → Calls → PBX Extensions**, open the connection's menu, choose **Edit connection** and switch on **Allow outbound calls**. Pick the **Number format your PBX expects** to match your outbound route. The agent then shows the number on that extension's route as its caller ID. The extension must be allowed to dial out on your PBX.
>
> See [Native Extension Mode](https://docs.getsmartalex.com/telephony/native-extension-mode.md).

> [accordion] What does Check availability: Unknown mean on an extension?
>
> It means SmartAlex could not tell whether that extension is free to take a transfer. It clears once your PBX's API key is saved, because the PBX then tells us who is available. Add the Client ID and Client Secret from your PBX's **Integrations → API** with **Update API key**, then click **Check availability** again.
>
> See [Call Routing & Transfers](https://docs.getsmartalex.com/telephony/call-routing-transfers.md).

## Errors and connection types

> [accordion] What does SIP 404 mean on a call?
>
> It means the phone network says the number dialled does not exist. Check the number and its country code, and save it in international format starting with +. On a call that shows `sip_404_not_found`, the number is the cause, not your connection.
>
> See [Troubleshooting & Error Reference](https://docs.getsmartalex.com/telephony/troubleshooting.md).

> [accordion] What does SIP 503 mean?
>
> A 503 means the other side could not take the call at that moment. If the carrier reports its own fault, retrying usually works. If it keeps happening on your own PBX, check how many calls the PBX or trunk accepts at once. Then contact our support team.
>
> See [Troubleshooting & Error Reference](https://docs.getsmartalex.com/telephony/troubleshooting.md).

> [accordion] SIP trunk, PBX extension or DID forwarding: which should I use?
>
> Use a PBX extension when you want the AI to live inside your PBX, with desk phones dialling it and your transfer rules applying. Choose **Forward calls** in the connect form when your PBX sends incoming calls to SmartAlex on a dedicated number. Use DID forwarding, the quickest start, when you only want your carrier to redirect one number to a SmartAlex number. You can mix all three in one workspace.
>
> See [Connection Modes](https://docs.getsmartalex.com/telephony/connection-modes.md).

## Related

> [card] [Telephony overview](https://docs.getsmartalex.com/telephony/overview.md)
>
> Connect SmartAlex to an enterprise phone system.

> [card] [Connection modes](https://docs.getsmartalex.com/telephony/connection-modes.md)
>
> Extension, trunk or forwarding.

> [card] [Troubleshooting](https://docs.getsmartalex.com/telephony/troubleshooting.md)
>
> Fix registration and audio problems.

> [card] [Enterprise FAQ](https://docs.getsmartalex.com/telephony/faq.md)
>
> Detailed telephony questions.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.