String accountName - The Twilio account for which to retrieve phone numbers.
List - A list of phone numbers for the given Twilio account.
Gateway, Vision Client, Perspective Session
# Retrieves a list of phone numbers associated with a Twilio account and then iterates through the resulting list.
# Checks against a Twilio profile configured on the Gateway by the name of "Twilio Account".
# Call system.twilio.getPhoneNumbers() and store the returned list into a variable.
twilioNumbers = system.twilio.getPhoneNumbers("Twilio Account")
# Iterate through the list of numbers.
for number in twilioNumbers:
# Prints the numbers to the console, but could do something more useful with each number.
system twilio getPhoneNumbers, twilio.getPhoneNumbers