tall-printer-41959
02/16/2025, 1:52 PMgray-monkey-83525
02/16/2025, 1:52 PMtall-printer-41959
02/16/2025, 2:26 PMgray-monkey-83525
02/16/2025, 2:26 PMoutbound-trunk.json
) with your phone number, trunk domain name, and authentication credentials (username and password). Then, register this trunk with LiveKit using the command:
lk sip outbound create outbound-trunk.json
This command will return a trunk ID, which you should note for later use.
3. Create a SIP Participant: To make an outbound call, create a SIP participant using the CreateSIPParticipant
API. You need to specify the trunk ID, the phone number to dial, and other participant details in a JSON file (e.g., sip-participant.json
):
{
"sip_trunk_id": "<your-trunk-id>",
"sip_call_to": "<phone-number-to-dial>",
"room_name": "my-sip-room",
"participant_identity": "sip-test",
"participant_name": "Test Caller"
}
Use the CLI to create the participant:
lk sip participant create sip-participant.json
Would you like more detailed instructions or troubleshooting tips?
Sources:
- Making calls using SIP | LiveKit Docs
- SIP outbound trunk | LiveKit Docs π 0 button π 0 button π‘ Hint: Mention @runllm in the thread for followups.tall-printer-41959
02/16/2025, 2:29 PMgray-monkey-83525
02/16/2025, 2:29 PMlk sip outbound list
This command will show all registered outbound trunks and their details.
3. Create SIP Participant: Ensure that the SIP participant is created with the correct trunk ID and phone number. The JSON file for the participant should include the correct sip_trunk_id
and sip_call_to
fields.
4. Monitor Call Status: After creating the SIP participant, monitor the call status using SIP participant attributes. The sip.callStatus
attribute should change to active
once the call is connected.
5. Check Logs: Review any logs from LiveKit and your SIP provider for errors or warnings that might indicate why the call is not being received.
If these steps do not resolve the issue, it might be helpful to capture SIP traffic using a tool like Wireshark to diagnose any network-related issues.
Would you like more detailed troubleshooting steps or assistance with a specific part of the setup?
Sources:
- Making calls using SIP | LiveKit Docs
- SIP participant | LiveKit Docs π 0 button π 0 button π‘ Hint: Mention @runllm in the thread for followups.