]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_sorcery_config: Allow configuration section to be used based on name.
authorJoshua Colp <jcolp@digium.com>
Wed, 18 Jul 2018 16:12:59 +0000 (16:12 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 18 Jul 2018 18:20:49 +0000 (13:20 -0500)
commit59323121f33686437f4685cd8cda801bd7faf566
treeb1f28f01d6b0fa5c0e226621c91cc7a2cb3ef36e
parent5f01f73f51f8741029aebca9c6af4411d1161034
res_sorcery_config: Allow configuration section to be used based on name.

A problem I've seen countless times is a global or system section
for PJSIP not getting applied. This is inevitably the result of
the "type=" line missing. This change alleviates that problem.

The ability to specify an explicit section name has been
added to res_sorcery_config. If the configured section
name matches this and there are no unknown things configured
the section is taken as being for the given type.

Both the PJSIP "global" and "system" types now support this
so you can just name your section "global" or "system" and it
will be matched and used, even without a "type=" line.

ASTERISK-27972

Change-Id: Ie22723663c1ddd24f869af8c9b4c1b59e2476893
res/res_pjsip.c
res/res_pjsip/config_global.c
res/res_pjsip/config_system.c
res/res_sorcery_config.c