lib/punchblock/connection/asterisk.rb in punchblock-0.6.1 vs lib/punchblock/connection/asterisk.rb in punchblock-0.6.2

- old
+ new

@@ -5,16 +5,16 @@ class Asterisk < GenericConnection attr_reader :ami_client, :translator attr_accessor :event_handler def initialize(options = {}) - options[:logger] = options[:wire_logger] - @ami_client = RubyAMI::Client.new options.merge(:event_handler => lambda { |event| translator.handle_ami_event! event }) + @ami_client = RubyAMI::Client.new options.merge(:event_handler => lambda { |event| translator.handle_ami_event! event }, :logger => pb_logger) @translator = Translator::Asterisk.new @ami_client, self super() end def run + logger.debug "Starting the RubyAMI client" ami_client.start end def stop ami_client.stop