MT#55283 write proc packet also when forwarding

Closes #2177

Change-Id: I69260ea3564879c1354c8c447e7f78abc72786e6
(cherry picked from commit cbb0c23b89)
pull/2215/head
Richard Fuchs 1 month ago
parent 9fc1340070
commit d39a8ea5d3

@ -1114,12 +1114,14 @@ static void setup_media_proc(struct call_media *media) {
}
static void dump_packet_proc(struct media_packet *mp, const str *s) {
struct packet_stream *stream = mp->stream;
if (stream->recording.proc.stream_idx == UNINIT_IDX)
return;
if (!CALL_ISSET(mp->call, RECORDING_ON))
if (!CALL_ISSET(mp->call, RECORDING_ON)
&& !CALL_ISSET(mp->call, REC_FORWARDING)
&& !(stream->media->monologue
&& ML_ISSET(stream->media->monologue, REC_FORWARDING)))
return;
struct rtpengine_command_packet *cmd;

Loading…
Cancel
Save