Table of Contents |
---|
Introduction
...
- In the Core Studio, open Modules > Messenger > [Live] Twilio Voice Messge.
- 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 message via XLogic
Use a Twilio SMS Voice Message messenger profile in combination with the Messenger.SendVoiceMessage XCommand.
...
- Go to Tools > Run XCommand.
- Select XCommand MESSENGER.SENDSMSSENDVOICEMESSAGE and fill the required fields:
- Profile: the name of the configured profile
- Recipient: recipient phone number
- Message: message text as string
- Click Execute to send the message.
You will receive the message a phone call on the device with the provided phone number, shortly. Take the call, and the voice message will be played.
Send a voice message from an action
In order to send an SMS a voice message triggered by an alarm or a conditional event,
- Set up an action that uses the Messenger.SendVoiceMessage XCommand.
- Select the configured Twilio profile and provide Recipient and Message.
SCREENSHOT - Save the action.
- Use this action in the desired alarm or conditional event.
Send a voice message via LUA
To send an SMS within a voice message within LUA scripts, use the XMessage LUA function.
...
- Device: not used for sending SMS. Leave empty.
- UserOrGroup: not used for sending SMS. Leave empty.
- MessageType: "TwilioSmsTwilioVoiceMessage"
- Parameter1: name of the Twilio SMS Voice Message messenger profile
- Parameter2: recipient phone number
- Parameter3: message text as string
The following example uses the Twilio SMS Voice Message messenger profile "twyour-profile-name
" to send an SMSa voice message:
|