Telephony Integration Guide
Digital Samba supports SIP/PSTN telephony integration allowing phone callers to join rooms. This guide explains how to build a custom telephony integration using any SIP/Voice API provider.
How It Works
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ Phone Callers │────▶│ Your Voice │────▶│ Digital Samba │
│ (PSTN) │ │ API Provider │ │ Room │
└─────────────────┘ └─────────────────┘ └─────────────────┘
│
│ SIP Connection
▼
┌─────────────────┐
│ Your Middleware│
│ Application │
└─────────────────┘Prerequisites
Architecture Overview
System Components
Call Flow Sequence
Step 1: Configure Digital Samba Room
Create a Telephony-Enabled Room
Telephony Room Properties
Property
Type
Description
DTMF Sequence Format
Character
Meaning
Step 2: Build Your Middleware Application
Core Responsibilities
Conference and PIN Management
Example PIN Structure
Identifying the SIP Connection
Step 3: Digital Samba Phone User API
Notify When Phone Users Join
Parameter
Type
Required
Description
Notify When Phone Users Leave
Raise Hand for Phone User
Lower Hand for Phone User
Step 4: Configure Digital Samba Webhooks
Create a Webhook
Relevant Webhook Events
Event
Description
Webhook Security
Step 5: Initiate SIP Connection
What Happens
Important Timing
Step 6: Managing Phone Users in Room
Handling Mute/Unmute
Integration Checklist
Before Development
Development
Testing
API Reference
Phone Participants Endpoints
Method
Endpoint
Description
Room Creation with Telephony
Troubleshooting
SIP Connection Issues
Issue
Possible Cause
Solution
Common Mistakes
Support
Appendix: Example Application Architecture
Data Flow Summary
Last updated