I have created a little application that many of my clients requested to me: block the single extension with a password for the external numbers (trunks). Perhaps someone want to improve it or write a separate application, i have no practice with php.
In the modified macro-dialout-trunk i have added a section to not block the emergency numbers that start with 11. I know that in USA there is 911 but here in Italy there are multiple numbers for different services and start all with 11 (112, 113, 118, etc) so is necessary to adapt for the own nation.
I have attached the txt file with the parts to add to extensions_custom.conf and the macro-dialout-trunk modified.
Regards,
Francesco Romano