Create a gateway that uses the internal dialplan

chopsywa

New Member
Sep 23, 2024
6
1
3
63
I have a IP PBX behind my FusionPBX (FreePBX). I want the Fusion PBX to treat this IP-PBX as internal, so when calls come from the second PBX, they behave the same as calls made from extensions. I.E. They route out through our external gateway and allow intercom functionality between the two PBXs. I can't see to find any way to make this work. No matter what I put in the context of the gateway incoming calls from the second PBX fail as they are trying to use the public dialplan as shown in the log.

2024-10-14 18:21:21.693156 94.63% [INFO] mod_dialplan_xml.c:639 Processing Mark Dutton <501>->101 in context public

Is this not doable? it seems like a straightforward config and I have done it many times in other switches.

Outbound routing to the other PBX is a piece of cake and working fine.

Cheers
 

chopsywa

New Member
Sep 23, 2024
6
1
3
63
I haven't tried this. I suspect it might work, but it is very inelegant. It would also require me to create two sip trunks on the remote PBX as I couldn't route multiple extension outbound through a single extension.
 

chopsywa

New Member
Sep 23, 2024
6
1
3
63
I have found a partial answer. I can create a user bridge, but this only allows the remote pbx to call user extensions, not groups etc.

I am sure I could write manual diaplan rules to get it to work (maybe), but if the trunk could be deemed internal instead of public, then it would simply be connected to the internal dialplan. is there a funky way to configure a bridge so it simply connects to $1 in the internal dialplan? Profile and loopback do nothing useful that I can see, so that leaves gateway and user. Gateway is obviously for routing back out again, so that leave only user so far as I can see.
 

ad5ou

Active Member
Jun 12, 2018
890
203
43
It's been a long time since I've had to build a trunk to another PBX, but the general answer is to have the other pbx connect to Fusionpbx as an extension as well as custom bridge entry to route calls to the other pbx.

See the following post on how I connected our fusionpbx to an old Grandstream UCM. Shouldn't be a huge leap to setup similar options in a freepbx dial plan.