Switchvox - How to configure your switchvox to ask for as password/pincode when dialing out
For purposes of demonstration, we going to assume that you want to restrict or ask for a password when users are dialing international numbers. Keep in mind that this configuration can be apply for any outgoing call rule.
Create the outgoing call rule that will redirect the call to ask for the pincode IVR.
Setup > Outgoing calls > Create an Outgoing call Rule
Rule Name: International_To_IVR_AskPassword
Note (Optional): This outgoing call rule will redirect all calls to IVR_AskPassword. All extension requires password verification before dialing out must have this rule enabled.
Number begins with the digits: 9011
The rest of the number must be between 7 and 13 digits in length.
Before connecting the call, trim 20 digits from the front, and then prepend the digits 888 to the number.
Primary Call Through Provider: Internal
Is this rule final? Yes
Allow all existing extensions to use this rule? No
Note: 888 is the extension number associated with the IRV AskPassword, Please check step 4 for more instruction of how to associate the extension number with the IVR
Create the outgoing call rule that will dial out to the PSTN
Setup > Outgoing calls > Create an Outgoing call Rule
Rule Name: International_To_PSTN
Note (Optional): This outgoing call rule will place calls on the PSTN, All extension requires password verification before dialing out must not has this rule listed on the Outgoing Call rules extension tab.
Number begins with the digits: 9011
The rest of the number must be between 7 and 13 digits in length.
Before connecting the call, trim 1 digits from the front, and then prepend the digits <blank> to the number.
Primary Call Through Provider: <Provider>
Is this rule final? Yes
Allow all existing extensions to use this rule? No
Create IVR AskPassword
Tools > IVR Editor > Create IVR Menu
IVR Menu Name: AskPassword
Description (Optional): This IVR confirms the extension password before dialing out
Actions:
Set Variable (Set VAR_INT_DIALED_NUMBER = DIALED_NUMBER)
Set Variable (Set VAR_INT_EXTEN = CALLER_ID_NUMBER)
Play Sound (Password Interruptible )
Record Digits (Record 0 digits to "VAR_INT_EXTPASS")
Check User Password (Extension VAR_INT_EXTEN ; Password: VAR_INT_EXTPASS ; Result stored in VAR_INT_PASSCHECK)
Conditional Clause (If VAR_INT_PASSCHECK = 0 ; Goto IRV Hangup)
Send to External Number (VAR_INT_DIALED_NUMBER ; Using International_To_PSTN)
Associate IVR AskPassword to an extension number
Setup > Manage > Create Extension
Extension type: IVR (Interactive Voice response)
Extension: 888
Route to IVR Menu: AskPassword
IVR Menu Entry Point: IVR Menu Beginning
Enable Outgoing call rule International_To_IRV_AskPassword on extensions
Setup > Manage > [Extension modify option]
Click on Outgoing Call Rule extension tab
Add or enable International_To_IRV_AskPassword outgoing call rule
Note: You must enable International_To_IVR_AskPassword on all the extension that requires password before dialing out. For those extension that won't require password you can use International_To_PSTN. Keep in mind that International_To_IVR_AskPassword and International_To_PSTN cannot co-rest on the same extension, You should only select one.