mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
MODAPP-226
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12466 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -975,9 +975,10 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_collect_digits_count(switch_core_sess
|
||||
switch_ivr_parse_all_events(session);
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (eff_timeout) {
|
||||
digit_elapsed = (uint32_t) ((switch_micro_time_now() - digit_started) / 1000);
|
||||
|
||||
if (digit_elapsed >= eff_timeout) {
|
||||
status = SWITCH_STATUS_TIMEOUT;
|
||||
break;
|
||||
@@ -987,7 +988,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_collect_digits_count(switch_core_sess
|
||||
if (switch_channel_has_dtmf(channel)) {
|
||||
switch_dtmf_t dtmf = { 0 };
|
||||
switch_size_t y;
|
||||
|
||||
|
||||
if (eff_timeout) {
|
||||
eff_timeout = digit_timeout;
|
||||
digit_started = switch_micro_time_now();
|
||||
@@ -1006,6 +1007,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_collect_digits_count(switch_core_sess
|
||||
|
||||
buf[x++] = dtmf.digit;
|
||||
buf[x] = '\0';
|
||||
|
||||
if (x >= buflen || x >= maxdigits) {
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
}
|
||||
|
Reference in New Issue
Block a user