You can do this with play_and_get_digits. Just put the correct "pin" value in the regex value of pagd. If they enter the incorrect value then just have the "failure" value be a transfer to a "thank you, goodbye" extension or something like that. This is your basic pagd syntax: <action application="play_and_get_digits" data="4 4 3 # /enter_pin.wav /invalid_entry.wav digits 1234 2000 oops "/> (Note that you need to use real file names - see the play_and_get_digits syntax for all the details.) Then you need an "oops" extension for when they enter the wrong value" <extension name="oops, wrong PIN"> <condition field="destination_number" expression="^oops$"> <action application="playback" data="too_many_failed_entries.wav"/> <action application="hangup"/> </condition> </extension> (Again, you'll need a real sound file with some sort of message telling the caller that he/she entered too many failures. Check our list of sound files in the ivr subdir - there might be one you can use.) Have fun! -MC On Mon, Dec 26, 2011 at 1:06 PM, <georg@riseup.net> wrote:
Hi all,
As the subject states: I'm searching for an application similar to Asterisks 'Authenticate' [1]. The description writes: "The application requires a user to enter a password in order to continue execution." I've found on the wiki the function used for conference rooms, however I need this for a public reachable phone number, which then leads to a call redirection system.
Thanks, Georg
[1] http://www.voip-info.org/wiki/view/Asterisk+cmd+Authenticate