Voice menu to execute scripts etc?

Hi, I’m new to all this and am investigating what I hope would be a simple solution. Basically I’d like to set up a voice menu with Asterisk, that requires a password to log in. Once you’re in, I’d like to have a number of options, all similar like this:

“Press 1 to reboot web server 1.”
“Press 2 to restart ColdFusion on web server 1.”


Is this possible? Can you set up voice menus to execute shell scripts or other commands? Also, could I put in more than one requirement for passwords? Thanks and I hope this isn’t a dumb question.

Short answer, yes.

Long answer, it can be done and you have two main options.

1.) You can use AGI scripts. These are external applications written in any language that you might like. They interface with asterisk and control the flow of a call. The script could very easily play the voice files, get the user’s response, and then execute some commands on the system.

2.) You can use the Asterisk dial plan. There are commands that asterisk can run internally that will allow you to do the same thing. Here are some that you might want to use.

Read - http://www.voip-info.org/wiki-Asterisk+cmd+Read
System - http://www.voip-info.org/wiki-Asterisk+cmd+System