lib/punchblock/connection/asterisk.rb in punchblock-2.0.0.beta1 vs lib/punchblock/connection/asterisk.rb in punchblock-2.0.0.beta2
- old
+ new
@@ -8,12 +8,11 @@
attr_reader :ami_client, :translator
attr_accessor :event_handler
def initialize(options = {})
@stream_options = options.values_at(:host, :port, :username, :password)
- @translator_options = options.values_at(:media_engine)
@ami_client = new_ami_stream
- @translator = Translator::Asterisk.new @ami_client, self, *@translator_options
+ @translator = Translator::Asterisk.new @ami_client, self
super()
end
def run
start_ami_client