Skip to content

Commit facf2d8

Browse files
committed
Add tracks attribute
1 parent 9362b6a commit facf2d8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/bandwidth/voice_lib/bxml/verbs/start_stream.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ def to_bxml(xml)
1010
xml.StartStream(compact_hash({
1111
'destination' => destination,
1212
'name' => name,
13+
'tracks' => tracks,
1314
'streamEventUrl' => streamEventUrl,
1415
'streamEventMethod' => streamEventMethod,
1516
'username' => username,

test/integration/test_integration.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,11 +690,12 @@ def test_webrtc_generate_transfer_bxml_verb
690690
end
691691

692692
def test_start_stream_bxml_verb
693-
expected = '<?xml version="1.0" encoding="UTF-8"?><Response><StartStream destination="https://www.test.com/stream" name="test_stream" streamEventUrl="https://www.test.com/event" streamEventMethod="POST" username="username" password="password"/></Response>'
693+
expected = '<?xml version="1.0" encoding="UTF-8"?><Response><StartStream destination="https://www.test.com/stream" name="test_stream" tracks="inbound" streamEventUrl="https://www.test.com/event" streamEventMethod="POST" username="username" password="password"/></Response>'
694694
response = Bandwidth::Voice::Response.new()
695695
start_stream = Bandwidth::Voice::StartStream.new({
696696
:destination => "https://www.test.com/stream",
697697
:name => "test_stream",
698+
:tracks => "inbound",
698699
:streamEventUrl => "https://www.test.com/event",
699700
:streamEventMethod => "POST",
700701
:username => "username",

0 commit comments

Comments
 (0)