how can i get the call control id when I make an ...
# ask-ai
w
how can i get the call control id when I make an outbound call using telnyx
t
Thanks for reaching out, Drew. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'm happy to help you get the call control ID or similar identifiers when making an outbound call using Telnyx with LiveKit. Here’s a simple way to do it: • Start by using the
CreateSIPParticipant
API to initiate your call. • Then, you can retrieve the SIP participant's details through participant management commands like
ListParticipants
. Here are some useful identifiers you can use to track your calls: • sip.telnyx.callLegID: This is the Telnyx call leg ID. • sip.telnyx.callSessionID: This represents the Telnyx call session ID. • sip.callIDFull: A globally unique SIP Call-ID from Telnyx, which is great for tracing calls end-to-end. If you’re looking specifically for the Telnyx
call_control_id
, it’s not directly available in LiveKit. A good approach would be to enable Telnyx webhooks to receive it straight from Telnyx, or check if it’s included in the SIP headers during call setup. Sources: Make outbound calls | LiveKit Docs | packages/sip--make-a-call/README.md | pkg/sip/participant.go | SIP participant | LiveKit Docs