im trying to connect sip trunk with a vendor, and ...
# ask-ai
c
im trying to connect sip trunk with a vendor, and this is what they are saying "Calls wont work until the number is registered Please initiate a registration request" how to register number for outbound call?
t
Thanks for reaching out, ZaidKaraymeh. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hey there! Ready to register a number for outbound SIP trunk calls? Just follow these simple steps, and you’ll be all set: 1. Create an Outbound Trunk Configuration File: Start by making a JSON file (let’s call it
outbound-trunk.json
) with this structure. Don’t forget to swap out the placeholders with your actual info: `{ "trunk": { "name": "My outbound trunk", "address": "<my-trunk>.pstn.twilio.com", "numbers": ["+15105550100"], "auth_username": "<username>", "auth_password": "<password>" } }`Here’s what to replace: ◦
<my-trunk>
— your trunk domain name. ◦
+15105550100
— the phone number you want to register. ◦
<username>
and
<password>
— your SIP provider’s login details. 1. Create the Outbound Trunk Using the CLI: Next, use the LiveKit CLI to create your outbound trunk by running: `lk sip outbound create outbound-trunk.json`You’ll get back a
SIPTrunkID
— keep this handy because you’ll need it to make calls. 2. Initiate an Outbound Call: Once your trunk is ready, you can start making calls! Create another JSON file (maybe
participant.json
) with this setup: `{ "sip_number": "+15105550100", "sip_trunk_id": "<your-trunk-id>", "sip_call_to": "+12135550100", "room_name": "open-room", "participant_identity": "sip-test", "participant_name": "Test call participant", "wait_until_answered": true }`Don’t forget to update: Then, kick off the call by running:
lk sip participant create participant.json
<your-trunk-id>
— with the trunk ID you got earlier. ◦
+15105550100
— your registered phone number. ◦
+12135550100
— the number you want to call. If you want to dive deeper or need more info, check out the LiveKit SIP Outbound Trunk Documentation. I’m here if you have any questions!
c
whats the link for agent
whats the link for documetnation agent online
t
Hey there! You can find all the info you need about the LiveKit SIP Outbound Trunk right here: LiveKit SIP Outbound Trunk Documentation. If you have any questions, feel free to ask!