This message was deleted.
# ask-ai
s
This message was deleted.
t
Thanks for reaching out, Mario. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
p
ignore
t
I'm sorry to hear you're running into the error
TwirpError(code=permission_denied, message=twirp error unknown: sip status 403: Forbidden)
. This usually happens for a couple of common reasons, so let's walk through them together: • Authentication or Permission Issues: It’s a good idea to double-check that the username (
auth_username
) and password (
auth_password
) you’re using for your SIP trunk exactly match what your SIP provider has on file. Also, please make sure the outbound address in your trunk configuration is set correctly. • Regional Compliance Requirements: Sometimes, calls need to stay within certain national borders depending on your region. To help with this, you can use region pinning by setting up region-based endpoints for inbound calls or by specifying the
destination_country
parameter for your outbound trunks. It can also be really helpful to look at the error’s metadata, like
sip_status_code
and
sip_status
, for more clues about what’s going on. If you’re still stuck, double-check that your SIP trunk ID and dispatch rule configurations are accurate and active. Also, consider any restrictions your SIP provider might have, such as IP allowlisting or required features like SIP REFER. Please feel free to reach out if you want to go over any of these steps together—I’m here to help! Sources: Docs::Telephony | SIP troubleshooting guide | LiveKit Docs | livekit/livekit_agent_dispatch.twirp.go | protocol/unity_proto/UnityAPI.twirp.go | Agents telephony integration | LiveKit Docs