]> git.ipfire.org Git - thirdparty/asterisk.git/commit
endpoints: Remove need for stasis subscription.
authorJoshua C. Colp <jcolp@sangoma.com>
Fri, 10 Oct 2025 16:01:23 +0000 (13:01 -0300)
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Tue, 14 Oct 2025 20:02:04 +0000 (20:02 +0000)
commit27fbc166e1b2f1c23ce3194a862ce273d66218b6
tree9f12a7fe07448760023052096cb73cf9fe032f8c
parent19b0636d3e724f9b16e6981344cbc9cb3465f033
endpoints: Remove need for stasis subscription.

When an endpoint is created in the core of Asterisk a subscription
was previously created alongside it to monitor any channels being
destroyed that were related to it. This was done by receiving all
channel snapshot updates for every channel and only reacting when
it was indicated that the channel was dead.

This change removes this logic and instead provides an API call
for directly removing a channel from an endpoint. This is called
when channels are destroyed. This operation is fast, so blocking
the calling thread for a short period of time doesn't have any
noticeable impact.
include/asterisk/channel.h
include/asterisk/endpoints.h
main/channel.c
main/channel_internal_api.c
main/channel_private.h
main/endpoints.c
tests/test_stasis_endpoints.c