lib/punchblock/translator/input_component.rb in punchblock-2.0.2 vs lib/punchblock/translator/input_component.rb in punchblock-2.1.0

- old
+ new

@@ -6,11 +6,11 @@ def execute validate setup_dtmf_recognizer send_ref start_timers - rescue OptionError => e + rescue OptionError, ArgumentError => e with_error 'option error', e.message end def process_dtmf(digit) @recognizer << digit @@ -50,10 +50,10 @@ raise OptionError, 'A mode value other than DTMF is unsupported.' unless input_node.mode == :dtmf end def setup_dtmf_recognizer @recognizer = DTMFRecognizer.new self, - input_node.grammars.first.value, + input_node.grammars.first, (input_node.initial_timeout || -1), (input_node.inter_digit_timeout || -1), input_node.terminator end