File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
lib/bandwidth/voice_lib/bxml/verbs Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ class Ring
77
88 def to_bxml ( xml )
99 xml . Ring ( compact_hash ( {
10- 'duration' => duration
10+ 'duration' => duration ,
11+ 'answerCall' => answer_call
1112 } ) )
1213 end
1314 end
Original file line number Diff line number Diff line change @@ -555,13 +555,14 @@ def test_bridge
555555
556556 def test_ring
557557 ring = Bandwidth ::Voice ::Ring . new ( {
558- :duration => 5
558+ :duration => 5 ,
559+ :answer_call => false
559560 } )
560561
561562 response = Bandwidth ::Voice ::Response . new ( )
562563 response . push ( ring )
563564
564- expected = '<?xml version="1.0" encoding="UTF-8"?><Response><Ring duration="5"/></Response>'
565+ expected = '<?xml version="1.0" encoding="UTF-8"?><Response><Ring duration="5" answerCall="false" /></Response>'
565566 actual = response . to_bxml ( )
566567 assert_equal ( expected , actual )
567568 end
You can’t perform that action at this time.
0 commit comments