steep-balloon-41261
09/09/2025, 6:28 PMtall-airline-16756
09/09/2025, 6:28 PMtall-airline-16756
09/09/2025, 6:28 PMearly-afternoon-97327
09/09/2025, 6:29 PMtall-airline-16756
09/09/2025, 6:30 PMoutbound-trunk.json with your trunk configuration. Here’s an example you can customize:
{
"trunk": {
"name": "My outbound trunk",
"address": "your.asterisk.server.ip.or.domain", // Replace with your Asterisk server's address
"numbers": ["+15105550100"], // Replace with your registered phone number
"authUsername": "your_sip_username", // Replace with your SIP username
"authPassword": "your_sip_password" // Replace with your SIP password
}
}
1. Next, run this CLI command to create the trunk:
lk sip outbound create outbound-trunk.json
After that, you’ll get a SIPTrunkID in the response, which you’ll use to make calls.
Method 2: Using the LiveKit Cloud Dashboard
1. Head over to the Telephony → Configuration page.
2. Click Create new → Trunk.
3. Choose Outbound for the Trunk direction.
4. Switch to the JSON editor tab and paste in your configuration like this: Sources: protobufs/livekit_sip.proto | Making calls using SIP | LiveKit Docs | SIP outbound trunk | LiveKit Docs | SIP trunk setup | LiveKit Docs | packages/livekit-server-sdk/src/SipClient.tsearly-afternoon-97327
09/10/2025, 6:55 AMtall-airline-16756
09/10/2025, 6:55 AMauth_username and auth_password in your SIP trunk setup exactly match what your Asterisk server expects. Sometimes even a small typo can cause these repeated failures.
2. Check the Outbound Trunk Address:
Make sure the address field contains the hostname or IP of your Asterisk server (like 54.283.65.68:5060). It’s best to avoid using a SIP URI format such as sip:54.283.65.68.
3. Review SIP Logs:
Take a look at the logs on your Asterisk server for messages like 401 Unauthorized or 403 Forbidden. These can give clues about authentication or permission issues.
4. Validate Configuration:
Make sure your trunk configuration includes all the necessary fields, such as name, address, numbers, and authentication details. Here’s an example for reference:
{
"trunk": {
"name": "My Outbound Trunk",
"address": "54.283.65.68:5060",
"numbers": [
"+15105550100"
],
"auth_username": "your_username",
"auth_password": "your_password"
}
}
5. Retry Connection:
Once you’ve made any needed corrections, please try connecting again to see if the issue is resolved.
If you run into any trouble or want me to walk you through any of these steps, just let me know—I’m here to help!
Sources: pkg/sip/outbound.go | SIP troubleshooting guide | LiveKit Docs | SIP APIs | LiveKit Docs | LLM Integrations | livekit/livekit_composite | DeepWikitall-airline-16756
09/15/2025, 9:23 AMtransport: "SIP_TRANSPORT_TLS" with the correct port, like 5061. The address should be pbx.operatorlabs.ai:5061, just as specified.
2. Check Authentication:
Make sure the authUsername and authPassword you’re using exactly match the credentials your Asterisk server expects. Authentication hiccups are often the root of connection troubles.
3. Enable Media Encryption:
If your Asterisk server supports SRTP, it’s a good idea to enable media encryption in your trunk settings. You can use "mediaEncryption": "SIP_MEDIA_ENCRYPT_ALLOW" or "SIP_MEDIA_ENCRYPT_REQUIRE" if encryption is a must.
4. Firewall and Certificates:
Please check that your firewall lets traffic through on port 5061 and that your TLS certificates are valid and properly set up. Sometimes invalid certificates or missing server names can block the TLS handshake.
5. Review Logs:
Take a look at the logs on both LiveKit and your Asterisk server for any errors like 403 Forbidden or 401 Unauthorized. These messages can give us clues about authentication or permission issues.
If you have any questions or need more help, I’m here for you—just let me know!
Sources: SIP troubleshooting guide | LiveKit Docs | server_integration_test.go | livekit-protocol/livekit/protocol/sip.py | Secure trunking | LiveKit Docsearly-afternoon-97327
09/15/2025, 9:47 AM