]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Alternate Channel Storage Backends
authorGeorge Joseph <gjoseph@sangoma.com>
Tue, 31 Dec 2024 18:27:02 +0000 (11:27 -0700)
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Wed, 7 May 2025 16:47:06 +0000 (16:47 +0000)
commit8f1982c4d6c888aa1331d58d587cc7695d43bb20
tree61de3370caaa2d267711c52813e740634309c817
parent2ced79259a02f26bfe56ac871bacfaf92a3182d6
Alternate Channel Storage Backends

Full details: http://s.asterisk.net/dc679ec3

The previous proof-of-concept showed that the cpp_map_name_id alternate
storage backed performed better than all the others so this final PR
adds only that option.  You still need to enable it in menuselect under
the "Alternate Channel Storage Backends" category.

To select which one is used at runtime, set the "channel_storage_backend"
option in asterisk.conf to one of the values described in
asterisk.conf.sample.  The default remains "ao2_legacy".

UpgradeNote: With this release, you can now select an alternate channel
storage backend based on C++ Maps.  Using the new backend may increase
performance and reduce the chances of deadlocks on heavily loaded systems.
For more information, see http://s.asterisk.net/dc679ec3
16 files changed:
Makefile
configs/samples/asterisk.conf.sample
include/asterisk/channel.h
include/asterisk/channel_internal.h
include/asterisk/options.h
main/Makefile
main/asterisk.c
main/channel.c
main/channel_internal_api.c
main/channel_private.h [new file with mode: 0644]
main/channelstorage.c [new file with mode: 0644]
main/channelstorage.h [new file with mode: 0644]
main/channelstorage_ao2_legacy.c [new file with mode: 0644]
main/channelstorage_cpp_map_name_id.cc [new file with mode: 0644]
main/channelstorage_makeopts.xml [new file with mode: 0644]
main/options.c