Skip to content

Commit

Permalink
Bit of code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Deryl R. Doucette committed Feb 10, 2012
1 parent 1a7e326 commit bf374b3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions features/step_definitions/ivr_listener.rb
Expand Up @@ -46,17 +46,14 @@ def handle_event(event)
if(path == SOUNDS[:ivr_welcome])
enter_key_sequence
end
if(path == SOUNDS[:ivr_press] and PLAYBACK_FILES.last == SOUNDS[:ivr_please])
#enter_password
puts "Holding off on the send in the 'else'"
end
# We call it logged in (or unsuccessful) when we hear any of these wavs
if(path == SOUNDS[:ivr_welcome] || path == SOUNDS[:ivr_screaming_monkeys])
# And hang up the call
@sock1.kill(@uuid).run
# Then stop the reactor
EM.stop
end

PLAYBACK_FILES << path
end

Expand Down

0 comments on commit bf374b3

Please sign in to comment.