Browse Source

MT#55283 fix recording auto-start when paused on new offer

When a new offer is received while recording is in paused mode,
recording should remain paused until explicitly re-enabled.

The detect_setup_recording function was starting recording when
record_call flags were set, ignoring the current pause state.

🤖 Generated with [Claude Code](https://claude.ai/code)

Closes #1983

Change-Id: I49daf03532b74ec942550b184a7e7d2828e70f81
Co-Authored-By: Claude <noreply@anthropic.com>
pull/1987/head
Orgad Shaneh 5 months ago
committed by Richard Fuchs
parent
commit
80240f62ef
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      daemon/recording.c

+ 6
- 2
daemon/recording.c View File

@ -495,8 +495,12 @@ void detect_setup_recording(call_t *call, const sdp_ng_flags *flags) {
const str *recordcall = &flags->record_call_str; const str *recordcall = &flags->record_call_str;
if (!str_cmp(recordcall, "yes") || !str_cmp(recordcall, "on") || flags->record_call)
recording_start(call);
if (!str_cmp(recordcall, "yes") || !str_cmp(recordcall, "on") || flags->record_call) {
// Don't auto-start recording if it's currently paused
// Only start if there's no existing recording or if recording is not paused
if (!call->recording || CALL_ISSET(call, RECORDING_ON))
recording_start(call);
}
else if (!str_cmp(recordcall, "no") || !str_cmp(recordcall, "off")) else if (!str_cmp(recordcall, "no") || !str_cmp(recordcall, "off"))
recording_stop(call); recording_stop(call);
else if (!str_cmp(recordcall, "discard") || flags->discard_recording) else if (!str_cmp(recordcall, "discard") || flags->discard_recording)


Loading…
Cancel
Save