Dial Out Authorization Code

Hi, I am new to asterisk and trying to set up a dial out authorization code. What i want to do is when a pattern is dialed there would be a prompt asking for a code and if the code entered is correct the call would go out. If the code is incorrect there would be an invalid message and go back to the prompt asking for the code.

Any help would be appreciated.

Thnx

the dialplan command is called Authenticate

voip-info.org/tiki-index.php … thenticate