Did they send me the wrong card?

That's a good idea. Thanks for your help, this "should" have worked but somehow zap broke and couldn't be fixed.
 
I completely reinstalled PIAF and now everything works just fine.

Now, all I need to figure out is how to get certain extensions to use the PSTN and others to use the VoIP trunk.
 
For inbound routes, the way I do it is to set up inbound routes for the Zap channels using the channel number, and for the VOIP trunk using the DID number each VOIP provider presents on an incoming call.

Each inbound can then be routed to extensions as you please.

Some providers (confusingly) present the VOIP account number as the DID number

For outbound routes I use routing digits (like a normal PABX)

I have 3 routes for standard escape digit 9 (in this order)

1. 9_Foreign

routes international calls as

9|00. (strip off 9 escape code, for all numbers starting with 00 (our international prefix)

2. 9_Mobile

routes calls to mobile phones

9|07. (same but for mobile phones)

9_Outside

routes anything else..

9|. (all other numbers go via this route)

at the moment they all route to the Zap channels but they can be changed as required to make use of cheap VOIP tarrifs

I also similarly use escape digits 71 and 72 to manually select two voip providers for outbound (use 71|. / 72|. on outbound routes and route to your VOIP trunks)

so from any extension you could dial

7201632960023 and it would go through via VOIP provider number 2
 
Okay, so I put 9|. in front of my dial plan for the business outbound route and if the 9 isn't dialed the calls will fall back to the pstn? I put the office outbound route on top of the pstn route.
 
Hmm - I've always set up PABXs on the assumption users were expected to dial 9 (or some other prefix) to get an outside line (having dealt with analogue PABXs before)

I've never tried to set one up for "normal" dialling (i.e without the escape digit), although I understand a lot of users (particularly shared home/office users) may not want to do this and even newer small PABXs have this capability.

whats in the PSTN route?

I did notice elsewhere your extensions are in the 1xx range, so is your PSTN route set to route all other numbers starting with [2-9] to the PSTN? (for instance 100 would be an extension but 222-555-3000 would be sent to PSTN?) This should work (but isn't 1 also your access code for long distance in the USA?)
 
I just checked it out with both my business line and home phone line and it looks pretty good. If I dial a 9 before any # it routes the calls through the business VoIP trunk. If I straight dial 7 or 10 digits it goes through the PSTN trunk. Since I don't have long distance on my home phone this is actually a good thing since I won't have to go looking for my office cordless phone anymore, they can use any of the regular phones to call grandparents now.


We have crazy dialing here in the US, some cities like Chicago you have to use 10 digit dialing, even in your own zipcode. Yet here in Indianapolis, you can use 7 digit dialing anywhere around the entire city.

I think I can live with this, at least for now. Thanks a LOT for your help.
 
Hi Alex

In outbound routes, put a simple . to dial out without needing the 9 for an outside line.

You can also put a 9|. in the same route, so even if a user does dial 9, its still goes out the same way, this way, you have both bases covered.

NGN's are often sent out via the PSTN, so put a route above the one you created above, and put in 9|08. and 08. and select the outbound trunk as the pstn

Also we need to concern ourselves with special numbers such as 999, 100, 152 etc, these are all three digits, and never longer than 4, that can only be dialed via the PSTN.

so ZXX 9|ZXX and ZXXX and 9|ZXXX with the PSTN selected as the trunk should sort these out.



In trunks, we only put an entry in the dial rules if we want to change what we are sending, otherwise it's pointless

So if you are in the UK, and you normally dial 0123 456789, you would want to send 44 123 456789 over a VOIP trunk, this would be done by doing something like

44+0|Z. so anything that starts with a 0 then any number between 1 and 9.

International numbers such as 00 34 987 654 321 which need to be delivered to your VoIP provider are handled in the Trunk Dial plan as:

00|Z.

Finally, in your case, with a BT feature line, in the zap trunks, just stick a 9 in the outbound dial prefix, although you can do it as you described in an earlier post.

Joe
 
Is there any way to just have certain extensions dial out certain trunks instead of using "9"? I searched freepbx's website and there is a module that says it will do this but recent posts say it's broken.
 

Members online

No members online now.

Forum statistics

Threads
26,687
Messages
174,410
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top