NAME
Twilio::TwiML::Voice::Dial - The Dial element of TwiML
SYNOPSIS
my $element = Twilio::TwiML::Voice::Dial->new($number, \%attributes);
DESCRIPTION
See Twilio::TwiML::TwiML for the methods every element has.
METHODS
new
my $element = Twilio::TwiML::Voice::Dial->new($number, \%attributes);
attribute_table
Used by Twilio::TwiML::TwiML.
application
my $child = $element->application($application_sid, \%attributes);
Add Application child. Returns a Twilio::TwiML::Voice::Application.
client
my $child = $element->client($identity, \%attributes);
Add Client child. Returns a Twilio::TwiML::Voice::Client.
conference
my $child = $element->conference($name, \%attributes);
Add Conference child. Returns a Twilio::TwiML::Voice::Conference.
number
my $child = $element->number($phone_number, \%attributes);
Add Number child. Returns a Twilio::TwiML::Voice::Number.
queue
my $child = $element->queue($name, \%attributes);
Add Queue child. Returns a Twilio::TwiML::Voice::Queue.
sim
my $child = $element->sim($sim_sid);
Add Sim child. Returns a Twilio::TwiML::Voice::Sim.
sip
my $child = $element->sip($sip_url, \%attributes);
Add Sip child. Returns a Twilio::TwiML::Voice::Sip.
whats_app
my $child = $element->whats_app($phone_number, \%attributes);
Add WhatsApp child. Returns a Twilio::TwiML::Voice::WhatsApp.
ATTRIBUTES
Each name works in \%attributes, and as a set_ method that returns the element.
action-
Action URL
answer_on_bridge-
Preserve the ringing behavior of the inbound call until the Dialed call picks up True or false.
caller_id-
Caller ID to display
events-
Subscription to events
hangup_on_star-
Hangup call on star press True or false.
method-
Action URL method
passports-
Base64-encoded comma-separated identity passports (e.g. shaken, div)
record-
Record the call
recording_configuration_id-
Configuration for the recording
recording_status_callback-
Recording status callback URL
recording_status_callback_event-
Recording status callback events An array reference.
recording_status_callback_method-
Recording status callback URL method
recording_track-
To indicate which audio track should be recorded
refer_method-
The HTTP method to use for the refer Webhook
refer_url-
Webhook that will receive future SIP REFER requests
ring_tone-
Ringtone allows you to override the ringback tone that Twilio will play back to the caller while executing the Dial
sequential-
Used to determine if child TwiML nouns should be dialed in order, one after the other (sequential) or dial all at once (parallel). Default is false, parallel True or false.
time_limit-
Max time length
timeout-
Time to wait for answer
trim-
Trim the recording
set_action
set_answer_on_bridge
set_caller_id
set_events
set_hangup_on_star
set_method
set_passports
set_record
set_recording_configuration_id
set_recording_status_callback
set_recording_status_callback_event
set_recording_status_callback_method
set_recording_track
set_refer_method
set_refer_url
set_ring_tone
set_sequential
set_time_limit
set_timeout
set_trim
Set the attribute of the same name.
LICENSE
Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.