Password on specific extensions

How can u put a password on specific extensions to block outgoing calls?

You can add a little code to extension_custom.conf and do this. I assume you want to block calls going outside of your building over phone trunks of some sort. Assumption #2 you live in North America. If you don’t, you will need to modify this to your area.

[block_ext]
exten => _NXXXXXX,1,goto(notifymess)
exten => _NXXNXXXXXX,1, goto(notifymess)
exten => _1NXXNXXXXXX,1,goto(notifymess)
exten => _X.,1,goto(from-internal,${EXTEN},1)
exten => _[*#].,1,goto(from-internal,${EXTEN},1)
exten => _X.,n(notifymess),flite(You cannot call that number from this phone)
exten => _X.,n,hangup()

Now change the context of the phones that you want to block to block_ext and all should work.