Call Routing & Setup
Pointing Your Inbound Number
Configure your telephony platform (e.g. BroadSoft BroadWorks) to route the inbound number to the SquawkVoice SIP domain:Custom SIP Header — Agent Mapping
To authenticate and map the call to the correct AI Agent, your platform must inject a custom SIP header into the SIPINVITE message:
| Header | Value |
|---|---|
| Name | X-SIP-AssistantId |
| Value | The Agent ID from SquawkVoice Studio (e.g. 49fc2f4f-0754-4521-a6c1-66912a06d1ae) |
You can find your Agent ID in the SquawkVoice Studio under the agent’s settings page.
SBC IP Whitelisting
Before your platform can send inbound calls to SquawkVoice, your SBC (Session Border Controller) IP address must be whitelisted on the SquawkVoice SIP domain. This ensures that only authorised traffic is accepted.Provide Your SBC IP
Share the public IP address of your SBC with the SquawkVoice team. This is the IP from which your SIP
INVITE requests will originate.SquawkVoice Whitelists the IP
Our team will add your SBC IP to the access control list (ACL) on the SIP domain. You will be notified once the whitelisting is complete.
Security
SquawkVoice enforces encrypted signaling and media on its SIP domain:| Protocol | Purpose |
|---|---|
| TLS | Encrypts SIP signaling |
| SRTP | Encrypts voice media (RTP) |
sips: URI to connect successfully.
Call Transfer (SIP REFER)
SquawkVoice uses SIPREFER to transfer calls — for example, when a caller requests escalation to a human agent. Once the REFER is processed, SquawkVoice drops out of the signaling path entirely.
Key Requirements
Accept SIP REFER without Digest Auth
Your platform must accept SIP
REFER from the Twilio SIP domain without requiring Digest authentication. Twilio does not retry a mid-dialog REFER with an Authorization header.Transfer Destination Options
SquawkVoice supports three ways to define where a call should be transferred:1. Static Value
Enter a fixed SIP URI or phone number directly. Every transfer from this agent will always go to the same destination.Use a static destination when all transfers should route to a single, known endpoint — for example, a contact centre SBC.
2. Variable-Based Destination
Use a{{variable}} to dynamically resolve the transfer destination at runtime. The variable value can be populated via a Pre-Call Action (e.g. a directory lookup) or a During-Call Action (e.g. an API call that returns the right department SIP URI).
3. AI-Resolved Destination
Use the special variable{{interaction.TRANSFER_DESTINATION}} to let the AI Agent automatically determine the transfer destination based on the context of the conversation and the outputs of During-Call Actions.
The AI-resolved option is ideal when your agent handles multiple transfer scenarios and you want the AI to intelligently route based on the conversation flow rather than hardcoding every possible destination.
Firewall Rules
To allow SIP signaling and media traffic from SquawkVoice, add the following rules to your firewall. The IP ranges below correspond to the Twilio North America — Virginia gateway region.SIP Signaling
| CIDR | Port | Protocol |
|---|---|---|
54.172.60.0/30 | 5060 | UDP / TCP |
54.172.60.0/30 | 5061 | TLS (secure SIP) |
RTP Media
| CIDR | Port Range | Protocol |
|---|---|---|
168.86.128.0/18 | 10000 – 60000 | UDP |
These IP ranges are specific to Twilio’s North America Virginia region. If your deployment uses a different region, consult the Twilio IP address documentation for the correct ranges.
Example: BroadSoft BroadWorks Configuration
Below is a summary of a complete SIP integration between BroadSoft BroadWorks and SquawkVoice:| Setting | Value |
|---|---|
| SIP Domain | ai-agent-studio.sip.twilio.com |
| Custom Header | X-SIP-AssistantId: 49fc2f4f-0754-4521-a6c1-66912a06d1ae |
| Transport | TLS + SRTP (sips: URI) |
| REFER Destination (Escalation) | Any valid SIP URI reachable from your telephony platform |
| SIP Signaling IPs | 54.172.60.0/30 — ports 5060 (UDP/TCP), 5061 (TLS) |
| RTP Media IPs | 168.86.128.0/18 — ports 10000–60000 (UDP) |
Need Help?
If you have questions about SIP integration or need assistance configuring your telephony platform, reach out to our team:- Email: support@squawkvoice.ai
- Documentation: Explore the guides in the sidebar for more platform details