-
- Downloads
stasis: Use an implementation specific channel snapshot cache.
Channels no longer use the Stasis cache for channel snapshots. Instead they are stored in a hash table in stasis_channels which reduces the number of Stasis messages created and allows better storage. As a result the following APIs are no longer available since the stasis cache is no longer used: ast_channel_topic_cached() ast_channel_topic_all_cached() The ast_channel_cache_all() and ast_channel_cache_by_name() functions now return an ao2_container of ast_channel_snapshots rather than a container of stasis_messages therefore you can't (and don't need to) call stasis_cache functions on it. The ast_channel_topic_all() function now returns a normal topic not a cached one so you can't use stasis cache functions on it either. The ast_channel_snapshot_type() stasis message now has the ast_channel_snapshot_update structure as it's data. It contains the last snapshot and the new one. ast_channel_snapshot_get_latest() still returns the latest snapshot. The latest snapshot is now stored on the channel itself to eliminate cache hits when Stasis messages that have the snapshot as a payload are created. ASTERISK-28102 Change-Id: I9334febff60a82d7c39703e49059fa3a68825786
Showing
- CHANGES 16 additions, 0 deletionsCHANGES
- UPGRADE.txt 15 additions, 0 deletionsUPGRADE.txt
- apps/app_agent_pool.c 2 additions, 2 deletionsapps/app_agent_pool.c
- apps/confbridge/confbridge_manager.c 1 addition, 1 deletionapps/confbridge/confbridge_manager.c
- channels/chan_pjsip.c 5 additions, 11 deletionschannels/chan_pjsip.c
- channels/pjsip/cli_commands.c 2 additions, 4 deletionschannels/pjsip/cli_commands.c
- include/asterisk/channel.h 22 additions, 15 deletionsinclude/asterisk/channel.h
- include/asterisk/stasis_channels.h 35 additions, 32 deletionsinclude/asterisk/stasis_channels.h
- main/aoc.c 3 additions, 1 deletionmain/aoc.c
- main/app.c 1 addition, 9 deletionsmain/app.c
- main/bridge.c 3 additions, 4 deletionsmain/bridge.c
- main/cdr.c 28 additions, 46 deletionsmain/cdr.c
- main/cel.c 17 additions, 28 deletionsmain/cel.c
- main/channel.c 14 additions, 46 deletionsmain/channel.c
- main/channel_internal_api.c 47 additions, 31 deletionsmain/channel_internal_api.c
- main/cli.c 8 additions, 17 deletionsmain/cli.c
- main/endpoints.c 6 additions, 8 deletionsmain/endpoints.c
- main/manager.c 3 additions, 8 deletionsmain/manager.c
- main/manager_bridges.c 3 additions, 6 deletionsmain/manager_bridges.c
- main/manager_channels.c 10 additions, 27 deletionsmain/manager_channels.c
Loading
Please register or sign in to comment