[core] native tap fix (pass the copy of the frame to switch_core_session_write_frame() so it does not get encoded)

This commit is contained in:
Dragos Oancea 2020-09-17 00:20:17 +03:00 committed by Andrey Volk
parent 7b8a36c2a9
commit 3509ae537e
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}