This application note shows how to setup authentication password for IVR via defining configuration modification.
In this case, we will realize this feature in SSH.
IP address of MyPBX: 192.168.5.139
In this example, we would like implement the following case:
When the incoming call reach IVR,
Only press 0 and type the corresponding authentication password “123” can be routed to extension 500;
Only press 1 and type the corresponding authentication password “456” can be routed to RingGroup “ringgroup_default”;
Only press 2 and type the corresponding authentication password “789” can be routed to RingGroup “SupportDept”.
Step1: Edit IVR “welcome”. Enable Direct Dial and setup Keypress Events as shown below.
Step2: Enable SSH on the LAN settings page.
Step3: Login SSH via putty software.
Note: We can access MyPBX ssh using putty.exe, Here is a download link:
Click Here. Please download and install it on your PC.
The default username is root and the password is ys123456
Step4: Type the command vi /etc/asterisk/extensions.conf to check the configuration of IVR “welcome”.
Step5: Type the command vi /persistent/custom-cfg/extensions_custom.conf to defined configuration modification.
Compare with Figure 6 and modify the configuration under the context [voicemenu-custom-welcome]
exten = 0,1,Goto(from-outside,500,1)
exten = 1,1,Goto(ringroups-custom-ringgroup_default,620,1)
exten = 2,1,Goto(ringroups-custom-SupportDept,621,1)
Please replace the old configuration with the following configuration.
exten = 0,1,authenticate(123)
exten = 0,2,Goto(from-outside,500,1)
exten = 1,1,authenticate(456)
exten = 1,2,Goto(ringroups-custom-ringgroup_default,620,1)
exten = 2,1,authenticate(789)
exten = 2,2,Goto(ringroups-custom-SupportDept,621,1)
Step 6: Please apply the changes on the MyPBX web GUI to take effect.
Step7: Create a inbound route and choose the destination to IVR “welcome”.
Step 8: Test.