Skip to main content
Version: 8.3 Beta 🚧

system.twilio.getActiveCall

This function is used in Python Scripting.

Description​

Returns a list of configurations for currently active Twilio voice calls. This only applies to synchronous calls that use the reverse-proxy system to call back into Ignition for authentication and alarm acknowledgements. Since calls can last minutes and potentially be stuck ringing for some time, this function gives users a view of the current state of call notifications while they're active.

Client Permission Restrictions​

This scripting function has no Client Permission restrictions.

Syntax​

system.twilio.getActiveCall(accountName)

Parameters​

TypeParameterDescription
StringaccountNameThe Twilio account to use for the calls.

Returns​

CallView - An array of CallView objects, including the properties listed below.

PropertyDescriptionType
sidThe unique ID generated by Twilio representing the call.String
answeredByWhether the call was answered by a human or a machine.String
statusCurrent call status, options include BUSY, CANCELED, COMPLETED, FAILED, IN_PROGRESS, NO_ANSWER, QUEUED, and RINGING.String
apiVersionAPI version used to create the call.String
callerNameThe caller's name, if Caller ID is enabled.String
durationThe duration of the call.String
fromThe phone number configured with Twilio to use for making the calls.String
toThe phone number of the recipient.String
queueTimeStringThe call queue time.String
dateCreatedStringThe call creation date, formatted as a org.joda.time.DateTime object.String
dateUpdatedStringThe call updated date, formatted as a org.joda.time.DateTime object.String
endTimeStringThe call end time, formatted as a org.joda.time.DateTime object.String
startTimeStringThe call start time, formatted as a org.joda.time.DateTime object.String
dateCreatedThe call creation date.Long
dateUpdatedThe call updated date.Long
endTimeThe call end time.Long
startTimeThe call start time.Long

Scope​

Gateway, Vision Client, Perspective Session