mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-06 01:45:11 +00:00
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.
This commit is contained in:
@@ -196,6 +196,7 @@ struct ast_channel {
|
||||
struct ast_channel_snapshot *snapshot; /*!< The current up to date snapshot of the channel */
|
||||
struct ast_flags snapshot_segment_flags; /*!< Flags regarding the segments of the snapshot */
|
||||
int linked_in_container; /*!< Whether this channel is linked in a storage container */
|
||||
struct ast_endpoint *endpoint; /*!< The endpoint associated with this channel */
|
||||
};
|
||||
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
|
||||
Reference in New Issue
Block a user