when I run this command `lk sip outbound create ou...
# ask-ai
c
when I run this command
lk sip outbound create outbound-trunk.json
i am getting following error
api-key is required
g
The error message "api-key is required" indicates that the LiveKit CLI is unable to find the necessary API key to authenticate your request. To resolve this, ensure that you have set the environment variables for your LiveKit API key and secret. You can do this by exporting them in your terminal session before running the command. Here's how you can set them:
Copy code
export LIVEKIT_API_KEY=<your_api_key>
export LIVEKIT_API_SECRET=<your_api_secret>
Make sure to replace
<your_api_key>
and
<your_api_secret>
with your actual LiveKit API key and secret. If you are using a configuration file or a
.env
file, ensure that these variables are correctly set there as well. Would you like more detailed instructions on setting up environment variables or troubleshooting this issue further? Sources: - Making calls using SIP - CLI Setup 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.
c
@millions-hair-24956 I ran this command
lk sip participant create sip-participant.json
but didn't receive any call
g
If you are not receiving calls after running the
lk sip participant create sip-participant.json
command, there could be several reasons for this issue. Here are a few things to check: 1. SIP Trunk Configuration: Ensure that your SIP trunk is correctly configured and registered with LiveKit. Verify that the trunk ID used in your
sip-participant.json
file is correct and matches the one created during the trunk setup. 2. Authentication: Check that the authentication details (username and password) for your SIP trunk are correctly set up and match those required by your SIP provider. 3. Twilio or SIP Provider Logs: Review the logs on your SIP provider's side (e.g., Twilio) to see if there are any errors or issues with the call setup. This can provide insights into whether the call request is reaching the provider and if there are any authentication or configuration issues. 4. Network and Firewall Settings: Ensure that your network and firewall settings allow SIP traffic. Ports used by SIP (typically 5060 for signaling and a range for RTP media) should be open. 5. Trial Account Limitations: If you are using a trial account with your SIP provider, there might be limitations on the types of calls you can make or receive. Would you like more detailed troubleshooting steps or assistance with a specific part of the setup? Sources: - Making calls using SIP - Slack Discussion on SIP Issues 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.