lib/adhearsion/call_controller/output/async_player.rb in adhearsion-2.3.5 vs lib/adhearsion/call_controller/output/async_player.rb in adhearsion-2.4.0.beta1
- old
+ new
@@ -8,10 +8,10 @@
#
# @yields The output component before executing it
# @raises [PlaybackError] if (one of) the given argument(s) could not be played
#
def output(content, options = {})
- options.merge! :ssml => content.to_s
+ options.merge! :ssml => content
component = new_output options
component.register_event_handler Punchblock::Event::Complete do |event|
controller.logger.error event if event.reason.is_a?(Punchblock::Event::Complete::Error)
end
controller.write_and_await_response component