melodic-vegetable-78787
02/24/2025, 3:30 PMgray-monkey-83525
02/24/2025, 3:30 PMsip.phoneNumber
and sip.callStatus
that can be used to identify the caller and the call details. You can access these attributes in your application to log the necessary information.
Would you like more detailed guidance on implementing these solutions?
Sources:
- LiveKit documentation
- LiveKit SIP documentation 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.melodic-vegetable-78787
02/24/2025, 3:55 PMgray-monkey-83525
02/24/2025, 3:55 PMsip.trunkPhoneNumber
attribute in the participant's attributes will contain the caller's phone number. This attribute is accessible once the SIP participant is created and the call is initiated.
Here's a brief example of how you might access this attribute in your application:
participant = await ctx.wait_for_participant()
caller_number = participant.attributes.get('sip.trunkPhoneNumber')
if caller_number:
print(f"Caller number: {caller_number}")
else:
print("Caller number not found.")
This code waits for a participant to join and then retrieves the caller's phone number from the participant's attributes.
Would you like more detailed guidance on this process?
Sources:
- LiveKit SIP documentation 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.