Skip to content

Commit

Permalink
HELP-21214: set timeout based on noop id
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesaimonetti committed Mar 5, 2016
1 parent 26a72ef commit de01d1c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/whistle_apps/src/whapps_call_command.erl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
%%%-------------------------------------------------------------------
%%% @copyright (C) 2012-2015, 2600Hz INC
%%% @copyright (C) 2012-2016, 2600Hz INC
%%% @doc
%%%
%%% @end
Expand Down Expand Up @@ -2060,19 +2060,22 @@ b_privacy(Mode, Call) ->
collect_digits(MaxDigits, Call) ->
do_collect_digits(#wcc_collect_digits{max_digits=wh_util:to_integer(MaxDigits)
,call=Call
,after_timeout=?DEFAULT_DIGIT_TIMEOUT
}).

collect_digits(MaxDigits, Timeout, Call) ->
do_collect_digits(#wcc_collect_digits{max_digits=wh_util:to_integer(MaxDigits)
,timeout=wh_util:to_integer(Timeout)
,call=Call
,after_timeout=wh_util:to_integer(Timeout)
}).

collect_digits(MaxDigits, Timeout, Interdigit, Call) ->
do_collect_digits(#wcc_collect_digits{max_digits=wh_util:to_integer(MaxDigits)
,timeout=wh_util:to_integer(Timeout)
,interdigit=wh_util:to_integer(Interdigit)
,call=Call
,after_timeout=wh_util:to_integer(Timeout)
}).

collect_digits(MaxDigits, Timeout, Interdigit, NoopId, Call) ->
Expand Down

0 comments on commit de01d1c

Please sign in to comment.