diff options
-rw-r--r-- | main/dsp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/dsp.c b/main/dsp.c index 3ff5f009d..99b5092d9 100644 --- a/main/dsp.c +++ b/main/dsp.c @@ -816,6 +816,7 @@ static int dtmf_detect(struct ast_dsp *dsp, digit_detect_state_t *s, int16_t amp s->td.dtmf.hits++; if (s->td.dtmf.hits == s->td.dtmf.hits_to_begin) { store_digit(s, hit); + s->digitlen[s->current_digits - 1] = s->td.dtmf.hits_to_begin * DTMF_GSIZE; s->td.dtmf.current_hit = hit; s->td.dtmf.misses = 0; } |