File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ class LiveCallRouting::Twilio::V3 < Integration
6
6
{ key : :api_secret , type : :string , default : nil } ,
7
7
{ key : :force_input , type : :boolean , default : false } ,
8
8
{ key : :record , type : :boolean , default : false } ,
9
- { key : :record_email , type : :string , default : "" }
9
+ { key : :record_email , type : :string , default : "" } ,
10
+ { key : :dial_pause , type : :integer }
10
11
]
11
12
store_accessor :options , *OPTIONS . map { |x | x [ :key ] } . map ( &:to_s ) , prefix : "option"
12
13
@@ -397,7 +398,7 @@ def _on_acknowledge
397
398
398
399
if number . present?
399
400
_twiml . play ( url : option_connect_now_media_url )
400
- _twiml . pause ( length : 1 )
401
+ _twiml . pause ( length : option_dial_pause . to_i . clamp ( 1 , 15 ) )
401
402
_twiml . dial ( number : number , caller_id : _call . to , answer_on_bridge : true )
402
403
_call . update ( twiml : _twiml . to_xml )
403
404
# log if we successfully transfered or failed
You can’t perform that action at this time.
0 commit comments