In recent versions you can use the voicemail app using &quot;check auth_only &lt;exten&gt;&quot; args to auth against a user and it will either continue in the dp or hangup on you with an error message.<br><br><div class="gmail_quote">
On Mon, Dec 26, 2011 at 3:36 PM, Michael Collins <span dir="ltr">&lt;<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
You can do this with play_and_get_digits. Just put the correct &quot;pin&quot; value in the regex value of pagd. If they enter the incorrect value then just have the &quot;failure&quot; value be a transfer to a &quot;thank you, goodbye&quot; extension or something like that.<br>

<br>This is your basic pagd syntax:<br><font size="1"><span style="font-family:courier new,monospace">&lt;action application=&quot;play_and_get_digits&quot; data=&quot;4 4 3 # /enter_pin.wav /invalid_entry.wav digits 1234 2000 oops &quot;/&gt;</span><br style="font-family:courier new,monospace">

</font><br>(Note that you need to use real file names - see the play_and_get_digits syntax for all the details.)<br><br>Then you need an &quot;oops&quot; extension for when they enter the wrong value&quot;<br><br><font size="1"><span style="font-family:courier new,monospace">&lt;extension name=&quot;oops, wrong PIN&quot;&gt;</span><br style="font-family:courier new,monospace">

<span style="font-family:courier new,monospace">  &lt;condition field=&quot;destination_number&quot; expression=&quot;^oops$&quot;&gt;</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">     &lt;action application=&quot;playback&quot; data=&quot;too_many_failed_entries.wav&quot;/&gt;</span><br style="font-family:courier new,monospace">

<span style="font-family:courier new,monospace">     &lt;action application=&quot;hangup&quot;/&gt;</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">  &lt;/condition&gt;</span><br style="font-family:courier new,monospace">

<span style="font-family:courier new,monospace">&lt;/extension&gt;</span><br style="font-family:courier new,monospace"></font><br>(Again, you&#39;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.)<br>

<br>Have fun!<br><font color="#888888"><br>-MC</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Mon, Dec 26, 2011 at 1:06 PM,  <span dir="ltr">&lt;<a href="mailto:georg@riseup.net" target="_blank">georg@riseup.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
As the subject states: I&#39;m searching for an application similar to<br>
Asterisks &#39;Authenticate&#39; [1]. The description writes: &quot;The application<br>
requires a user to enter a password in order to continue execution.&quot; I&#39;ve<br>
found on the wiki the function used for conference rooms, however I need<br>
this for a public reachable phone number, which then leads to a call<br>
redirection system.<br>
<br>
Thanks,<br>
Georg<br>
<br>
[1] <a href="http://www.voip-info.org/wiki/view/Asterisk+cmd+Authenticate" target="_blank">http://www.voip-info.org/wiki/view/Asterisk+cmd+Authenticate</a><br><br></blockquote></div>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900<br>