To create a outbound sip trunk with ringover give ...
# ask-ai
a
To create a outbound sip trunk with ringover give commands to run from livekit cli and steps to use other sip server?
t
Thanks for reaching out, giri. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hey there! Ready to set up an outbound SIP trunk with Ringover using the LiveKit CLI? Just follow these simple steps: 1. Prepare the Configuration File: Start by creating a JSON file called
outbound-trunk.json
. Fill it out like this, swapping in your own SIP provider details:
Copy code
{
  "trunk": {
    "name": "My outbound trunk",
    "address": "sip.ringover.com",
    "numbers": [
      "+15105550100"
    ],
    "authUsername": "<your-username>",
    "authPassword": "<your-password>"
  }
}
2. Create the Trunk Using CLI: Next, run this command:
lk sip outbound create outbound-trunk.json
You’ll get back a
SIPTrunkID
, which you’ll use to manage your trunk. 3. Optional Tip: If you want to specify caller numbers dynamically when creating a SIP participant, just use
"numbers": ["*"]
in your config file. 4. Make an Outbound Call: Create a
participant.json
file like this: `{ "sip_number": "+15105550100", "sip_trunk_id": "<your-trunk-id>", "sip_call_to": "+12135550100", "room_name": "open-room", "participant_identity": "sip-test", "wait_until_answered": true }`Then run:
lk sip participant create participant.json
If you’re using a different SIP server, just tweak the
address
,
numbers
, and authentication fields in your config file to match your provider’s info. Make sure your phone numbers follow the E.164 format, and double-check that your SIP server accepts requests from LiveKit’s IP ranges. Sources: SIP outbound trunk | LiveKit Docs | Create and configure SIP trunk | LiveKit Docs | Making calls using SIP | LiveKit Docs | Making outbound calls | LiveKit Docs | SIP outbound trunk | LiveKit Docs