Hi everyone! I'm developing an application with ...
# agents
e
Hi everyone! I'm developing an application with multiple agent personas, each assigned its own phone number. I decided to create a single LiveKit agent and retrieve the agent data based on the phone number receiving the call, or by using metadata. However, I'm having trouble configuring my inbound trunk to accept calls directed to any phone number. I've seen other threads suggesting the use of wildcards in the trunk number configuration, but it seems that this is no longer supported. Does anyone have suggestions on how to achieve this without having to manually add every single number to the SIP configuration?
h
@early-boots-90383 Can you share how you’re collecting the phone number in the agent to fetch the persona file?
e
You can do something like this for inbound calls:
Copy code
participant = await ctx.wait_for_participant()
participant_number = participant.attributes["sip.phoneNumber"]
agent_number = participant.attributes["sip.trunkPhoneNumber"]
h
Thank you 🙏 @early-boots-90383