Why this error is happing ```{transferId: "STR_8px...
# ask-ai
w
Why this error is happing
Copy code
{transferId: "STR_8pxD2szV8tJw"
callId: "SCL_xJzP5UEqzYZH"
transferTo: "tel:+1236326326"
transferInitiatedAtNs: "1762386116979558706"
transferCompletedAtNs: "1762386178014486174"
transferStatus: "STS_TRANSFER_FAILED"
error: "call transfer failed: sip status: 480: Temporarily not available"
transferStatusCode: {code: "SIP_STATUS_TEMPORARILY_UNAVAILABLE"
status: "Temporarily not available"
}
}
t
Thanks for reaching out, Ahmed. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'm sorry you're encountering the error "call transfer failed: sip status: 480: Temporarily not available." This message means that the call transfer didn't go through because the destination endpoint (like a phone number or SIP URI) is temporarily unreachable or unable to take the call right now. Just to clarify, this error comes from the remote SIP provider or endpoint, not from LiveKit itself. Here are some common reasons why this might happen: • The destination number might be powered off, out of service, or not registered with the SIP provider. • The receiving device or service could be temporarily down or facing network issues. • The SIP trunk might not have the right routing or permissions to reach the destination. To help you get this sorted, you can try the following steps: 1. Double-check that the destination phone number or SIP URI is correct and currently active. 2. Make sure the SIP trunk is set up properly and has permission to transfer calls to the target number. 3. Verify that any necessary features, like SIP REFER, are enabled with your SIP provider. If you’re still having trouble after these steps, it might be a good idea to reach out to your SIP provider for more detailed logs or to see if there are any restrictions on their end. We're here to help you through this, so please don’t hesitate to ask if you need further assistance! Sources: livekit/livekit_sip.pb.go | Transferring calls | LiveKit Docs | SIP troubleshooting guide | LiveKit Docs
w
We’re using SIP TRUNK on Twilio, and the phone number rings as usual!
t
Thanks for sharing the details! Since you're using a Twilio SIP Trunk and the phone number rings as usual, it seems the issue might be happening during the call setup between Twilio and LiveKit. Let’s walk through some common causes and how we can work together to resolve them: 1. Agent Startup or Dispatch FailureIf the call rings but then ends with a 480 error, this could mean the LiveKit agent didn’t start properly or isn’t set up to handle the call. • First, please check that the agent is running and that the
agent_name
in your
WorkerOptions
is configured correctly. • Make sure your SIP Dispatch Rule is using the same
agent_name
to route the call. • It’s also helpful to look at the agent logs to confirm it’s receiving the call and trying to join. 2. Incorrect or Missing SIP CredentialsLet’s double-check your Twilio SIP credentials: • Have you created credentials in Twilio under SIP Credential Lists and linked them to your trunk? • Are these credentials correctly entered in LiveKit’s SIP trunk settings under
auth_username
and
auth_password
? • Using TCP transport (
;transport=tcp
) in the SIP URI can make the connection more reliable. 3. LiveKit SIP Trunk MisconfigurationIt’s important to verify your LiveKit SIP trunk includes: • Your Twilio phone number in E.164 format. • Twilio’s public IP ranges listed in
allowed_addresses
. • The correct
auth_username
and
auth_password
that match Twilio’s credentials. 4. Region or Compliance RestrictionsSometimes region settings can cause hiccups. Please ensure both Twilio and LiveKit are set to the same geographic region if compliance is needed. Using a region-pinned endpoint in your Twilio origination URL helps with this. Next Steps 1. Take a look at the agent logs for any errors during room connection or dispatch. 2. Double-check your SIP Dispatch Rule configuration. 3. Review Twilio’s SIP Trunking Debugger for detailed logs. If you’d like, I’m here to help you validate your dispatch rule or agent configuration—just let me know! Sources: protobufs/livekit_sip.proto | SIP troubleshooting guide | LiveKit Docs | packages/sip--um-actually/README.md | README.md | Create and configure a Twilio SIP trunk | LiveKit Docs