Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Switched to simply checking if the first argument is empty

  • Loading branch information...
commit ee85033f842bccea947a770df0f041e5ba7af45c 1 parent 2ed6ed6
@johntdyer authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/tropo-agitate.rb
View
2  lib/tropo-agitate.rb
@@ -199,7 +199,7 @@ def dial(destinations, *args)
show("______| #{p options} |______" )
show("______| #{args.count} |______" )
# Convert Asterisk app_dial inputs to Tropo syntax
- options[:timeout] = args.count.eql?(0) ? 30 : args.shift.to_i
+ options[:timeout] = args[0].empty? ? 30 : args.shift.to_i
# TODO: We may want to provide some compatibility with Asterisk dial flags
# like m for MOH, A() to play announcement to called party,
Please sign in to comment.
Something went wrong with that request. Please try again.