Merge pull request #2038 from signalwire/capture

[mod_commands] Fix leaking session readlock in uuid_capture_text
This commit is contained in:
Andrey Volk 2023-04-14 16:51:13 +03:00 committed by GitHub
commit b1bf3b0574
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -3225,6 +3225,7 @@ SWITCH_STANDARD_API(uuid_capture_text)
} else {
if ((tsession = switch_core_session_locate(uuid))) {
switch_ivr_capture_text(tsession, switch_true(onoff));
switch_core_session_rwunlock(tsession);
} else {
stream->write_function(stream, "-ERR No such channel %s!\n", uuid);
}