Hello! What's the recommended pattern for routing ...
# telephony
s
Hello! What's the recommended pattern for routing calls from multiple phone numbers to different agents using a single Inbound SIP Trunk? Goal: • Call to
+1-555-0101
(from any number)->
Agent_A
• Call to
+1-555-0102
(from any number)->
Agent_B
• ...all on the same trunk. My understanding is that I can't create a separate dispatch rule for each number on the same trunk, because the rules would conflict. It seems the
inboundNumbers
field is an allowlist for the caller's number (
From
), not the number being called (
To
).
r
Create a trunk per agent where specific number is specified for that trunk. Each trunk will have it's own dispatch rule.
Or make a generic agent that loads the appropriate persona at the top of entrypoint based on the number. This can make it easier to scale
✅ 1
s
Thank you! My goal is to route calls from many different phone numbers to different agents all using a single Inbound SIP Trunk. So, is the recommended pattern to have one trunk with one dispatch rule that points to a single application? Within that application, would I then implement logic to inspect the
To
number from the incoming call?
e
Based on the to number you can load the agent persona I believe. This is what we are doing. Using one incoming trunk and dispatch rules and based on to number configuring the agent.
✅ 1
s
thank you! That solved our issue