]> 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)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 30 Oct 2025 16:09:11 +0000 (16:09 +0000)
commit5b4aac6ba02cdb38e463dea499c42f90ee4ac525
treea52eaabbd2dbabda9169d4a32f861d36030d029b
parent3202f8c16d422242589db96ff54e7b8a5d411137
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