diff --git a/src/switch_ivr_async.c b/src/switch_ivr_async.c index c2a009f725..aeae728065 100644 --- a/src/switch_ivr_async.c +++ b/src/switch_ivr_async.c @@ -2001,10 +2001,9 @@ static switch_bool_t eavesdrop_callback(switch_media_bug_t *bug, void *user_data } if (nframe) { - switch_frame_t frame = {0}; + switch_frame_t frame = *nframe; uint8_t buf[SWITCH_RECOMMENDED_BUFFER_SIZE] = ""; - frame = *nframe; frame.data = buf; frame.codec = nframe->codec;