In recent versions you can use the voicemail app using "check auth_only <exten>" 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"><<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>></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 "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.<br>
<br>This is your basic pagd syntax:<br><font size="1"><span style="font-family:courier new,monospace"><action application="play_and_get_digits" data="4 4 3 # /enter_pin.wav /invalid_entry.wav digits 1234 2000 oops "/></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 "oops" extension for when they enter the wrong value"<br><br><font size="1"><span style="font-family:courier new,monospace"><extension name="oops, wrong PIN"></span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> <condition field="destination_number" expression="^oops$"></span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> <action application="playback" data="too_many_failed_entries.wav"/></span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> <action application="hangup"/></span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> </condition></span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"></extension></span><br style="font-family:courier new,monospace"></font><br>(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.)<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"><<a href="mailto:georg@riseup.net" target="_blank">georg@riseup.net</a>></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'm searching for an application similar to<br>
Asterisks 'Authenticate' [1]. The description writes: "The application<br>
requires a user to enter a password in order to continue execution." I'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>