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.
Description:
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.
Figure 1
Step2: Enable SSH on the LAN settings page.
Figure 2
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
Figure 3
Figure 4
Step4: Type the command vi /etc/asterisk/extensions.conf to check the configuration of IVR “welcome”.
Figure 5
Figure 6
Step5: Type the command vi /persistent/custom-cfg/extensions_custom.conf to defined configuration modification.
Figure 7
Compare with Figure 6 and modify the configuration under the context [voicemenu-custom-welcome]
Old configuration:
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)
Figure 8
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”.
Figure 9
Step 8: Test.
0 Comments