[Freeswitch-users] Searching for an application similar to Asterisks 'Authenticate'

Michael Collins msc at freeswitch.org
Tue Dec 27 00:36:42 MSK 2011


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 at 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20111226/5d4ba2cc/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list