From: Anthony Minessale Date: Fri, 24 Jul 2015 16:43:31 +0000 (-0500) Subject: FS-7891 should be bytes not samples X-Git-Tag: v1.6.2~233 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd31d60ee95a3e769c81a5e038b2a7597dbf435c;p=thirdparty%2Ffreeswitch.git FS-7891 should be bytes not samples --- diff --git a/src/mod/applications/mod_spandsp/mod_spandsp_dsp.c b/src/mod/applications/mod_spandsp/mod_spandsp_dsp.c index 9ab9622a52..40b804f86a 100644 --- a/src/mod/applications/mod_spandsp/mod_spandsp_dsp.c +++ b/src/mod/applications/mod_spandsp/mod_spandsp_dsp.c @@ -445,7 +445,7 @@ static switch_bool_t inband_dtmf_callback(switch_media_bug_t *bug, void *user_da if (switch_resample_create(&pvt->resampler, read_impl.actual_samples_per_second, 8000, - 8 * (read_impl.microseconds_per_packet / 1000), + 8 * (read_impl.microseconds_per_packet / 1000) * 2, SWITCH_RESAMPLE_QUALITY, 1) != SWITCH_STATUS_SUCCESS) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Unable to allocate resampler\n");