From 34153dc07c8d1886b48eec866e8354253ba6cb4b Mon Sep 17 00:00:00 2001 From: Alexander Bakker Date: Wed, 20 May 2026 21:32:36 +0200 Subject: [PATCH] abstract_jb.c: Remove timerfd from channel when disabling jitter buffer 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/main/abstract_jb.c b/main/abstract_jb.c index 6fda9dfb9d..c7eb5b5fee 100644 --- a/main/abstract_jb.c +++ b/main/abstract_jb.c @@ -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;