I have read a number of discussions about this topic but all offer more or less complex solutions or require the purchase of commercial modules. I am a newbie so I am looking for a very simple solution, if there is any. It seems to me that this should be a standard feature. If i were to implement it, I’d have an option, such as a check box, to bar all external calls except to emergency numbers.
I realize others will have more complex requirments and those must be addressed. So, what I want to do when creating an extension is have it default to no external calls to emergency numbers and far a simple way to release the bar.
I can do a lot of reading, which I have. I have also purchased a book on Asterisk and have enrolled in on online course but often practical examples clarify the theory.
What I want is for extension 602 to be able to call any other extension. In order to get to an outgoing trunk, the user must dial either 8 or 9. Right now all extensions begin with 6 but could be anything except 8 or 9. I am pretty sure it is the third line of Mr. Busch’s example that will do the trick but so far I haven’t figured out the syntax.
Huh? You’ve been a member of this forum for more than five years.
Each Outbound Route Dial Pattern has a CallerID field. If this is not blank, the route will be chosen only if the extension number matches the number or pattern in that field. For example, if you put 20X there, only extensions 200 through 209 can use the route. You can also use patterns such as 20[17-9], which would allow extensions 201, 207, 208 and 209 to call, or use multiple patterns if needed.
If you want to permit most extensions to make outbound calls and only restrict a few, create dummy routes ahead of the normal ones, which match the restricted extensions. These routes would list no trunks, so outside calls made from those extensions would always fail.
Modern systems are generally set up so that numbers are dialed in the same format as a landline or mobile; trunk selection is automatic. What kind of trunks do you have and why do you want to select them manually?
Then the best, easiest and cheapest would be the commercial module extension routing. (Which I believe was already mentioned by Jared.
Create a 911 route, which everyone can access, and create a “Domestic” Route, and grant access only to the extensions who need to be able to place outbound calls.
As Stewart said, these type of setups were used with older systems. …I hope you don’t have to dial 8 or 9 to call 911.
I joined the forum when I was in Vietnam but circumstances required me return to the USA. I really didn’t make much progress learning FreePBX before I left.
One of the trunks is chan_sip and the other is pjsip. My provider is having problems processing calls with pjsip so I require dialing 8 for the chan_sip trunk and 9 for pjsip until we get this sorted out. That is another issue not related to this one.
Your solution seems to be a good one and I’ll give that a try today.