From 75dc5caf6d69a5d19fa88a3cd1eddac67ae253b2 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Thu, 9 Oct 2008 22:50:44 +0000 Subject: [PATCH] fix resampler bug git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9918 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_ivr_originate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_ivr_originate.c b/src/switch_ivr_originate.c index ed4cb7d755..c8421addc8 100644 --- a/src/switch_ivr_originate.c +++ b/src/switch_ivr_originate.c @@ -1349,7 +1349,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess } olen = mlen; - if (ringback.fh->resampler) { + if (ringback.fh->resampler && ringback.fh->resampler->rfactor > 1) { olen = (switch_size_t) (olen * ringback.fh->resampler->rfactor); }