[asterisk-commits] alecdavis: branch 1.8 r374475 - /branches/1.8/main/dsp.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Oct 4 15:03:30 CDT 2012


Author: alecdavis
Date: Thu Oct  4 15:03:26 2012
New Revision: 374475

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=374475
Log:
dsp.c fix incorrect DTMF Digit_Duration.

it's always short by 'hits_to_begin*DTMF_GSIZE', or 25.5ms if hitstobegin=2

(issue ASTERISK-16003)
Tested by: alecdavis
alecdavis (license 585)

Review https://reviewboard.asterisk.org/r/2145/

Modified:
    branches/1.8/main/dsp.c

Modified: branches/1.8/main/dsp.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/dsp.c?view=diff&rev=374475&r1=374474&r2=374475
==============================================================================
--- branches/1.8/main/dsp.c (original)
+++ branches/1.8/main/dsp.c Thu Oct  4 15:03:26 2012
@@ -819,6 +819,7 @@
 			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;
 			}




More information about the asterisk-commits mailing list