assistant-api includes a built-in SIP server. Any SIP client, softphone, or PBX can call it directly — no external telephony account is required.
Required Configuration
Firewall Ports
| Port | Protocol | Purpose |
|---|---|---|
5090 | UDP | SIP signalling |
10000–20000 | UDP | RTP media |
Connecting a SIP Client
Route inbound calls to one of the accepted SIP destination users:| Format | Example | Resolution |
|---|---|---|
sip:agent-{assistantID}@{SIP__EXTERNAL_IP}:{SIP__PORT} | sip:agent-123456789@203.0.113.10:5090 | Routes directly by numeric assistant ID |
sip:did-{did}@{SIP__EXTERNAL_IP}:{SIP__PORT} | sip:did-+15551234567@203.0.113.10:5090 | Looks up the active SIP phone deployment whose phone value exactly matches {did} |
sip:{did}@{SIP__EXTERNAL_IP}:{SIP__PORT} | sip:+15551234567@203.0.113.10:5090 | Same DID lookup, without the did- prefix |
+15551234567 and 15551234567
are different route values.
Asterisk SIP Trunk (Optional)
To route calls from Asterisk through Rapida over SIP:- pjsip.conf
- extensions.conf
Rapida SaaS SIP Endpoint
For Rapida SaaS, the production SIP server is:Asterisk
Asterisk AudioSocket and WebSocket transports
Configuration
SIP__EXTERNAL_IP and other SIP env vars
Telephony Overview
All providers comparison
Configure Your Own
Add a new telephony provider