FreePBX outbound call routing
-
I have a scenario where a FreePBX system has 2 separate groups of users. Inbound calls are fine and routed to the appropriate persons (ring group) by the incoming DID. There is a separate voip.ms trunk for each of the user groups. My issue - I cannot figure out how to route each group out of a separate trunk for outbound calls. The main reason for this is so that if a person calls out from group A it will show the appropriate CID. Think of it as 2 separate companies utilizing the same phone system but wanting to keep inbound and outbound calls separate. Also, this is a small system. We are talking about less than 30 users total on the entire system. I know this should be simple and a basic task for FreePBX but I may be overlooking something.
-
Have you looked at this:
https://community.freepbx.org/t/multiple-outbound-routes-trunks/25091/13 -
Also, there is a module for outbound routes as well:
https://wiki.freepbx.org/display/FPG/Outbound+Routes+Module+User+Guide
-
Here's how I do it.
On the Outbound call routes tab, Dial patterns, the last field is a match to the phone's extension. I put all users into a similar extension range, in this case all ext that start with 11 go out this trunk. -
Also - you shouldn't need two different SIP trunks to have two different outgoing CIDs. you can make multiple outgoing routes, all using the same SIP trunk, just with different CIDs and assign them based on ext like I did.
-
@dashrender The reason for the separate trunks is for separate billing for phone service. Granted it is a minimal amount, they still argue over who is paying for what. It is comical to me because they did not split the cost of the phones and the system itself.
-
@brandon220 said in FreePBX outbound call routing:
@dashrender The reason for the separate trunks is for separate billing for phone service. Granted it is a minimal amount, they still argue over who is paying for what. It is comical to me because they did not split the cost of the phones and the system itself.
Doesn't your ITSP have the ability to show # of minutes from each trunk?
-
@dashrender This might be the easiest. They only have 2-digit extensions. of the 30 extensions, only 4 or 5 would need alternate routes. I'm still pondering this method.
-
@brandon220 said in FreePBX outbound call routing:
@dashrender The reason for the separate trunks is for separate billing for phone service. Granted it is a minimal amount, they still argue over who is paying for what. It is comical to me because they did not split the cost of the phones and the system itself.
I am totally with you on this argument. I have a client with 4 locations and I have 4 SIP trunks so they can bill everything to the appropriate cost center easily.
-
@ccwtech said in FreePBX outbound call routing:
@brandon220 said in FreePBX outbound call routing:
@dashrender The reason for the separate trunks is for separate billing for phone service. Granted it is a minimal amount, they still argue over who is paying for what. It is comical to me because they did not split the cost of the phones and the system itself.
Doesn't your ITSP have the ability to show # of minutes from each trunk?
The point would be to only have 1 trunk.
-
@brandon220 said in FreePBX outbound call routing:
@dashrender This might be the easiest. They only have 2-digit extensions. of the 30 extensions, only 4 or 5 would need alternate routes. I'm still pondering this method.
Not the easiest, but the proper option. This is how it is designed to work.
-
@jaredbusch Now I just have to sit down and figure out how to set it up so that it works correctly. So far, they love everything about the system compared to what they had before. The best is how much the phone bills went down. I still have a couple numbers to port over.
-
@Dashrender Lets say my extensions that will use the special route are 60 through 65 - would my dial pattern start with the extension number? That is what I'm guessing by the image you posted above. I do not use codes to grab an "outside line" like dialing 9 then the number. They have however learned to follow the number with # so the call goes out faster.
-
@brandon220 said in FreePBX outbound call routing:
@Dashrender Lets say my extensions that will use the special route are 60 through 65 - would my dial pattern start with the extension number? That is what I'm guessing by the image you posted above. I do not use codes to grab an "outside line" like dialing 9 then the number. They have however learned to follow the number with # so the call goes out faster.
The part that @Dashrender highlighted will hold this
6[0-5]
it has nothing to do with the dialpattern. -
@jaredbusch Ok. I have to figure out where to insert the extensions for the route.
-
@brandon220 said in FreePBX outbound call routing:
@jaredbusch Ok. I have to figure out where to insert the extensions for the route.
Huh?
You nmake a new outbound route. setup the normal pattern match, and then add the extension pattern in the final box. done.
Nothing to figure out.
If your extensions are not in a group, you need to either rearrange extensions to put them all together, or you have to duplicate the pattern match in the route for each extension.
-
I could be reading into this wrong.... Do I need to prepend the dialed number with a number to force the calls out a specific trunk?
-
@brandon220 said in FreePBX outbound call routing:
I could be reading into this wrong.... Do I need to prepend the dialed number with a number to force the calls out a specific trunk?
No. look at the screenshot again..
-
The extensions are not in a group.
-
@brandon220 said in FreePBX outbound call routing:
The extensions are not in a group.
K. screenshot inc...