system.twilio.sendPhoneCall
This function is used in Python Scripting.
Description​
Sends a phone call to a specific phone number. In order to work, a Twilio account must be configured in the Gateway with a valid number configured for use with Twilio Voice.
Client Permission Restrictions​
This scripting function has no Client Permission restrictions.
Syntax​
system.twilio.sendPhoneCall(accountName, fromNumber, toNumber, message, voice, language, recordCall)
Parameters​
Type | Parameter | Description |
---|---|---|
String | accountName | The Twilio account to use for the calls. |
String | fromNumber | The phone number configured with Twilio to use for making the calls. |
String | toNumber | The phone number of the recipient. |
String | message | The message text to use in the call. |
String | voice | The voice-to-text algorithm to use. “man” and “woman” are the basic Twilio voice-to-text algorithms, but Twilio also supports using Amazon’s and Google’s voice-to-text algorithms, though pricing may vary depending on your Twilio subscription. Defaults to “man”. [optional] |
String | language | The language code for the language to use for text-to-speech generation. Defaults to en-US if no language is configured. [optional] |
Boolean | recordCall | Whether to record the calls. Defaults to false. [optional] |
Returns​
Nothing
Scope​
Gateway, Vision Client, Perspective Session