Using the Variable in the Call Flow

Last Updated : Dec 23, 2021 |
Having defined a user variable (see Creating a New Variable), we now also have modules to set the current value of a variable and short codes to trigger those modules. We can now use its current value to control operation of our auto-attendant.
The following is an image of a completed call flow:
The red arrow or arrows in the call flow are the changes added in this section.
Prolog information
  1. In the AutoAttend module, delete the current connection from the Test Condition action's True result..
  2. Add a Test User Variable action.
    1. Click Conditions Actions, select Test User Variable.
    2. Click the Details pane to place the action.
    3. Open the Properties for the new Test User Variable.
    4. In the Specific tab, from the This action will return TRUE if the following variable list box, select Reception.
    5. In matches the value below, type open.
    6. Click OK.
  3. Connect the new action into the callflow:
    1. Click Connection.
    2. Connect the Test Condition action's True result to the Test User Variable action.
    3. Connect the Test User Variable action's True result to the Menu action.
    4. Connect the Test User Variable action's False result to the Leave Mail Reception action.
  4. Click the Save & Make Live icon.
  5. From any extension, dial *91 to set the reception variable to Open.
  6. Make a test call to the auto-attendant module. The attendant.wav is played.
  7. From any extension, dial *92 to set the reception variable to Close.
  8. Make a test call to the auto-attendant module. A message Leave a message for reception is played.
  9. From any extension, dial *91 to return the reception variable to Open.