Table of Contents |
---|
Introduction
Use the Twilio is a web service to make a call to a phone and play a recording.
Prerequisites
A Twilio account is required.
From your Twilio account console, note Account SID, Auth Token, and Phone number.
Configure Twilio Voice Play within the NETx Core Studio
In the Core Studio, open Modules > Messenger > [Live] Twilio Voice Play.
Right-click to open the context menu and select Insert new definition to add a new profile.
Fill the following fields:
Profile: profile name
AccountSid: Account SID as in your Twilio console
AuthToken: Auth Token as in your Twilio console
SenderPhoneNumer: the Phone number as in your Twilio console
Save the definition table. Changes are immediately applied.
Send a voice play via XLogic
Use a Twilio Voice Play messenger profile in combination with the Messenger.SendVoicePlay XCommand.
Testing
To test the profile from the Core Studio,
...
You will receive a phone call on the device with the provided phone number, shortly. Take the call, and the recording will be played.
Send a voice play from an action
In order to send a voice message triggered by an alarm or a conditional event,
Set up an action that uses the Messenger.SendVoicePlay XCommand.
Select the configured Twilio Voice Play profile and provide Recipient and Message.
Save the action.
Use this action in the desired alarm or conditional event.
Send a voice play via LUA
To send a voice play within LUA scripts, use the XMessage LUA function.
...