NAME

Twilio::Rest::Api::V2010::Account::Address::DependentPhoneNumber - The DependentPhoneNumber resource

SYNOPSIS

my $client = Twilio::Rest::Client->new($account_sid, $auth_token);

for my $dependent_phone_number ($client->addresses($address_sid)->dependent_phone_numbers->read({}, 20)) {
  ...
}

DESCRIPTION

Phone numbers dependent on an Address resource

This file holds DependentPhoneNumberList, DependentPhoneNumberPage and DependentPhoneNumberInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

DependentPhoneNumberList

Returned by $client->addresses($address_sid)->dependent_phone_numbers. See also Twilio::ListResource.

read

my @records = $client->addresses($address_sid)->dependent_phone_numbers->read(\%options, $limit, $page_size);

Returns the records as a list, fetching as many pages as it needs.

stream

my $stream = $client->addresses($address_sid)->dependent_phone_numbers->stream(\%options, $limit, $page_size);

Takes the same arguments as "read", and returns a Twilio::Stream.

page

my $page = $client->addresses($address_sid)->dependent_phone_numbers->page(\%options, $page_size, $page_token, $page_number);

Fetches one page, and returns a Twilio::Page.

get_page

my $page = $client->addresses($address_sid)->dependent_phone_numbers->get_page($url);

Fetches the page at a URL given by Twilio.

DependentPhoneNumberPage

A Twilio::Page of DependentPhoneNumberInstance objects.

records_key

build_instance

Used by Twilio::Page.

DependentPhoneNumberInstance

See also Twilio::InstanceResource.

Its fields are:

account_sid

The SID of the Account that created the DependentPhoneNumber resource.

address_requirements

One of none, any, local or foreign.

api_version

The API version used to start a new TwiML session.

capabilities

The set of Boolean properties that indicates whether a phone number can receive calls or messages. Capabilities are Voice, SMS, and MMS and each capability can be: true or false.

date_created

The date and time in GMT that the resource was created specified in RFC 2822 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

date_updated

The date and time in GMT that the resource was last updated specified in RFC 2822 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

emergency_address_sid

The SID of the emergency address configuration that we use for emergency calling from the phone number.

emergency_status

One of Active or Inactive.

friendly_name

The string that you assigned to describe the resource.

phone_number

The phone number in E.164 format, which consists of a + followed by the country code and subscriber number.

sid

The unique string that that we created to identify the DependentPhoneNumber resource.

sms_application_sid

The SID of the application that handles SMS messages sent to the phone number. If an sms_application_sid is present, we ignore all sms_*_url values and use those of the application.

sms_fallback_method

The HTTP method we use to call sms_fallback_url. Can be: GET or POST. One of GET or POST.

sms_fallback_url

The URL that we call when an error occurs while retrieving or executing the TwiML from sms_url.

sms_method

The HTTP method we use to call sms_url. Can be: GET or POST. One of GET or POST.

sms_url

The URL we call when the phone number receives an incoming SMS message.

status_callback

The URL we call using the status_callback_method to send status information to your application.

status_callback_method

The HTTP method we use to call status_callback. Can be: GET or POST. One of GET or POST.

trunk_sid

The SID of the Trunk that handles calls to the phone number. If a trunk_sid is present, we ignore all of the voice urls and voice applications and use those set on the Trunk. Setting a trunk_sid will automatically delete your voice_application_sid and vice versa.

uri

The URI of the resource, relative to https://api.twilio.com.

voice_application_sid

The SID of the application that handles calls to the phone number. If a voice_application_sid is present, we ignore all of the voice urls and use those set on the application. Setting a voice_application_sid will automatically delete your trunk_sid and vice versa.

voice_caller_id_lookup

Whether we look up the caller's caller-ID name from the CNAM database. Can be: true or false. Caller ID lookups can cost $0.01 each.

voice_fallback_method

The HTTP method we use to call voice_fallback_url. Can be: GET or POST. One of GET or POST.

voice_fallback_url

The URL that we call when an error occurs retrieving or executing the TwiML requested by url.

voice_method

The HTTP method we use to call voice_url. Can be: GET or POST. One of GET or POST.

voice_url

The URL we call when the phone number receives a call. The voice_url will not be used if a voice_application_sid or a trunk_sid is set.

CONSTRUCTORS

new

Objects here come from the methods above, so there is no need to call new directly.

LICENSE

Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.