Commit 3a9e3c3623 for asterisk.org

commit 3a9e3c3623185f7907a82b77da7cc5ccf7568ab3
Author: Alexander Bakker <ab@alexbakker.me>
Date:   Wed May 20 21:32:36 2026 +0200

    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

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;