My question is while using freepbx, but I think it is a basic for Asterisk too.
I have troubles to figure out the right concept for my situation:
I want to build a server for multiple groups of people, each group having its own trunk/ or even trunk provider.
And there must be a way to do emergency calls, too.
Now the problem is: Am I on the right path?
I think for separating extensions to their own trunks, I need to setup A LOT of dial patterns, with lots of duplicates to sort out the outbound caller, so it gives the call to the right trunk. Right? Same must be with emergency numbers. It’s like every pattern multiplied with the amount of outbound CIDs? To grab each.
Or is there cleaner way? Like chaining outbound routes or something?