> ## 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.

# Connect PortaOne to SmartAlex

> Connect a hosted PortaOne extension to SmartAlex with its SIP account ID and service password, then have your provider point your number at it.

By the end of this tutorial your SmartAlex agent is signed in to a hosted PortaOne account as an extension. It answers every call your provider sends to it. A hosted PortaOne extension is an account on your provider's switch, so there is no PBX of your own to set up. Porta connections always use **Use as PBX extension**.

> [!NOTE]
>
> In the app: **Sidebar → Calls → PBX Extensions** (`/settings/pbx`) → **Connect a PBX** → **PBX platform** → **Porta** ("Hosted PortaOne extension"). There is no **Connection Type** choice: Porta always uses extension mode.

## What you need first

* The extension's **SIP account ID** from your provider, for example `ph12345x6789`, and it is both the extension and the sign-in username.
* The account's **SIP password**. PortaOne's documentation calls this the service password, which also registers a SIP phone, and it is not the password for the provider's web self-care portal.
* The SIP hostname your provider gives you, the same one a desk phone on this account would use.
* An account kept for the AI. If a desk phone or app is signed in on the same account, SmartAlex answers its calls first.
* A SmartAlex agent that is ready to answer calls.
* A way to ask your provider to allow `34.233.117.97` and `15.240.176.215`, if they accept sign-ins only from known addresses.

## How it connects

This sequence shows SmartAlex signing in to a hosted PortaOne account and answering a call.

```mermaid theme={null}
sequenceDiagram
    autonumber
    participant C as Caller
    participant P as Provider's PortaOne switch
    participant S as SmartAlex
    S->>P: SIP REGISTER as the SIP account ID
    P-->>S: 401 challenge
    S->>P: REGISTER with the SIP password
    P-->>S: 200 OK, account online
    C->>P: Dials your number
    P->>S: INVITE to the account
    S-->>C: AI answers
```

## Part 1: Get the details from your provider

PortaOne is run by your provider, so the menus you see depend on what they expose to you. Their own PortaOne self-care pages and support team are the authority, and this part holds for every PortaOne switch.

**1. Ask for an account for the AI**

Ask your provider for a SIP account to keep for the AI, and never use a person's account.

**2. Collect the three values**

Get the **SIP account ID**, the **SIP password** (the service password) and the **SIP hostname** for that account.

**3. Ask them to allow our addresses**

If your provider accepts sign-ins only from known addresses, ask them to allow both of ours: `34.233.117.97` and `15.240.176.215`. Our audio comes from UDP 50000 to 60000.

| Item from your provider | Where it is | What to enter in SmartAlex | Why |
| - | - | - | - |
| **SIP account ID** | Your provider's account details, for example `ph12345x6789` | **SIP account ID** | It is the extension and the sign-in username |
| **SIP password** | The account's service (SIP) password, not the web self-care password | **Password from your PBX** | SmartAlex answers the REGISTER challenge with it |
| **SIP hostname** | The server a desk phone on this account uses | **Your PBX SIP Domain** | Where SmartAlex signs in |

## Part 2: Connect it in SmartAlex

**1. Open PBX Extensions**

In the sidebar, click **Calls**, then **PBX Extensions** (`/settings/pbx`). Click **Connect a PBX**.

**2. Choose Porta**

Under **PBX platform**, click the **Porta** tile.

![Porta tile selected under PBX platform](https://mintcdn.com/smartalex/kH_ICIPoijeWBR2w/images/screens/telephony-guides/porta-tile.webp?fit=max\&auto=format\&n=kH_ICIPoijeWBR2w\&q=85\&s=a77b9fac3b7d21a92ee46a88ac02763a)

The Porta tile. It always uses extension mode.

**3. Enter the account details**

Fill in **Trunk Name**, **Your PBX SIP Domain**, **SIP account ID** and **Password from your PBX**. Click **Connect to PBX**. The app says "Connected. SmartAlex is registering to your PBX now."

**4. Link the agent**

Under **Finish the connection**, find **Which agent answers?**, choose your agent and click **Link agent**.

**5. Set up the inbound route**

Under **Which number rings it?**, click **Set up the inbound route**. The **Connect a PBX Extension** dialog already knows the connection and the linked agent. It asks only for the **Extension**, the **Number callers dial** in full international form, such as `+27 11 555 1234`, and an optional **Label**. Click **Connect**.

| Setting | What it does | Default | When to change it |
| - | - | - | - |
| **Trunk Name** | The name you see on the connection card | Empty | Always: use something like "Porta line (ph12345x6789)" |
| **Your PBX SIP Domain** | Where SmartAlex signs in. "Use the SIP hostname configured on your desk phones." | Empty | Always |
| **SIP account ID** | Your Porta extension's account ID. "It is also its username." | Empty | Always |
| **Password from your PBX** | The account's SIP password, not a web login. Stored encrypted | Empty | Always |
| **Transport** (Advanced Settings) | How SIP travels: UDP, TCP or TLS. "UDP works for most PBXes." | UDP | Leave on UDP. Extension mode signs in over UDP only, and TCP or TLS is refused with "Only UDP is supported for this connection type." |
| **Port** (Advanced Settings) | Your PBX's SIP port. "Default 5060. TLS usually 5061." | `5060` | When your provider listens on another port |

## Point your number at the account

**1. Ask for the routing**

In your provider's portal, or through their support team, point the number you want answered at the SIP account ID.

**2. Confirm it**

Ask your provider to confirm the number now rings that account.

## Check it worked

**1. The status turns green**

Under **Sidebar → Calls → PBX Extensions**, the card shows **Connected as ext N**. The first registration usually lands within a minute, and if it shows anything else, see [Connection status](https://docs.getsmartalex.com/telephony/connection-status.md).

**2. Diagnostics pass**

Open the card's menu, choose **Show diagnostics**, and check **Registration**, **PBX reachable** and **Inbound routing** all pass.

**3. A call reaches the AI**

Call the number from a mobile phone. Your agent answers.

**4. A transfer works**

Ask the AI to put you through to a colleague on the same switch. See [Testing and validation](https://docs.getsmartalex.com/telephony/testing-validation.md).

## Next

> [card] [Fill the extension directory](https://docs.getsmartalex.com/telephony/call-routing-transfers.md#the-extension-directory)
>
> So the AI can put callers through to your team.

> [card] [Test before go-live](https://docs.getsmartalex.com/telephony/testing-validation.md)
>
> The full test plan.

## Questions people ask

> [accordion] Which server will my Porta line connect to?
>
> Porta lines start on our Cape Town server (`15.240.176.215`). Ask your provider to allow both addresses anyway, as our team can move a connection between them.

> [accordion] The status says Auth failed
>
> Check you used the SIP password, not your web portal password, and that the SIP account ID has no spaces. Fix it with **Edit connection**. See [Connection status](https://docs.getsmartalex.com/telephony/connection-status.md).

> [accordion] Which codecs and transport does it use?
>
> UDP, with G.711 u-law and A-law, the same as every extension-mode connection.

> [accordion] Can the AI put callers through to colleagues?
>
> Yes, to other accounts on the same switch. Add them to the **Extension directory** on the connection, by CSV or one at a time. See [Call routing and transfers](https://docs.getsmartalex.com/telephony/call-routing-transfers.md#the-extension-directory).

## Related

> [card] [PBX extension mode](https://docs.getsmartalex.com/telephony/native-extension-mode.md)
>
> How extension mode works on any PBX.

> [card] [South Africa](https://docs.getsmartalex.com/telephony/south-africa.md)
>
> Local numbers and hosted PBXs.

> [card] [Network requirements](https://docs.getsmartalex.com/telephony/network-requirements.md)
>
> Our addresses and ports.

> [card] [Connection status](https://docs.getsmartalex.com/telephony/connection-status.md)
>
> What each status means.


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