narrow-bird-26293
08/03/2025, 4:46 AM{
callId: "SCL_x5KtVEyJDeKG"
trunkId: "ST_auJvkMkP4Re4"
region: "ophoenix1b"
fromUri: {
user: "+1**********"
host: "10.24.8.14"
port: 50168
transport: "SIP_TRANSPORT_UDP"
}
toUri: {
user: "+1**********"
host: "x3ipaz73b35.sip.livekit.cloud"
port: 5060
transport: "SIP_TRANSPORT_UDP"
}
callDirection: "SCD_INBOUND"
callStatus: "SCS_ERROR"
createdAtNs: "1754194226270280157"
endedAtNs: "1754194226687692503"
error: "call was not authorized by trunk configuration"
}tall-airline-16756
08/03/2025, 4:46 AMtall-airline-16756
08/03/2025, 4:47 AMauth_username and auth_password in your SIP trunk match the credentials provided by the SIP client or provider.
• Allowed Addresses: If allowed_addresses is configured, ensure the source IP address of the call is included in the list. Update the list if necessary.
• Allowed Numbers: If allowed_numbers is configured, confirm that the caller's phone number is included. Update the list as needed.
• Dispatch Rules: Ensure there is a matching dispatch rule for the incoming call. If no rule matches, the call will be rejected.
• Trunk Configuration: Review the trunk settings, including address, destination_country, and transport, to ensure they are correct.
Additionally, check the SIP server logs for detailed error messages and ensure the SIP provider's server has the necessary permissions and firewall rules to communicate with LiveKit SIP.
If you need further assistance, please provide details about your trunk configuration and any additional error logs.
Sources: SIP APIs | LiveKit Docs | pkg/sip/inbound.gonarrow-bird-26293
08/03/2025, 5:16 AMtall-airline-16756
08/03/2025, 5:16 AMnarrow-bird-26293
08/03/2025, 5:16 AMtall-airline-16756
08/03/2025, 5:17 AMroomPrefix, roomName, and any optional pin. Also, double-check that the rule is linked to the right trunk IDs.
• SIP Trunk Configuration: Take another look at the authentication info (username/password), allowed addresses, and numbers. It’s important the trunk is enabled and properly connected to the phone numbers.
• Agent Implementation: Check that the agent is up and running, connected to the LiveKit room, and set to handle the dispatch rule’s room prefix or name. Also, confirm the agent can process incoming calls smoothly.
• Error Logs: Have a peek at the SIP client logs for any error codes or messages like callDropped or mediaFailed. It’s worth checking for codec compatibility or encryption hiccups too.
• RTP Configuration: Make sure RTP ports and IP addresses are properly configured and accessible, especially if NAT traversal is involved.
If you can share any details about your SIP trunk setup, agent configuration, or error logs, I’d be happy to help you dig deeper and find a solution.
Sources: src/setup-livekit.ts | pkg/sip/inbound.go | protobufs/livekit_sip.proto | Agents telephony integration | LiveKit Docs | Agents telephony integration | LiveKit Docsnarrow-bird-26293
08/03/2025, 5:18 AMtall-airline-16756
08/03/2025, 5:18 AMsip:username:password@x3ipaz73b35.sip.livekit.cloud;transport=tcp. Just swap out username and password with your actual login details.
• Don't forget to specify the transport protocol as transport=tcp.
• Double-check that your credentials match what you've set up in your LiveKit SIP trunk settings.
If you've already done all this and things still aren't working, no worries! Just confirm which transport protocol you're using and share any error logs you have. We're here to help you get this sorted out.narrow-bird-26293
08/03/2025, 5:20 AMtall-airline-16756
08/03/2025, 5:20 AM"allowedAddresses": ["0.0.0.0/0"] in your SIP trunk configuration means it’ll accept traffic from any IPv4 address. This can be really handy when you’re troubleshooting or need to accept traffic from multiple sources without fixed IPs.
That said, just a few things to keep in mind:
• Make sure your authentication (username/password) is set up properly to keep things secure and avoid unauthorized access.
• Double-check that your SIP client or server is configured with the right credentials and settings.
• Keep an eye on your logs for any connection attempts or authentication hiccups—these can help spot any issues early.
If you’re still running into problems, feel free to share more about your SIP client/server setup or any error logs you’re seeing. I’m here to help!narrow-bird-26293
08/03/2025, 5:34 AMtall-airline-16756
08/03/2025, 5:35 AM