Sha256: 6c115291bc6d1c16702c0f837eae4b7d8ca283381ab2b4c09af71128e9c88849
Contents?: true
Size: 691 Bytes
Versions: 1
Compression:
Stored size: 691 Bytes
Contents
# encoding: utf-8 module Punchblock module Translator class Freeswitch module Component class Input < Component 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] end end end def unregister_dtmf_event_handler call.unregister_handler :es, @dtmf_handler_id if instance_variable_defined?(:@dtmf_handler_id) end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
punchblock-1.4.0 | lib/punchblock/translator/freeswitch/component/input.rb |