I recieved a 403 forbidden response whenever tryin...
# ask-ai
w
I recieved a 403 forbidden response whenever trying to make a SIP participant, why is that?
t
Thanks for reaching out, Arthur. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
w
Also, I am using Twilio for the SIP provider
t
Hey there! To get Twilio working as your SIP provider with LiveKit, here are a few steps to follow: 1. Set Up Twilio SIP Trunk: ◦ Create a SIP trunk in Twilio and grab the trunk SID. ◦ Set the origination URI to your LiveKit SIP URI (something like
sip:<your_livekit_sip_uri>
). ◦ Link your Twilio phone number to the SIP trunk. 1. Configure LiveKit: ◦ Create an inbound trunk in LiveKit using your Twilio SIP credentials (username and password). ◦ Set up a dispatch rule so inbound calls go to a LiveKit room. If you’re still seeing that 403 Forbidden error, here are a few things to double-check: • Make sure your Twilio SIP trunk is set up right and connected to LiveKit. • Check that the API key and secret in LiveKit have the right SIP permissions. • Confirm the SIP trunk ID and credentials match perfectly between Twilio and LiveKit. If you want, I’m here to help you walk through any of these steps or troubleshoot further. Just let me know! Sources: src/setup-livekit.ts | packages/sip--um-actually/src/setup-livekit.ts | Inbound calls with Twilio Voice | LiveKit Docs | Create and configure a Twilio SIP trunk | LiveKit Docs | Create and configure a Twilio SIP trunk | LiveKit Docs
w
How can I check the SIP permissions?
t
Hey there! To make sure your SIP permissions are all set in LiveKit, you’ll want to double-check that the API key and secret you’re using include the right SIP grants. These are super important for creating SIP participants and managing SIP calls smoothly. Here’s a friendly little guide to help you verify and set up those SIP permissions: 1. Take a look at your API Key Configuration: Make sure the API key and secret in your app have SIP call permissions enabled. This usually happens when you generate the API key on your LiveKit server. 2. Check those SIP Grants: Confirm that your API token actually includes the SIP grants. For example, in your server-side code, your token generation should look something like this:
Copy code
{
  "grants": {
    "video": {},
    "sip": {
      "call": true
    }
  }
}
If you want me to help you double-check or update your API key and permissions, just give me a shout—I’m here for you!