mcbsys
Guru
- Joined
- Oct 16, 2008
- Messages
- 139
- Reaction score
- 5
Hi,
I'm replacing an old Trixbox installation with PiaF at a small church. There are a couple of analog courtesy phones in public areas, connected to an FXS port on a TDM400 card. These phones should be allowed to call internal extensions and 911 only.
Here is what I've done in the past:
1. Set up an Outbound Route called 9_outside_911only with this Dial Plan:
911
9|911
2. Set up a Zap extension with a custom context called "from-internal-courtesy".
3. Add these lines to the top of /etc/asterisk/extensions_custom.conf:
[from-internal-courtesy]
include => ext-local
include => outrt-002-9_outside_911only
exten => h,1,Hangup
This seems to be working, but I don't like having references to auto-generated contexts, which might change e.g. if I add or resequence routes.
Is there a relatively simple way that I can do this directly in the UI without having to modify extensions_custom.conf?
Thanks for your help,
Mark
I'm replacing an old Trixbox installation with PiaF at a small church. There are a couple of analog courtesy phones in public areas, connected to an FXS port on a TDM400 card. These phones should be allowed to call internal extensions and 911 only.
Here is what I've done in the past:
1. Set up an Outbound Route called 9_outside_911only with this Dial Plan:
911
9|911
2. Set up a Zap extension with a custom context called "from-internal-courtesy".
3. Add these lines to the top of /etc/asterisk/extensions_custom.conf:
[from-internal-courtesy]
include => ext-local
include => outrt-002-9_outside_911only
exten => h,1,Hangup
This seems to be working, but I don't like having references to auto-generated contexts, which might change e.g. if I add or resequence routes.
Is there a relatively simple way that I can do this directly in the UI without having to modify extensions_custom.conf?
Thanks for your help,
Mark