Has anyone created inbound agents, and knows how to capture caller phone_number for the same in dispatch metadata?
b
brave-island-45242
10/29/2025, 3:03 PM
Not sure if this answers your question but when the caller joins a room by making a phone call, aka they become a participant, they will have in their
attributes
field a
sip.phoneNumber
c
creamy-tiger-14805
10/30/2025, 9:53 AM
that I understood, but is there a way we can pass it in the job_metadata in the dispatch rule?
b
brave-island-45242
10/30/2025, 3:32 PM
If you are talking about the metadata field that is part of the dispatch rule options, then I don't think so. The dispatch rule gets created before any call is received. Otherwise we couldn't dispatch the caller to a livekit room. So, unless you know you are going to get calls only from one specific phone number you won't be able to put it in the dispatch rule beforehand.