]> git.ipfire.org Git - thirdparty/asterisk.git/commit
endpoints: Remove need for stasis subscription. 1530/head
authorJoshua C. Colp <jcolp@sangoma.com>
Fri, 10 Oct 2025 16:01:23 +0000 (13:01 -0300)
committerJoshua C. Colp <jcolp@sangoma.com>
Fri, 10 Oct 2025 16:57:59 +0000 (13:57 -0300)
commit26795be52ecc313b7094d9c0ba3bc37fc137cac9
treebf649b23da31f91726ae56c32f26b84a3c11cfbb
parenta63eec2fbbf3edc2f028c27911ad52af8a3aab4c
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