Can we receive inbound calls from telephony provid...
# ask-ai
b
Can we receive inbound calls from telephony providers such as vonage? If so, how should we configure the SIP Trung and the dispatch rules?
t
Thanks for reaching out, Tarek-Asis. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
You can receive inbound calls from Vonage (and most SIP providers). Below are concise steps to configure the SIP trunk and dispatch rules in LiveKit. Acknowledgement: You asked about receiving inbound calls from Vonage and how to configure the SIP trunk and dispatch rules — here’s what to do. 1) Point your provider to LiveKit’s SIP endpoint • In your Vonage trunk configuration set the SIP destination to your LiveKit SIP endpoint (your project’s SIP URI; example:
bwwn08a2m4o.sip.livekit.cloud
). • If you require TLS, use
;transport=tls
or set the provider to use TLS on port 5061. 2) Create an inbound trunk in LiveKit • Create an inbound trunk that lists the phone numbers you want LiveKit to accept (or leave
numbers
empty and secure with
allowed_addresses
or credentials). • Example JSON for the trunk:
Copy code
{
  "name": "Vonage Inbound Trunk",
  "numbers": [
    "+15105550100"
  ],
  "krispEnabled": true
}
• You can create this via the LiveKit Cloud dashboard (Telephony → Configuration → Create new → Trunk) or with the CLI:
lk sip inbound create inbound-trunk.json
. 3) Configure authentication or filtering (optional but recommended) • If you want to restrict which providers or IPs can send calls, set
allowed_addresses
or enable `auth_username`/`auth_password`. • Note: some providers may not support SIP auth, so use IP/transport restrictions as needed. 4) Create a dispatch rule to route inbound calls to rooms/agents • Define a dispatch rule that maps incoming calls to LiveKit rooms or agent flows. For example, to create an individual room per call:
Copy code
{
  "name": "Inbound Call Rule",
  "rule": {
    "dispatchRuleIndividual": {
      "roomPrefix": "call-"
    }
  },
  "roomConfig": {
    "agents": [
      {
        "agentName": "my-telephony-agent"
      }
    ]
  }
}
• Create via Dashboard (Telephony → Configuration → Create new → Dispatch rule) or CLI:
lk sip dispatch create dispatch-rule.json
. 5) Extras and quality options • Enable
krispEnabled: true
on the inbound trunk to apply Krisp noise cancellation. • Use
allowedNumbers
or caller-based filters if you need to restrict incoming caller IDs. If you’d like, tell me: • the SIP endpoint you plan to use (or confirm you need the project SIP URI), • whether you want per-call rooms or a shared room/queue, • and whether you need TLS or IP-based filtering— and I’ll provide the exact JSON snippets or dashboard steps tailored to that setup. Sources: SIP overview | LiveKit docs | SIP trunk setup | LiveKit docs | Secure trunking | LiveKit docs | SIP inbound trunk | LiveKit docs | Agents telephony integration | LiveKit docs