MT#55283 write proc packet also when forwarding

Closes #2177

Change-Id: I69260ea3564879c1354c8c447e7f78abc72786e6
(cherry picked from commit cbb0c23b89)
(cherry picked from commit 3f21ed5269)
mr26.2.1
Richard Fuchs 1 month ago
parent 5a7053e4a7
commit 48f1cff226

@ -1145,12 +1145,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