]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
abstract_jb.c: Remove timerfd from channel when disabling jitter buffer
authorAlexander Bakker <ab@alexbakker.me>
Wed, 20 May 2026 19:32:36 +0000 (21:32 +0200)
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Mon, 1 Jun 2026 16:08:02 +0000 (16:08 +0000)
Previously, the lingering timerfd would cause a tight loop if the
channel enters a BridgeWait after the jitter buffer was disabled.

Fixes: #1762
main/abstract_jb.c

index 6fda9dfb9d26df969a3b3f2ebd47798321197795..c7eb5b5feeea79ee945599bd41311d68c76f2a34 100644 (file)
@@ -1284,6 +1284,7 @@ void ast_jb_create_framehook(struct ast_channel *chan, struct ast_jb_conf *jb_co
                        ast_framehook_detach(chan, *id);
                        ast_channel_datastore_remove(chan, datastore);
                        ast_datastore_free(datastore);
+                       ast_channel_set_fd(chan, AST_JITTERBUFFER_FD, -1);
                }
                ast_channel_unlock(chan);
                return;