Service Flag
From Pbxnsip Wiki
Purpose
The Service Flag account type is a simple account that is used to indicate a condition to the PBX. The service flag is for example useful to indicate if a hunt group or an auto attendant should be active or not (night service).
A service flag is independent from other accounts. That means you can use one service flag for several accounts, like auto attendants and hunt groups.
The service flag can be controlled manually or automatically. In manual mode, you need to call the service flag number to change its state. The PBX will then play back an announcement about the new state.
In automatic mode, the PBX will use a fixed scheme to turn the flag on and off. See the description below on how to do this.
You can subscribe to the state of a service flag. This way, your phones can display if the service is active or not. Typically, you can put the state of a service flag on a LED key. From the phone point of view, the service flag is like an extension.
Settings
The identity settings are the same as the settings for the extension identity, see Extension Identity. The "Display Name" is just used in the web interface and serves as a comment on the purpose of the service flag.
The "Extensions that may change status" lists, separated by space, the accounts that may change the status of the service flag. You may use wildcard patterns here, for example 9* would allow all extensions that start with a 9 to change the status of the service flag. If you leave this setting empty, all accounts may change the status of the flag. This setting is only visible in manual mode.
The Dialog Permissions" are described in a separate page; see Dialog Permissions.
In the Day/Night mode, it will automatically change the status of the code. For every day, you need to list the times when the service is active. Every segment must be separated by a space. The service times are using the format HH:MM-HH:MM, you may use the symbol "P" for PM or use the 24-hour format. For example, "9:00-12:30 1:00P-5:00P" would mean that the service is active between 9 AM and 12:30 PM and between 1 PM and 5 PM.
| | Please note that there must be no space before and after the dash symbol for a time entry (e.g. "9:00-14:00" instead of "9:00 - 14:00"). |
Holidays are written in the format Month/Day, you may also use any number of holidays (for example, "12/24 12/25 12/26"). Use a space to separate the holiday dates. Holidays repeat every year, if you have a holiday that happens only on a specific year, you need to change that setting for every year.
Holiday Service Flags
If you want to have a service flag that routes calls on holidays, just fill in "0-24" in every day of the week and list the holiday days at the bottom in the holiday section. Using the pattern "0-24" will make the PBX believe that by default, the whole day is in service, and it will only use the holidays as exception.

