toll_allow

Status
Not open for further replies.

vespaman

Member
Jul 28, 2017
49
2
8
Kia Ora,

I am upgrading a local school from an Asterisk box to FPBX.
They need toll barring on some extns so they can make local(including emergency calls) and toll free calls only(0800,0508).
I added 3 new outbound routes, added corresponding toll allow values in the advanced dialplan and used those values in the extns toll allow field.
Testing has confirmed that the toll allow variable works fine with only_local, only_0800 and only_0508 dialplans working as expected.
However the only way I can get other non toll barred extns to work is to set them up with a toll allow of all_calls and an outbound route to suit - is this right or have I cocked it up ?
The new domain isn't live yet so I still have time to figure it out....
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,504
419
83
I think what you have done is fine, having a toll_allow of all_calls is a pretty safe option. There are lots of different ways you can use toll_allow, I don't believe there is a right or wrong way of using it - just what works for you.

If you did not want to add the all_calls to all of the non barred extensions you could always test for an empty $toll_allow with ^$.

You are probably constructing "permit" toll allows, you can also turn the logic around and use a deny toll allow:
https://docs.fusionpbx.com/en/latest/additional_information/toll_allow.html

You may also find this thread helpful:
https://www.pbxforums.com/threads/internal-call-restrictions.3736/#post-13181
 
Status
Not open for further replies.