SIP Integration
SIP (Session Initiation Protocol) integration allows Crew to connect directly to your existing phone infrastructure, PBX systems, or SIP providers.Overview
SIP integration is ideal for:- Enterprises with existing PBX systems
- Organizations using custom SIP providers
- High-volume deployments requiring direct connectivity
- Scenarios requiring specific codec or routing control
Prerequisites
Before setting up SIP:- SIP trunk provider or PBX with SIP support
- Static IP address(es) or FQDN for Crew
- Network firewall access for SIP/RTP traffic
- Codec compatibility (G.711, Opus)
SIP Trunk Configuration
Crew SIP Endpoint
Configure your SIP trunk to route calls to Crew:| Setting | Value |
|---|---|
| SIP URI | sip:{crew_id}@sip.usecrew.ai |
| Transport | UDP, TCP, or TLS |
| Port | 5060 (UDP/TCP) or 5061 (TLS) |
| Codec | G.711 μ-law, G.711 A-law, Opus |
Authentication
Crew supports multiple SIP authentication methods: IP Allowlisting:Outbound Configuration
For outbound calls via your SIP trunk:Call Routing
Inbound Routing
Map inbound SIP calls to Crew agents:DID Routing
Route based on called number (DID):Network Configuration
Firewall Rules
Allow the following traffic:| Protocol | Port | Direction | Purpose |
|---|---|---|---|
| UDP | 5060 | Inbound/Outbound | SIP signaling |
| TCP | 5060 | Inbound/Outbound | SIP signaling |
| TLS | 5061 | Inbound/Outbound | Secure SIP |
| UDP | 10000-20000 | Inbound/Outbound | RTP media |
Crew IP Ranges
For outbound calls from Crew, allow these IP ranges:Contact support@usecrew.ai for current IP ranges.
Codec Configuration
Supported Codecs
| Codec | Sample Rate | Bitrate | Quality |
|---|---|---|---|
| G.711 μ-law | 8kHz | 64 kbps | Standard |
| G.711 A-law | 8kHz | 64 kbps | Standard |
| Opus | 8-48kHz | 6-510 kbps | High |
Codec Priority
Configure codec preference:PBX Integration
Asterisk
Example Asterisk trunk configuration:FreePBX
Configure via FreePBX web interface:- Connectivity → Trunks → Add SIP Trunk
- Set outbound caller ID
- Configure PEER details with Crew SIP endpoint
- Create outbound route pointing to trunk
Cisco Unified CM
Configure SIP trunk in CUCM:- Device → Trunk → Add New
- Select SIP Trunk type
- Configure destination as
sip.usecrew.ai - Set up route pattern for Crew destinations
SIP Headers
Custom Headers
Pass custom data via SIP headers:RPID/PAI
Configure Remote Party ID or P-Asserted-Identity:Monitoring
SIP Registration Status
Check SIP trunk status:Call Quality Metrics
Monitor SIP call quality:Troubleshooting
Registration Failures
- Verify credentials are correct
- Check firewall allows SIP traffic
- Ensure DNS resolves properly
- Check for NAT traversal issues
One-Way Audio
- Verify RTP ports are open
- Check for NAT/firewall blocking
- Ensure symmetric RTP if required
- Verify codec negotiation
Call Quality Issues
- Check network latency and jitter
- Verify sufficient bandwidth
- Test codec compatibility
- Review QoS settings
Best Practices
Use TLS for signaling
Use TLS for signaling
Encrypt SIP signaling with TLS for security.
Enable SRTP for media
Enable SRTP for media
Use SRTP to encrypt voice traffic when possible.
Implement QoS
Implement QoS
Prioritize SIP/RTP traffic on your network.
Monitor call quality
Monitor call quality
Track MOS scores and address degradation promptly.
Plan for failover
Plan for failover
Configure backup SIP trunks for redundancy.
Next Steps
- Twilio Integration — Cloud-based alternative
- Call Routing — Configure call flows
- Security Overview — Secure your deployment