Documentation
Chat
- Getting Started
- Installation
- Core Concepts
- Escalation System
- Widget Keys
- Secret Keys (sk_)
- REST API
- Channels & Integrations
- Messaging Platform API
Voice
- Voice Agent
- Setup Guide
- Phone Numbers
- Outbound Campaigns
Platform
- Billing & Pricing
- Glossary
- FAQ
SIP Trunk
A virtual phone line that connects your voice agent to the public telephone network (PSTN) via the Session Initiation Protocol.
A SIP trunk is a virtual connection between your organization and the Public Switched Telephone Network (PSTN). It uses the Session Initiation Protocol to establish, manage, and terminate voice calls over the internet — replacing traditional phone lines.
How SIP trunking works in Sampan
The following diagram shows the call flow for an inbound call:
→
→
→
→
Your SIP provider receives the call from the phone network, converts it to SIP, and forwards it to Sampan's voice infrastructure. A call session is created and your AI agent joins to handle the call.
Key components
Inbound Trunk
Receives calls from the PSTN and routes them to your agent
Outbound Trunk
Sends calls from your agent to the PSTN (campaigns, transfers)
Dispatch Rule
Routes incoming calls to the correct session based on the number called
Connection types
Provisioned — Sampan manages the trunk. Easiest setup.
BYOC — Bring Your Own Carrier. Configure your existing trunk.
Forwarding — Forward calls from your carrier to a Sampan number.
