D
D
dmitrii5072017-06-20 11:00:53
Asterisk
dmitrii507, 2017-06-20 11:00:53

Asterisk add pin code request?

Please tell me, is it possible to create a menu on asterisk with access to a specific pin code?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
R
roswell, 2017-06-20
@dmitrii507

Can. More or less like this:

exten => s,1,NoOp()
same => n,Read(pin,please-enter-pin-code,,,,10)
same => n,GotoIf($["${pin}"="1234"]?ok)
same => n,Playback(invalid-pin-code)
same => n,Hangup()
same => n(ok),Playback(establishing-connection)
same => n,Dial(SIP/12345678)

V
Viktor, 2017-06-21
@awsswa59

When dialing 722 numbers, a password will be requested, if you dial 3456 then the dialplan will go further
exten => 722,1,Authenticate(3456)
exten => 722,n,NoOp(=password successful=)

S
silverjoe, 2017-06-20
@silverjoe

Of course you can.
Use Read() to read.
You can store the pin code itself both in the dialplan and in the database

D
Dmitry Rashevsky, 2017-07-07
@DRashevskiy

Good afternoon. You can install the Authenticate command in the required context.
For instructions on how to use it, type the command core show application Authenticate in the asterisk console

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question