Jump to content
Tom Wellige

A.1 - Appendix A - Example Night Switch - Night Switch Manager

Recommended Posts

Download the latest version of this example.

 

The Night Switch Manager script is used to enable or disable the night switch.

 

How to install it

  • Make sure you have the Persistent Variables extension installed
  • Create a dummy user
  • Open it's Call Routing Manager
  • Create a new rule using the GSE
  • Import the file NightSwitchManager.rse from the download package
  • You might want to record your own announcement for the Get DTMF Char block explaining the usage of the menu (press 0 to switch the night switch off, press 1  to switch it on).
  • Save the rule and exit the GSE

 

How to use it

 

There are two ways to use the Night Switch Manager:

  1. Simply call the dummy user. You will hear the current status of the night switch (0 for off and 1 for on). Afterwards you are in the DTMF menu to enable or disable the night switch. If you have recorded your own announcement you will hear it now. Press 0 to disable the night switch, press 1 to enable it. Afterwards the new status of the night switch will be announced.
     
  2. You can skip the DTMF menu by passing the desired new status of the night switch (0 for off and 1 for on) as post dialing digit when calling the dummy user. By doing so the night switch will be set accordingly and you will only listen to the new status.
    This enables you to configure two speed dial keys in your SwyxIt! or on your SwyxPhone (assuming your dummy user has the internal number 300):
    - Label: Night Switch ON
      Number: 3001
    - Label: Night Switch OFF
      Number: 3000

 

How it works


image.png

 

 

  1. Initialize the NightSwitch persistent variable.
    image.png
     
  2. Store post dialing digits into own variable.
    image.png
     
  3. Do we have any post dialing digits ?
    image.png
     
  4. DTMF menu. If we have any post dialing digits witin our own variable they will be taken as DTMF input. The block also returns the pressed DTMF key or the post dialing digit in another variable.
    image.png
     
  5. Store the selected new status of the night switch into the persistent variable.
    image.png

 

 

To make use of the Night Switch in any call routing script see here: Night Switch enabled call routing script

 

 

Index

<< Previous 6.5 - Miscellaneous - Use different database (other than MS SQL Server, e.g. MySQL or Oracle)

>> Next A.2 - Appendix A - Example Night Switch - Night Switch enabled call routing script


 

Share this post


Link to post
Share on other sites

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and have taken note of our Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.