melodic-hamburger-67426
08/11/2025, 5:50 AMtall-airline-16756
08/11/2025, 5:50 AMtall-airline-16756
08/11/2025, 5:50 AMsip.trunkPhoneNumber
attribute. This little gem holds the number that the end user dialed for inbound trunks.
Here’s how you can grab that info from the SIP participant's attributes:
receiving_number = participant.attributes['sip.trunkPhoneNumber']
And just like that, you’ll have the phone number tied to the SIP trunk that’s receiving the inbound call. Hope that helps!
Sources: SIP participant | LiveKit Docs