I have a client who has 3 different business on the same Freepbx 17 system. I need to create a custom dial plan so that the call is routed to the local ring group of business 2 or 3.
Example Business 1 calls Business 2’s 11-10-digit number. Instead of calling out through the outbound route to my carrier and the carrier routes it back through the inbound route, I would prefer it’s routed directly to the ring group for Business 2. 704-555-1111 calls 704-555-2222 but it rings ring group 300.
Or, should I setup custom extension matching inbound DID 704-555-2222 and then route it to the ring group using Optional Destinations and set the ring group 300 there. (this seems to work in testing)
Do you have trunks going between each PBX to connect inter company calling? If so, you should be able to handle this with the outbound route for that trunk.
As I stated this is 1 client with 3 businesses on the same FreePBX17 server. I have Trunks established between the sip carrier and freepbx server. The outbound route will route all calls to the sip carrier and then the sip carrier returns the call back to the same freepbx server. I setup custom ext’s matching the inbound DID’s and that is working. If the ext of Business 1 calls DID of Business 2, the custom ext grabs the call and routes it to the ring group of Business 2.
My apologies, somehow I missed that it was the same server even though it was one of the first things you said. The route you are taking by creating custom extensions sounds like a good plan to me. Others may be able to chime in with different solutions as well though.
If all you’re trying to do ‘special’ is bypass the carrier on calls to your own DIDs, see
After creating the loopback trunk, set an Outbound Route after your emergency routes but before your regular routes, which matches all your DIDs and routes to the loopback trunk.
This will show the caller’s external number as caller ID, while the Custom Extension scheme will show the caller’s extension number.