How to have Authenticate play custom prompts.

ghurty
Posts: 86
Member Since:
2009-01-14

I am trying to make a simple authentication system before having access to the IVR.

I just need one PIN code.

How can I have it that when someone calls, it will play a custom message, prompt for pin, if pin matches, let in to IVR, if not, play custom message that it is wrong pin.

What I cant figure out is how to play a custom messages rather then the built in one.

Thanks



nttranbao
Posts: 189
Member Since:
2008-02-16
So you need to program dial

So you need to program dial plan.

Basic example wil be:

exten => s,1,Answer
exten => s,n,Read(digito, please-enter-pin-please,6)
exten => s,n,Gotoif($[${digito}="123456"],ivr1,s)
exten => s,n,Playback(wrong-pin)
exten => s,n,Hangup

[ivr1]
exten => s,1,Playback(correct-pin)
exten => s,n,Playback(blah blah blah)
exten => s,n,Hangup

--

----------------------
IT/VOIP consultancy, VOIP eStore, Support Forum
Bao Nguyen IT Co., Ltd.
http://www.baonguyen.vn
WE MAKE IT



bubbapcguy
Posts: 3774
Member Since:
2006-06-02
Learning

David, If you are here to learn then you should take some time to read the DOC's amd the other info releated to Freepbx and asterisk

You question's are common configure options within the scope of the PBX..nothing you ask is NOT covered many times in the DOC's

Hit the WiKI link at the top of the page and spend some time reading.

The more effort you put in to it.... the more you get out of it.

Now if just want someone to hold your hand and help configure a PBX; then you will have no clue as how it works.

If this is so then by all means go ahead and asked for the simple step by step method
(I hope this is not part of your job...if so good luck finding the next one)



ghurty
Posts: 86
Member Since:
2009-01-14
I read all the paperwork and

I read all the paperwork and documents. However, it is much easier for me to learn from seeing already written dial plans, and learning how to work from there.
For example, based in what I was reading, I could not figure out if "n+101" meant "N+101" or for example 106. On some site it made it look like your were supposed to write "+101"

Thanks



b14ck
Posts: 773
Member Since:
2009-03-03
Playing custom messages is

Playing custom messages is just a matter of having a recorded sound file to use. Instead of specifying a sound file like 'hello-world', you can specify the full path to your custom sound file: '/var/lib/asterisk/sounds/custom/my-test-recording' etc.

--

Randall Degges
Lead Developer, RCI Telecommunications
projectb14ck - http://projectb14ck.org/ - Weblog



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.