All outbound calls are going through only one gateway

eman

New Member
Jan 9, 2024
20
0
1
26
In FusionPBX, I have created multiple outbound gateways (for example, 4 gateways). I also have multiple extensions, and I want each extension’s outbound calls to use a specific gateway.

However, right now all outbound calls are going through only one gateway, even though:
  • I have created multiple gateways.
  • I have set Caller ID / External ID on extensions.
  • I expected calls to route out based on the extension or Caller ID.

So my main issue is:
How can I configure FusionPBX so that each extension uses its own specific outbound gateway, instead of all calls going through the same one?
 
If you can start by posting us details of the outbound routes someone may be able to help.
I will try and send the outbound routes....

I have 4 extensions and 4 outbound gateways in FusionPBX. I have set up dialplan rules so that each extension should call out using its assigned gateway. I have also set the “order” for all gateways to the same value. However, calls from all extensions continue to go out through the first gateway alphabetically in the dial plan manager, even though I have configured each extension to use a specific gateway. Why is FusionPBX choosing the first gateway alphabetically instead of the one I assigned, and how can I make it respect the specific gateway per extension?
 
It will be working as expected, you have probably got a mistake in there somewhere hence the request for the dialplan setup.
 
It will be working as expected, you have probably got a mistake in there somewhere hence the request for the dialplan setupScreenshot 2025-09-09 114324.pngso even when i have the order the same for all of them it stills calls from the first gateway it sees in the dialplan
 
None of that is relevant, post what you have in each individual outbound route
I have created a dialplan for an extension (e.g., 101) so that it calls out through a specific gateway. I also have a dial plan for the gateway itself. I want the extension to use that gateway automatically when making outbound calls. I have attached the XML for one of the gateways and the dialplan for one of the extensionScreenshot 2025-09-09 115532.png i have created too.
 

Attachments

  • Screenshot 2025-09-09 115937.png
    Screenshot 2025-09-09 115937.png
    19.6 KB · Views: 3
  • Screenshot 2025-09-09 115911.png
    Screenshot 2025-09-09 115911.png
    49.6 KB · Views: 3
  • Screenshot 2025-09-09 115509.png
    Screenshot 2025-09-09 115509.png
    50.9 KB · Views: 3
So, if the order is 21 for the extension, it is probably ignored. You don't want a dialplan for the extension, you want an outbound route and modify the order of your outbound route so that the specific extension route comes before the generic outbound routes. You may also want to rename the extension outbound routes as you may already have an extension number of 101 etc, call them route_101 or something.
 
So, if the order is 21 for the extension, it is probably ignored. You don't want a dialplan for the extension, you want an outbound route and modify the order of your outbound route so that the specific extension route comes before the generic outbound routes. You may also want to rename the extension outbound routes as you may already have an extension number of 101 etc, call them route_101 or something.
STILL having the same issue of calls going through the first gateway it hits
 
Have you removed the old routes?

Also pastebin a log from fs_cli, you should be able to see it evaluating the dialplan
 
Your outbound routes look wrong. When you create a new outbound route an order 22 for setting direction = outbound early enough is important. Do not bridge in the order 22 outbound route. In the order 100 (or roughly 100) that is where you are bridging. Edit the order 100 to include an additional condition between user exist = and destination = for either caller id number =, call group =, account code =. These variables are easily managed on the extension. I would recommend deleting all of the order 22 and 100 outbound routes and starting afresh.