Overview
The SIP trunk phone method lets you connect an existing phone number from your own PBX, SIP provider, or GSM gateway to your Chatbase agent. You give the number a name, Chatbase generates a SIP URI, and you point your carrier or telephony provider at that URI. Inbound calls are then answered by your AI agent using its configured voice, personality, and data sources.What you can do:
Keep the number your customers already call, and route its inbound calls to your AI agent instead of buying a new one.
Use this method when you already own numbers with a carrier or run your own telephony. If you’d rather buy and manage numbers through Twilio, see the Twilio method.
Before you start
- An existing phone number on a PBX, SIP provider, or GSM gateway.
- The ability to configure that trunk’s inbound call routing (origination) to point at an external SIP URI. Where this setting lives depends on your carrier or telephony provider.
- A Chatbase agent set up with the voice settings you want callers to hear. Configure voice, language, and greeting under your agent’s Settings > Voice tab.
- The phone channel supported on your plan. Check the pricing page for details.
How to connect a SIP trunk
1
Open the Phone channel
- Navigate to your Chatbase dashboard and select the agent you want to enable phone calls for.
- Click Channels in the sidebar and open the Phone channel.
- Go to the Connections tab. This is where you assign phone numbers to the agent.
2
Choose the SIP trunk method
- Under Assign phone numbers, click Assign a new number.
- In the dialog, choose SIP trunk: “Connect an existing number from your PBX, SIP provider or GSM gateway.”
- Click Continue.
If you don’t have a Twilio account connected, SIP trunk is already selected for you. The Twilio number option only becomes available once a Twilio account is connected to the agent.
3
Enter the number details
In the Connect SIP trunk dialog:
- Enter a Name, a friendly label to help you identify this number later, for example “Main office trunk”.
- Enter the Phone number in E.164 format, including the country code, for example
+15550000000. - Click Connect SIP trunk.
4
Copy the SIP URI
The SIP trunk created dialog shows the SIP URI Chatbase generated. Click the copy icon to copy it. It looks like this:Then click Done.
5
Point your carrier at the SIP URI
In your carrier, PBX, SIP provider, or GSM gateway configuration, route inbound calls for this number to the SIP URI you copied. This is usually configured as the trunk’s origination, outbound routing, or SIP destination for the number.The exact steps vary by provider, but in general you will:
- Open your provider’s trunk or number settings.
- Set the inbound call destination (origination URI / SIP endpoint) to the copied Chatbase SIP URI.
- Save the configuration and place a test call to the number.
Place a test call to the number. In the Connections tab, it should appear as a card showing the phone number, a green Active badge, its friendly name, and a SIP trunk provider badge.
How calls work
Once a SIP trunk number is connected and enabled for an agent:- Inbound calls to that number are routed through your carrier to Chatbase and answered by the assigned agent.
- The agent uses its configured voice settings (voice provider, model, and language) to speak with the caller.
- The agent greets the caller with the first message defined in its voice settings.
- The conversation follows the agent’s instructions, knowledge base, and actions, just like a chat conversation.
- Each call creates a conversation entry in Activity > Conversations with the source marked as Phone.
Managing phone numbers
Copy the SIP URI again
- On the Connections tab, find the number’s card and click the menu icon (⋯).
- Select Copy SIP URI.
Enable or disable a number
Use the toggle on the number’s card. A disabled number stops receiving calls but stays connected to the agent, so you can re-enable it at any time without reconfiguring your carrier.Delete a number
- On the number’s card, click the menu icon (⋯) and select Delete.
- Confirm in the dialog.
Limitations
- Routing happens at your carrier. Chatbase generates the SIP URI, but calls only reach your agent once your provider is configured to send them there.
- The SIP URI must match exactly, including port and transport, or calls won’t connect.
- The phone channel is plan-gated. Check the pricing page for availability.
Next steps
Twilio
Buy and manage numbers through Twilio instead.
Transfer to phone number
Let the agent hand a live call to a human.
