quiet-sandwich-33115
09/06/2025, 11:49 AMtall-airline-16756
09/06/2025, 11:49 AMtall-airline-16756
09/06/2025, 11:49 AMlk sip outbound create outbound-trunk.json
3. Configure the voice agent: Make sure your agent is set up to use that SIP trunk. If you’re using Python, the outbound caller template is your friend:
lk app create --template=outbound-caller-python
For Node.js, you can grab the node-agents-examples repository and set it up from there.
4. Dispatch the agent: Finally, use the LiveKit CLI to dispatch your agent and kick off the call:
lk dispatch create \
--new-room \
--agent-name outbound-caller \
--metadata '{"phone_number": "+1234567890"}'
Just double-check that your SIP trunk is properly configured and your agent has all the right environment variables set. If the call still doesn’t ring, no worries—take another look at your SIP trunk setup and peek at the agent logs for any hiccups.
Sources: Making outbound calls | LiveKit Docs | Example Applications | livekit/livekit_composite | DeepWiki | Making calls using SIP | LiveKit Docs | agent.py | packages/sip--make-a-call/package.jsonquiet-sandwich-33115
09/06/2025, 12:10 PMtall-airline-16756
09/06/2025, 12:10 PMquiet-sandwich-33115
09/06/2025, 12:40 PMtall-airline-16756
09/06/2025, 12:40 PMwait_until_answered option, confirm the timeout is long enough (the default is 30 seconds, or 80 seconds if wait_until_answered is true).
3. Dig into the Error Details: Take a peek at the metadata in the error response for SIP-specific info like sip_status_code and sip_status. These little clues can shed more light on what’s going wrong.
4. Check Your Logs: Have a look at your LiveKit server logs for detailed info. Search for call IDs, room names, and trunk IDs to trace what’s happening with the SIP call.
5. Make Sure Your SIP Server Is Ready: Confirm that your LiveKit server is all set and properly connected for SIP services. Sometimes, if it’s not ready, errors like this can pop up.
If you’re still stuck after trying these, please share your specific SIP trunk setup and any extra logs you have. I’m here to help you get this sorted out!
Sources: pkg/service/sip.go | cmd/lk/sip.go | agent.py | LiveKit | livekit/livekit_sip.pb.go