| 1 | # Generated by tools/generate.pl from tools/twiml-elements.json. Do not edit this file. | ||
| 2 | package Twilio::TwiML::Voice::Sip; | ||
| 3 | |||
| 4 | 2 | ▶ | use 5.016; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 2 | ▶ | use parent 'Twilio::TwiML::TwiML'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 2 | our $VERSION = '2.001'; | |
| 10 | |||
| 11 | 2 | my %ATTRIBUTES = ( | |
| 12 | 'amd_status_callback' => { name => 'amdStatusCallback' }, | ||
| 13 | 'amdStatusCallback' => { name => 'amdStatusCallback' }, | ||
| 14 | 'amd_status_callback_method' => { name => 'amdStatusCallbackMethod' }, | ||
| 15 | 'amdStatusCallbackMethod' => { name => 'amdStatusCallbackMethod' }, | ||
| 16 | 'machine_detection' => { name => 'machineDetection' }, | ||
| 17 | 'machineDetection' => { name => 'machineDetection' }, | ||
| 18 | 'machine_detection_silence_timeout' => { name => 'machineDetectionSilenceTimeout' }, | ||
| 19 | 'machineDetectionSilenceTimeout' => { name => 'machineDetectionSilenceTimeout' }, | ||
| 20 | 'machine_detection_speech_end_threshold' => { name => 'machineDetectionSpeechEndThreshold' }, | ||
| 21 | 'machineDetectionSpeechEndThreshold' => { name => 'machineDetectionSpeechEndThreshold' }, | ||
| 22 | 'machine_detection_speech_threshold' => { name => 'machineDetectionSpeechThreshold' }, | ||
| 23 | 'machineDetectionSpeechThreshold' => { name => 'machineDetectionSpeechThreshold' }, | ||
| 24 | 'machine_detection_timeout' => { name => 'machineDetectionTimeout' }, | ||
| 25 | 'machineDetectionTimeout' => { name => 'machineDetectionTimeout' }, | ||
| 26 | 'method' => { name => 'method' }, | ||
| 27 | 'password' => { name => 'password' }, | ||
| 28 | 'status_callback' => { name => 'statusCallback' }, | ||
| 29 | 'statusCallback' => { name => 'statusCallback' }, | ||
| 30 | 'status_callback_event' => { name => 'statusCallbackEvent' }, | ||
| 31 | 'statusCallbackEvent' => { name => 'statusCallbackEvent' }, | ||
| 32 | 'status_callback_method' => { name => 'statusCallbackMethod' }, | ||
| 33 | 'statusCallbackMethod' => { name => 'statusCallbackMethod' }, | ||
| 34 | 'url' => { name => 'url' }, | ||
| 35 | 'username' => { name => 'username' }, | ||
| 36 | ); | ||
| 37 | |||
| 38 | 30 | ▶ | sub attribute_table { return \%ATTRIBUTES } |
|
Subroutine
attribute_table: called CC=1 SCAR=0.0
Pod
documented
| |||
| 39 | |||
| 40 | 4 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 41 | 4 | my ($class, $sip_url, $attributes) = @_; | |
| 42 | 4 | return $class->SUPER::new('Sip', $sip_url, $attributes); | |
| 43 | } | ||
| 44 | |||
| 45 | 2 | ▶ | sub headers { |
|
Subroutine
headers: called CC=1 SCAR=0.0
Pod
documented
| |||
| 46 | 2 | my ($self) = @_; | |
| 47 | 2 | require Twilio::TwiML::Voice::Headers; | |
| 48 | 2 | return $self->nest(Twilio::TwiML::Voice::Headers->new()); | |
| 49 | } | ||
| 50 | |||
| 51 | 2 | ▶ | sub uri { |
|
Subroutine
uri: called CC=1 SCAR=0.0
Pod
documented
| |||
| 52 | 2 | my ($self, $sip_url, $attributes) = @_; | |
| 53 | 2 | require Twilio::TwiML::Voice::SipUri; | |
| 54 | 2 | return $self->nest(Twilio::TwiML::Voice::SipUri->new($sip_url, $attributes)); | |
| 55 | } | ||
| 56 | |||
| 57 | 1 | ▶ | sub set_amd_status_callback { |
|
Subroutine
set_amd_status_callback: called CC=1 SCAR=0.0
Pod
documented
| |||
| 58 | 1 | my ($self, $value) = @_; | |
| 59 | 1 | return $self->set_attribute('amd_status_callback', $value); | |
| 60 | } | ||
| 61 | |||
| 62 | 1 | ▶ | sub set_amd_status_callback_method { |
|
Subroutine
set_amd_status_callback_method: called CC=1 SCAR=0.0
Pod
documented
| |||
| 63 | 1 | my ($self, $value) = @_; | |
| 64 | 1 | return $self->set_attribute('amd_status_callback_method', $value); | |
| 65 | } | ||
| 66 | |||
| 67 | 1 | ▶ | sub set_machine_detection { |
|
Subroutine
set_machine_detection: called CC=1 SCAR=0.0
Pod
documented
| |||
| 68 | 1 | my ($self, $value) = @_; | |
| 69 | 1 | return $self->set_attribute('machine_detection', $value); | |
| 70 | } | ||
| 71 | |||
| 72 | 1 | ▶ | sub set_machine_detection_silence_timeout { |
|
Subroutine
set_machine_detection_silence_timeout: called CC=1 SCAR=0.0
Pod
documented
| |||
| 73 | 1 | my ($self, $value) = @_; | |
| 74 | 1 | return $self->set_attribute('machine_detection_silence_timeout', $value); | |
| 75 | } | ||
| 76 | |||
| 77 | 1 | ▶ | sub set_machine_detection_speech_end_threshold { |
|
Subroutine
set_machine_detection_speech_end_threshold: called CC=1 SCAR=0.0
Pod
documented
| |||
| 78 | 1 | my ($self, $value) = @_; | |
| 79 | 1 | return $self->set_attribute('machine_detection_speech_end_threshold', $value); | |
| 80 | } | ||
| 81 | |||
| 82 | 1 | ▶ | sub set_machine_detection_speech_threshold { |
|
Subroutine
set_machine_detection_speech_threshold: called CC=1 SCAR=0.0
Pod
documented
| |||
| 83 | 1 | my ($self, $value) = @_; | |
| 84 | 1 | return $self->set_attribute('machine_detection_speech_threshold', $value); | |
| 85 | } | ||
| 86 | |||
| 87 | 1 | ▶ | sub set_machine_detection_timeout { |
|
Subroutine
set_machine_detection_timeout: called CC=1 SCAR=0.0
Pod
documented
| |||
| 88 | 1 | my ($self, $value) = @_; | |
| 89 | 1 | return $self->set_attribute('machine_detection_timeout', $value); | |
| 90 | } | ||
| 91 | |||
| 92 | 1 | ▶ | sub set_method { |
|
Subroutine
set_method: called CC=1 SCAR=0.0
Pod
documented
| |||
| 93 | 1 | my ($self, $value) = @_; | |
| 94 | 1 | return $self->set_attribute('method', $value); | |
| 95 | } | ||
| 96 | |||
| 97 | 1 | ▶ | sub set_password { |
|
Subroutine
set_password: called CC=1 SCAR=0.0
Pod
documented
| |||
| 98 | 1 | my ($self, $value) = @_; | |
| 99 | 1 | return $self->set_attribute('password', $value); | |
| 100 | } | ||
| 101 | |||
| 102 | 1 | ▶ | sub set_status_callback { |
|
Subroutine
set_status_callback: called CC=1 SCAR=0.0
Pod
documented
| |||
| 103 | 1 | my ($self, $value) = @_; | |
| 104 | 1 | return $self->set_attribute('status_callback', $value); | |
| 105 | } | ||
| 106 | |||
| 107 | 1 | ▶ | sub set_status_callback_event { |
|
Subroutine
set_status_callback_event: called CC=1 SCAR=0.0
Pod
documented
| |||
| 108 | 1 | my ($self, $value) = @_; | |
| 109 | 1 | return $self->set_attribute('status_callback_event', $value); | |
| 110 | } | ||
| 111 | |||
| 112 | 1 | ▶ | sub set_status_callback_method { |
|
Subroutine
set_status_callback_method: called CC=1 SCAR=0.0
Pod
documented
| |||
| 113 | 1 | my ($self, $value) = @_; | |
| 114 | 1 | return $self->set_attribute('status_callback_method', $value); | |
| 115 | } | ||
| 116 | |||
| 117 | 1 | ▶ | sub set_url { |
|
Subroutine
set_url: called CC=1 SCAR=0.0
Pod
documented
| |||
| 118 | 1 | my ($self, $value) = @_; | |
| 119 | 1 | return $self->set_attribute('url', $value); | |
| 120 | } | ||
| 121 | |||
| 122 | 1 | ▶ | sub set_username { |
|
Subroutine
set_username: called CC=1 SCAR=0.0
Pod
documented
| |||
| 123 | 1 | my ($self, $value) = @_; | |
| 124 | 1 | return $self->set_attribute('username', $value); | |
| 125 | } | ||
| 126 | |||
| 127 | 2 | 1; | |
| 128 | |||
| 129 | __END__ | ||