From: Dragos Oancea Date: Wed, 16 Sep 2020 21:20:17 +0000 (+0300) Subject: [core] native tap fix (pass the copy of the frame to switch_core_session_write_frame... X-Git-Tag: v1.10.6^2~51 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3509ae537e944b967d29f23340baf358ade4314c;p=thirdparty%2Ffreeswitch.git [core] native tap fix (pass the copy of the frame to switch_core_session_write_frame() so it does not get encoded) --- diff --git a/src/switch_ivr_async.c b/src/switch_ivr_async.c index 621836de00..a6972e847c 100644 --- a/src/switch_ivr_async.c +++ b/src/switch_ivr_async.c @@ -2084,7 +2084,7 @@ static switch_bool_t eavesdrop_callback(switch_media_bug_t *bug, void *user_data memcpy(frame.data, nframe->data, nframe->datalen); - if (switch_core_session_write_frame(ep->eavesdropper, nframe, SWITCH_IO_FLAG_NONE, 0) != SWITCH_STATUS_SUCCESS) { + if (switch_core_session_write_frame(ep->eavesdropper, &frame, SWITCH_IO_FLAG_NONE, 0) != SWITCH_STATUS_SUCCESS) { return SWITCH_FALSE; } }