Call Us Today! 877.742.2583




Page tree
Skip to end of metadata
Go to start of metadata

About

A very simple example of using the dialplan to manipulate global variables. 

 

 Click here to expand Table of Contents


Discussion

This dialplan example will manipulate the global variable "sys_mode" which normally contains "DAY" or "NITE" depending on the system mode. Dial x9200 to set day mode and dial x9201 to set nite mode. NOTE: At the time of this writing I did not have "day mode" or "night mode" prompts recorded, so I just filled in with "call forwarding set" for setting NITE mode and "Call forwarding cancelled" for indicating that DAY mode has been set.

To act on DAY mode vs. NITE mode simply check the value of ${sys_mode} and act accordingly.

Dialplan

Simple extension to display what the current mode is:

Dialplan

Set DAY mode:

DAY mode

Set NITE mode:

NITE mode

See Also

 

  • No labels