Skip to content

Commit

Permalink
default on the dial should be 30 seconds if there is no second argument
Browse files Browse the repository at this point in the history
  • Loading branch information
johntdyer committed Mar 23, 2012
1 parent f6fa5b9 commit 6fd184c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tropo-agitate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def dial(destinations, *args)
options = {}

# Convert Asterisk app_dial inputs to Tropo syntax
options[:timeout] = args.shift.to_i if args.count
options[:timeout] = args.count.eql?(0) ? 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,
Expand Down

0 comments on commit 6fd184c

Please sign in to comment.