Answer the question
In order to leave comments, you need to log in
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
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)
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=)
Of course you can.
Use Read() to read.
You can store the pin code itself both in the dialplan and in the database
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 questionAsk a Question
731 491 924 answers to any question