automatic trunk selection

binary_dreamer
Posts: 12
Member Since:
2009-09-14

hi.
in my office we do have a lot of mobile calls in different providers.
on the trixbox i do have three gsm gateways (gsm1, gsm2, gsm3) and when you would like to place a call through gsm 1 you have to dial 1 and then the number, for gsm 2 it is 2 and the number, respectively for gsm 3.
there are some people that do not know which gsm to use and then the monthly bill reaches shy high.
note that there is no pattern to diffetentiate the different mobile providers due to the fact of portabilty of the numbers between the carriers.

i would like to build a table of numbers (max 20) that will be something:
69123456 use gsm 1
69234567 use gsm 2
69125677 use gsm 3
.
.
.

is there a way to have something like that so i could save thousands every month in mobile calls?



stanjohn
Posts: 73
Member Since:
2011-01-06
Just add a out bound route

Just add a out bound route for each number the dial pattern would be the number .

Stanley



binary_dreamer
Posts: 12
Member Since:
2009-09-14
hi. thanks for the quick

hi. thanks for the quick reply.
this is what i thought but what about the rest of the mobile numbers that is not on the outbound routes?
for example i will have a route
69123456789 to use gsm 1, what about a number that is not in the routes and i would like to use it simply by making a call through gsm 1 manually by pressing the preffix 1. will that work?



stanjohn
Posts: 73
Member Since:
2011-01-06
Other numbers will not match

Other numbers will not match the dial plan and will continue to the next plan in the list, so your special numbers will be at the top of your list of routes and if you dial a number that is not one of the special numbers that will not match till it gets to the general dial plan route with N and X s.

You would have your catch all / general out bound routes last like "NXXNXXXXXX" or even "."

If you want them to dial the one put that in the dial plan "169123456789" trunk gsm1 you would also select other trunks if the preferred is in use, again the ones on the top are used first.

Stanley



stanjohn
Posts: 73
Member Since:
2011-01-06
Read your post again and yes

Read your post again and yes you can but I'm not sure why you want them to make that choice. You should design your dial plan so even if the user makes a mistake the call is routed correct.

Stanley



SkykingOH
Posts: 9681
Member Since:
2007-12-17
In each outbound route make

In each outbound route make a generic rule for the dial 1,2,3 etc. The make another route for each gateway that contains all the numbers. You can maintain them in a spreadsheet and then cut and paste them into the route.

Use the little "feather" arrows to move the bypass (specific numbers) routes to the top of the list.

Always order routes from most specific to least specific.

--

Scott

aka "Skyking"



binary_dreamer
Posts: 12
Member Since:
2009-09-14
to summarise i will

to summarise i will need
-gsm 1 to have the prefix 1 and the following numbers
691234567
697834567
694434567
693234567
-gsm 2 to have the prefix 2 and the following numbers
691276567
697890567
694943567
693034567
-gsm 3 to have the prefix 2 and the following numbers
693076567
651890567
697243567
699934567
-ISDN to have no prefix and route all numbers with no prefix to route all the rest of the mobiles and the other numbers.
how will i make the outbound routes?



SkykingOH
Posts: 9681
Member Since:
2007-12-17
I fully answered your

I fully answered your question. Do you not know how to construct an outbound route? You can have thousands of entries in the digit box. Hover over the label for a tool tip on syntax.

--

Scott

aka "Skyking"



binary_dreamer
Posts: 12
Member Since:
2009-09-14
hi. thanks a lot for the

hi. thanks a lot for the quick reply.
all i am saying is that i will create a trunk for each of the 30 mobile numbers.
what if someone calls a numbers outside those 30, that i would like to fail over it to isdn?
i have tried the isdn trunk to be
2ΧΧΧΧΧΧΧΧ for the landlines
and 69XXXXXXXX for the mobiles.
if i put 69XXXXXXXX then all the mobile calls go through the ISDN trunk and not gsm 1, 2, or 3.
This is what i meant in my previous message.

sincerely yours!



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.