diff --git a/src/switch_ivr_originate.c b/src/switch_ivr_originate.c index 91a12b0308..da70856851 100644 --- a/src/switch_ivr_originate.c +++ b/src/switch_ivr_originate.c @@ -421,7 +421,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_wait_for_answer(switch_core_session_t olen = mlen; if (ringback.fh->resampler) { - olen *= ringback.fh->resampler->rfactor; + olen = (switch_size_t) (olen * ringback.fh->resampler->rfactor); } switch_core_file_read(ringback.fh, write_frame.data, &olen); @@ -1220,7 +1220,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess olen = mlen; if (ringback.fh->resampler) { - olen *= ringback.fh->resampler->rfactor; + olen = (switch_size_t) (olen * ringback.fh->resampler->rfactor); } switch_core_file_read(ringback.fh, write_frame.data, &olen);