I have a pair of FreePBX servers that act as call routers between PSTN SIP trunks and several other FreePBX servers.
I treat all the trunks as from-trunk and route the calls via Inbound Routes with trunks as the destination.
One of the issues I’ve found is that I can’t have a secondary destination (as I can with Outbound Routes). This can be a problem if the PSTN connection is full. I need a way to either route to an outbound route with multiple destinations or better yet have multiple destinations on the Inbound Route.
I have considered treating the calls from the other FreePBX servers as from-internal but I’d have to duplicate the tables in the Outbound Routes.
Several people here, including @dicko have some familiarity with this particular solution set. He, specifically, has some experience based recommendations.
The only workaround I have used for this situation and I think would accomplish you goal is as follows.
The incoming route needs to go to a ring group “MyNewRignGroup” instead of to a Trunk destination
The Ring Group can contain your multiple destinations including external destinations.
The Outbound route would then be triggered based on the dial pattern that you have in the ring group.
***Note that as expected based on the incoming call to your “call router boxes” being sent back out as as Outbound call you will get 2 rows in CDR etc. 1 as the inbound call and one as the outbound call.
I’m thinking the easiest thing to do since I’m pretty heavily invested in this already is to simply change the SIP trunk contexts from my pbx boxes to from-internal and duplicate the dial patterns in the Outbound Routes.
@dicko forgive my use of PSTN as it was the wrong acronym. My SIP trunks come from the same provider as our POTS and PRI circuits so I was using the term generically.
So I duplicated the dial patterns in outbound routes and changed the trunks from my PBX servers to from-internal and it works just fine. Should have just done that from the beginning.