Introduction guide: notifications
With this new module, you as a user can now be informed about new activities. Probably the simplest example: when a new call comes in, show a window.
So the idea behind this notification centre is:
If this, then that ...
For the if this case, every user can define so-called input channels, and for the then that case, so-called output channels. You will find the settings in the notifications under “Einstellungen” (Settings).

Deactivate
The “deaktivieren” (deactivate) function switches off all configured notifications with one click. In the settings, you can also control this specifically by input and output channel by ticking the boxes.

If all notifications are deactivated, the bell is crossed out. The deactivation remains in place even after logging in again.
Log
In the log, you will find a record of all notifications. Every notification that has been triggered is listed here in a table. If a call triggers a notification, you can click the row in the log and see on the right in the side panel exactly which call it is.
So all the input channels you have configured go into the log, regardless of how you are notified. This gives you complete documentation of the events, at least of the configured input channels. A call that is configured as an input channel therefore appears as a call in the call module and is also listed in the log at the same time.

Settings
In the settings, you can now specify exactly the events and notifications that are of interest to you.
Input channels
In infra-struktur, the input channels are the things that happen. The input channels are not generic but are implemented precisely and specifically. In some cases, further settings can be made for an input channel.

The following input channels are currently implemented:
Call
This input channel combines various events relating to incoming calls.
“Anruf aktualisiert” (Call updated)
Whenever a call is updated or changed, for example when a call note is added afterwards, a notification is triggered.
“Anruf zugewiesen (Benutzer)” (Call assigned (user))
If a call is processed and assigned to a user in the call panel via “Anruf für” (Call for), a notification is sent. The classic case: the office takes a call and passes it on to you so that you can call back later. In principle, you can use this to trigger notifications not only when calls come in for you, but also when calls come in for other users. This means that when a colleague is away, you can receive a notification when there is a new call for them.

“Neuer Anruf” (New call)
This means all calls that you can see. Every first ring leads to a notification. Caution: this can be quite annoying if only one in 10 calls is meant for you.
“Neuer Anruf (Anrufliste)” (New call (call list))
This is about a new call that belongs to a specific call list, e.g. a notification for a call to your own extension.

“Neuer Anruf (MSN)” (New call (MSN))
This is about a new call that belongs to a specific MSN, e.g. a notification for a call to MSN 99. An MSN can be, for example, a special extension 99.

“Neuer Anruf (Nummer)” (New call (number))
This is about a new call that comes from a specific number. For example, you want to receive a desktop message as soon as Mr XY calls from his mobile with the number 017133445566.

“Nachricht” (Message)
Sends a notification when you receive a new infra-struktur message. For example, outside working hours you can have all messages that other users have sent you via infra-struktur sent to your smartphone as a push notification via Telegram.
No further settings are necessary for this.
Appointment
This input channel covers everything to do with calendars and appointments. Define notifications, for example, for when someone creates a new appointment for you or an appointment is moved.
NOTE: The actual “Löschen” (deletion) of an appointment from the calendar cannot currently trigger a notification, because after deletion there is in fact no appointment any more. We are currently working on a solution. Until then, we recommend using the “absagen” (cancel) function.
NOTE: In the input channel settings on the right-hand side, you can use the user selection box to specify which active participant is meant. So this is about the notification for a cancelled or confirmed appointment in which the user Holling, Ino is an active participant. It is not about who cancels or edits it.
“Termin abgesagt (Ersteller)” (Appointment cancelled (creator))
Trigger a notification when an appointment has been cancelled.

“Termin bestätigt (Ersteller)” (Appointment confirmed (creator))
Trigger a notification when an appointment has been confirmed.

“Termin gelöscht (aktiver Teilnehmer)” (Appointment deleted (active participant))
Trigger a notification when a specific participant has been removed from an appointment. Important: this does not mean “Löschen” (deleting) the appointment.

“Termin bearbeitet (aktiver Teilnehmer)” (Appointment edited (active participant))
If an active participant changes the appointment, a notification is triggered.

“Neuer Termin (aktiver Teilnehmer)” (New appointment (active participant))
The classic: please send a notification when a new appointment is created.

Output channels
To send the notifications to a recipient, you use the predefined output channels.

Desktop notification
The so-called desktop notification creates a small window on Windows, Linux and Mac, i.e. on a desktop PC, when an event occurs. This is exactly how you create a visible window with information about the call when a call comes in.

The window now also shows the caller’s name. If you click the window, you open the call in the browser and can edit it. On MacOS, these desktop notifications remain in the MacOS Notification Centre.

Telegram
This channel is the easiest way to get push notifications on a smartphone. infra-struktur talks directly to the Telegram service. You can find the free app in the Apple App Store and the Google Play Store.

Telegram is a perfectly normal messenger that you can also use outside infra-struktur and that many people already use. Its good encryption deserves special mention, so that the data from infra-struktur is transferred securely to your smartphone.

Connecting it in the notification settings is very easy and done in just a few steps.
IFTTT Webhook
IFTTT stands for If This Then That. It is a service provider for linking web applications. infra-struktur can now also work with IFTTT.
You can now use infra-struktur events as a trigger to control IFTTT. This makes “almost” anything possible.
Some, partly curious, examples of use:
- Send me a push notification if someone calls the office on a Saturday
- Send the infra-struktur message to my smartphone if I am not logged in
- Post on Twitter when a customer calls
- Switch on the light when I call my extension 33
- ...
And this is how it works:
All you need is an IFTTT account (see IFTTT configuration) and the infra-struktur notifications. Simply define the event in infra-struktur and choose the IFTTT Webhook as the output channel. A webhook is nothing more than a special IFTTT internet address that is called up when an infra-struktur event occurs. In the settings, the output channel has the following configuration options:

Now, in addition to the name, you can also specify when the notification should be sent. Here you set the time, the date or only certain weekdays for the notification. A configuration for outside working hours then consists of two output channels, one from 17:30 to 00:00 and a second from 00:00 to 7:30.

However, you cannot exclude times; you have to define them specifically. So a configuration for weekdays and weekends means at least two configurations. If you then also set different times (17:30 - 00:00 and 00:00 - 07:30), it is already three configurations.

So the URL that has to be entered in the field under IFTTT Webhook is the IFTTT address (there, the Webhook service). You can find the URL as follows:
In your IFTTT account, please click the relevant applet.

Then click the webhook logo.

Then click Settings.

Open the URL shown there in your browser.

Now you can see the IFTTT address that you need to enter in infra-struktur. Please also enter the name of the event (see IFTTT configuration; it was assigned when the applet was created) ... done.

Within IFTTT, you can also use the 3 values to pass information from infra-struktur on to the IFTTT service. For example, you can include the date, number and name of the caller in the push notification.
You will find everything else about IFTTT, the accounts and the webhooks at:
