# Blinker - Operator Connection Splitter

The operator connection splitter is a module to accept operator connections and allow the operator to select one of several modules to connect to by dialing a further number of the form `*12345678#`. When the called module closes the connection, the operator is connected to the splitter again and can select the next module to connect to. The empty number `*#` closes the incoming connection.

## Configuration

The configuration of the operator connection splitter module with name `NAME` is located in the `opsplitters/NAME` subdirectory.

### Sound File

While an operator is connected to the splitter module (e.g. via a phone connection), a sound file can be requested to be played. (In case of the phone connection, this file is located on the phone server.) The name of the sound to request is contained in the file `sound`. If this file does not exists, no sound is requested to be played.

### Maximum Number of Connections

The maximum number of simultaneous connections can be limited by writing the limit to the file `maxconn`. If this file does not exists, the number of simultaneous connections is not limited.

### Single Mode

In single mode, the operator connection splitter module makes sure that all outgoing connections go to the same target module (. The first connection works as usual. Additional connections are directly forwarded to the module chosen by the first connection. If no module has been selected by the first connection, no further incoming connections are accepted.
Single mode can be enabled by writing `true` to the file `single`.

### Extensions / Phone Numbers

The virtual extensions (i.e. phone numbers) that can be called by dialing a number of the form `*12345678#` are configured in the subdirectory `extensions`.
Each extension is configured in its own subdirectory. E.g. the configuration for the number mentioned above resides in the subdirectory `extensions/12345678`.

The configuration inside an extension consists of the following settings:

#### Target Operator Connection Slot

The file `target` contains the name of the operator interface to contact via an operator connection if the extension is called.

## Operator Connection Interface

The name of the operator connection interface provided by this module is the module name, i.e., `opsplitters/NAME`.