Skip to main content
Version: 8.3 Beta đźš§

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​

TypeParameterDescription
StringaccountNameThe Twilio account to use for the calls.
StringfromNumberThe phone number configured with Twilio to use for making the calls.
StringtoNumberThe phone number of the recipient.
StringmessageThe message text to use in the call.
StringvoiceThe 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]
StringlanguageThe language code for the language to use for text-to-speech generation. Defaults to en-US if no language is configured. [optional]
BooleanrecordCallWhether to record the calls. Defaults to false. [optional]

Returns​

Nothing

Scope​

Gateway, Vision Client, Perspective Session