]> 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)
committerGeorge Joseph <gjoseph@sangoma.com>
Thu, 26 Jun 2025 18:22:15 +0000 (12:22 -0600)
commit1a3d09e34554d037cd04fb8f81dc86789919d6e8
treef5f7674b2da194fee285e00eb5532f0c1be2a2a0
parent6657e9766d05771c514b8bff7a3e51bd3ed18d1b
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