lunedì 23 dicembre 2013

901901, The killer extension

You may want to configure a cool "reboot extension" to your box. This modification to your extensions.conf will do the trick:

exten => 901901,1,Answer
exten => 901901,n,Authenticate(2345)
exten => 901901,n,Playback(vm-goodbye)
exten => 901901,n,System(/sbin/shutdown -r now)
exten => 901901,n,Hangup()

By calling the 901901 extension your system will reboot (password "2345" is required). The Hangup() command makes sense since Asterisk is cleanly dying!

Nessun commento:

Posta un commento