Skip to main content
Version: 8.3 Beta 🚧

Twilio Voice Notification

💡Have feedback for this page? Let us know on the IA Forum.


Voice notifications can be sent with the Twilio Notification module. To function, the Gateway must have Internet access, and a Twilio account (www.twilio.com) with voice capabilities must be created and then defined in Ignition.

caution

This module requires the Alarm Notification module to be installed and enabled. If the Alarm Notification module is not installed or is disabled, this module will fault with a warning in the logs and display the state as "Faulted Missing Dependency" on the Platform > System > Modules page.

Creating a Twilio Voice Notification Profile allows you to configure a custom message associated with the alarm using the Alarm Notification Pipeline via an automated phone call when an alarm is triggered. The alarm can optionally be acknowledged through the phone call.

Messaging Configurations​

Notification profile settings include enabling acknowledgement, pin validation, broadcasting notification calls to all users, and recording calls. Additionally, the language and text-to-speech voice to use for generating calls are selected when creating or editing the notification profile.

The Twilio module adds a User PIN field to user profiles, which is where the pin validation value used to authenticate users is pulled from. When enabled, validation is required before the user can read alarm information or acknowledge the alarm. When acknowledgement is enabled, the call will ask users if they want to acknowledge or ignore an alarm, and if the user selects acknowledge, the alarm state is changed to acknowledged.

If you choose to enable broadcasting, the voice message is sent to all users on the assigned roster at once. When broadcast notifications are used, the above PIN authentication and alarm acknowledgement settings are ignored. This means that broadcasted calls are unauthenticated by default, even as they might contain sensitive alarm information.

It's also important to be aware that when recording calls is enabled, the recording is stored and accessible in the Twilio dashboard. Recorded calls can be accessed in the Twilio dashboard after they are recorded. Select an auditing profile from the setting dropdown on the Voice Notification Profile page to store phone calls and acknowledgements to the audit system.

Pipeline Configuration​

Like all notification methods, the Twilio Voice profile is selected in the Notification Block Editor in the Designer's pipeline configuration. The Twilio Voice profile includes two properties, From Number and Max Pin Attempts.

  • From Number: The phone number configured in the Twilio dashboard, from which to send the phone call.
  • Max Pin Attempts: The maximum number of attempts allowed for a user to correctly enter a PIN when pin validation is enabled.

The Call Script and Delay Between Messages (seconds) property are also displayed here.

Expanding the Call Script list allows you to customize the alarm message the user hears through a call script text. There are several points where the call may stop to collect user input, so the call script is the list of messages used by the text-to-speech engine to generate the call.

Call Script Options​

The following table is a full list of configurations for the call script, with their respective defaults:

ConfigurationDescriptionDefault
GreetingIntroductory message.Hello, this is an Ignition alarm notification.
PIN ChallengeA message asking the user to enter their PIN number. Must instruct them to press '#' when finished.Please enter your pin, followed by the pound sign.
Non-PIN ChallengeWhen a PIN is not required, this message is played to instruct the users to press any key to continue.Please press any key to continue.
Invalid PINA message telling the user their PIN was invalid, and to try again.Invalid pin number. Please re-enter your pin, followed by the pound sign.
SummaryWhen there are multiple alarms, this message will be played to tell the user how many to expect. It must include the placeholder '%d' somewhere in the message.There are %d events.
Active MessageThe message to play for active alarms. This message can reference properties of alarms by using syntax like "{propertyName}".At {eventTime
Clear MessageThe message to play for cleared alarms. This message can reference properties of alarms by using syntax like "{propertyName}".At {eventTime
Option 1: AcknowledgeTells the user to press '1' to acknowledge.Press 1 to acknowledge
Acknowledge ConfirmationTells the user that the alarm event has been successfully acknowledged.Alarm has been acknowledged.
Option 2: IgnoreTells the user to press '2' to ignore/bypass the alarm.Press 2 to ignore
Ignore ConfirmationTells the user the alarm event has been ignored.Alarm has been ignored.
Option 3: RepeatTells the user to press '3' to repeat the last message.Press 3 to repeat
ClosingClosing messageThank you, goodbye.

Voice Functions​

See the system.twilio section of the appendix for more details on the sendPhoneCall function available for the Twilio Voice Notification Profile.

Create a Twilio Voice Notification Profile​

  1. Go to the Services section of the Gateway Webpage.
  2. Select Alarming > Notification from the menu on the left side.
  3. Click on Create Profile +.
  4. Select the Twilio Voice Notification profile type, and click Next.
  5. Provide a name for the profile, and select a Twilio Account from the dropdown.
  6. Set the other profile settings as desired. (See table below for a description of all settings.)
  7. Click Create Alarm Notification Profile.

Once your Notification profile is created, you can use it in an Alarm Pipeline.

Twilio Voice Notification Profile Settings​

The following table describes the settings on the Alarm Notification Profiles page for a Twilio Voice Notification profile.

General​

SettingDescription
NameName for this alarm notification profile.
DescriptionDescription of the profile.
EnabledWhether the profile is enabled or disabled.

Twilio Settings​

SettingDescription
Twilio AccountSelect a Twilio account from the dropdown list.
Allow AcknowledgementEnables users to respond to notifications directly from the call; also known as Two-Way notification. If enabled, the Public Hostname property in the Twilio Account must be configured. Default is true.
Require PIN AuthenticationWhether to authenticate users before alarm summary. Default is true.
Broadcast Notifications EnabledWhen enabled, all users on the connected on-call roster will be notified. Default is false.
Record CallsActivates Twilio's phone call recording feature. Default is false.
VoiceSelects the text-to-speech voice to use.
LanguageSelects the language to use.
Answer TimeoutSets the amount of time, in seconds, a call is allowed to go unanswered before it's considered failed. Default is 60 seconds.
Max Call DurationSets the maximum time, in minutes, for a call to last. Default is 5 minutes.

Other​

SettingDescription
Auditing ProfileSelect an audit profile from the dropdown list. If an audit profile is selected, phone calls and acknowledgements will be stored to the audit system. Note that alarm acknowledgements are also stored to the alarm journal.