]> git.ipfire.org Git - thirdparty/asterisk.git/commit
ccss: Add option to ccss.conf to globally disable it.
authorGeorge Joseph <gjoseph@sangoma.com>
Wed, 19 Nov 2025 21:57:46 +0000 (14:57 -0700)
committerGeorge Joseph <gjoseph@sangoma.com>
Mon, 1 Dec 2025 14:05:53 +0000 (14:05 +0000)
commitbb6bf8a3f98d77d25f600fd26a378925b6f94832
treee66e88e8b82b203fe99777ead178c6bdc1a8bb5f
parent6156cdcb7da397dab51c56346eb7bfae4cf4d5a7
ccss:  Add option to ccss.conf to globally disable it.

The Call Completion Supplementary Service feature is rarely used but many of
it's functions are called by app_dial and channel.c "just in case".  These
functions lock and unlock the channel just to see if CCSS is enabled on it,
which it isn't 99.99% of the time.

UserNote: A new "enabled" parameter has been added to ccss.conf.  It defaults
to "yes" to preserve backwards compatibility but CCSS is rarely used so
setting "enabled = no" in the "general" section can save some unneeded channel
locking operations and log message spam.  Disabling ccss will also prevent
the func_callcompletion and chan_dahdi modules from loading.

DeveloperNote: A new API ast_is_cc_enabled() has been added.  It should be
used to ensure that CCSS is enabled before making any other ast_cc_* calls.
apps/app_dial.c
configs/samples/ccss.conf.sample
include/asterisk/ccss.h
include/asterisk/channel.h
main/ccss.c
main/channel.c
main/core_local.c
main/core_unreal.c