When I was using old version of asterisk,the below context works for me. It helps me to prevent extensions under emergency-from-internal context to dial authorized trunks. When i use the same with new Freepbx, it doesn’t work. Please help me on this.
[emergency-from-internal]
;allow phones to use applications
;Followiwing lines added for VoiceMail Retrieval (MWI)
#exten => default,1,VoiceMailMain(${CALLERID(num)})
#exten => asterisk,1,VoiceMailMain(${CALLERID(num)})
#xten => unknown,1,VoiceMailMain(${CALLERID(num)})
#exten => Unknown,1,VoiceMailMain(${CALLERID(num)})
include => app-vmmain
include => app-userlogonoff
include => app-directory
include => app-dnd
include => app-callforward
include => app-callwaiting
include => app-messagecenter
include => app-calltrace
include => parkedcalls
include => from-internal-custom
;allow phones to dial other extensions
include => ext-fax
include => ext-local
#include => ext-group
include => ext-queues
include => ext-zapbarge
include => ext-meetme
include => ext-record
include => ext-test
;allow phones to access trunks
include => outbound-allroutes
include => outrt-4
include => outrt-5
include => outrt-6
include => outrt-7
exten => _9.,1,Macro(emergency) ; Authorised for internal and outgoing emergency calls only.
exten => s,1,Macro(hangupcall)
exten => h,1,Macro(hangupcall)
Regards,
Alias