Well, C is set as a global variable so that it keeps the value that you set.
We can assign a value to C by using the SET command. SET C = NONE ADD 1, will clear any existing value in C and add "1" to it, making the value of C to be 1.
In our "Admin" section, we need give the caller the ability to pick a selection. In this example, we only have two choices: "Open" or "Closed". We then assign values to those choices so that "Open" has a value of "0" and "Closed" has a value of "1".
So our Admin Menu message says "To Activate the Day Greeting, Press 1. To Activate the Night Greeting, Press 2" to prompt the supervisor how to make their selection. Then, depending on their selection, we go to the specific steps.
[ul]
[li]If the supervisor selects "1" then we go to step 39 where C is assigned the value of "0". The caller hears the confirmation announcement to indicate "Day Greeting Activated" and the call is disconnected.[/li]
[li]If the supervisor selects "2" then we go to step 43 where C is assigned the value of "1". The caller hears the confirmation announcement to indicate "Night Greeting Activated" and the call is disconnected.[/li]
[/ul]
Now that we have C set (Open or Closed), we look at the Main Vector Step 5. When a call comes in, this step checks the value of C and if C= 1 (Closed) then the call goes to Step 22 that plays the "our office is closed" message [This step was not shown in the example].
If C is 0 (Open) then the call continues to Step 6 where the time of day is checked and then to the normal Menu.
In the Main Menu, normal customers hear the prompt "For Option 1, press 1. For Option 2, press 2. For Option 3, press 3" for however many options you need.
What callers DO NOT HEAR is an option for the Admin Menu. We program that option but we DO NOT INCLUDE IT IN THE AUDIO ANNOUNCEMENT. This is known as a silent or hidden prompt because we don't advertise that it is a valid option off the menu. This isn't very secure since there is a certain subset of people that like to play around and find prompts like this, or try to find dial tone for free calls. I can pretty much guarantee that someone will find that prompt. That's why we include the steps for a security code. The security code isn't really secure either but it is just annoying enough to keep most prying eyes from attempting too many times. Keep the security code long and random. "13579" was used for the example but is not secure.
But even if a nefarious caller guesses correctly and gets in to the Admin Menu they can only turn put the call center in night mode (or whatever messages you want). That certainly is bothersome but doesn't do much damage. Using a non-published DID for the Admin Menu helps but again, some nefarious caller will likely find it - just maybe not as quickly as if it is part of the published number.
You will have to educate your call center supervisor that the "#" exists off the Main Menu and they can press it at any time during the Menu. You also don't need to use "#". That's just an example.
I somewhat stick to using the business' published number because that is easy for Supervisors to remember.
I hope that helps.