lib/punchblock/component/output.rb in punchblock-0.11.0 vs lib/punchblock/component/output.rb in punchblock-0.12.0

- old
+ new

@@ -143,11 +143,11 @@ # output_obj.pause_action.to_xml # # returns: # <pause xmlns="urn:xmpp:tropo:output:1"/> def pause_action - Pause.new :component_id => component_id, :call_id => call_id + Pause.new :component_id => component_id, :target_call_id => target_call_id end ## # Sends an Rayo pause message for the current Output # @@ -168,11 +168,11 @@ # output_obj.resume_action.to_xml # # returns: # <resume xmlns="urn:xmpp:tropo:output:1"/> def resume_action - Resume.new :component_id => component_id, :call_id => call_id + Resume.new :component_id => component_id, :target_call_id => target_call_id end ## # Sends an Rayo resume message for the current Output # @@ -201,11 +201,11 @@ # output_obj.seek_action.to_xml # # returns: # <seek xmlns="urn:xmpp:rayo:output:1"/> def seek_action(options = {}) - Seek.new({ :component_id => component_id, :call_id => call_id }.merge(options)).tap do |s| + Seek.new({ :component_id => component_id, :target_call_id => target_call_id }.merge(options)).tap do |s| s.original_component = self end end ## @@ -266,11 +266,11 @@ # output_obj.speed_up_action.to_xml # # returns: # <speed-up xmlns="urn:xmpp:rayo:output:1"/> def speed_up_action - SpeedUp.new(:component_id => component_id, :call_id => call_id).tap do |s| + SpeedUp.new(:component_id => component_id, :target_call_id => target_call_id).tap do |s| s.original_component = self end end ## @@ -292,11 +292,11 @@ # output_obj.slow_down_action.to_xml # # returns: # <speed-down xmlns="urn:xmpp:rayo:output:1"/> def slow_down_action - SlowDown.new(:component_id => component_id, :call_id => call_id).tap do |s| + SlowDown.new(:component_id => component_id, :target_call_id => target_call_id).tap do |s| s.original_component = self end end ## @@ -360,11 +360,11 @@ # output_obj.volume_up_action.to_xml # # returns: # <volume-up xmlns="urn:xmpp:rayo:output:1"/> def volume_up_action - VolumeUp.new(:component_id => component_id, :call_id => call_id).tap do |s| + VolumeUp.new(:component_id => component_id, :target_call_id => target_call_id).tap do |s| s.original_component = self end end ## @@ -386,10 +386,10 @@ # output_obj.volume_down_action.to_xml # # returns: # <volume-down xmlns="urn:xmpp:rayo:output:1"/> def volume_down_action - VolumeDown.new(:component_id => component_id, :call_id => call_id).tap do |s| + VolumeDown.new(:component_id => component_id, :target_call_id => target_call_id).tap do |s| s.original_component = self end end ##