In an sip call based agent, I get caller number as...
# ask-ai
f
In an sip call based agent, I get caller number as participant. How do I get the number that's being called?
g
To determine the number being called in a SIP call-based agent, you can use the SIP participant's attributes. According to LiveKit documentation, the
sip.trunkPhoneNumber
attribute provides the phone number associated with the SIP trunk, which is the number being called. Additionally, the
sip.phoneNumber
attribute represents the caller's number. Would you like more details on how to access these attributes in your application? Sources: - https://livekit-users.slack.com/archives/C07FY8WHGPM/p1733245440.370219 - https://docs.livekit.io/sip/dispatch-rule/ 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.