lib/punchblock/translator/freeswitch/component/input.rb in punchblock-1.8.0 vs lib/punchblock/translator/freeswitch/component/input.rb in punchblock-1.8.1
- old
+ new
@@ -9,13 +9,12 @@
include InputComponent
private
def register_dtmf_event_handler
- component = current_actor
call.register_handler :es, :event_name => 'DTMF' do |event|
safe_from_dead_actors do
- component.process_dtmf! event[:dtmf_digit]
+ @recognizer << event[:dtmf_digit]
end
end
end
def unregister_dtmf_event_handler