]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_sorcery_config: Always reload configuration on errors.
authorJoshua C. Colp <jcolp@sangoma.com>
Tue, 19 May 2020 12:55:32 +0000 (09:55 -0300)
committerJoshua Colp <jcolp@sangoma.com>
Wed, 20 May 2020 15:49:49 +0000 (10:49 -0500)
commitdcad32256223bd4783b0462a14779d97571c7b7c
tree4a519db4f6fb4bfe499feccfc0ad59355786e1fa
parentc00b032bbfc14f40537989477229f189a1b529d7
res_sorcery_config: Always reload configuration on errors.

When a configuration file in Asterisk is loaded
information about it is stored such that on a
reload it is not reloaded if nothing has changed.
This can be problematic when an error exists in
a configuration file in PJSIP since the error
will be output at start and not subsequently on
reload if the file is unchanged.

This change makes it so that if an error is
encountered when res_sorcery_config is loading
a configuration file a reload will always read
in the configuration file, allowing the error
to be seen easier.

Change-Id: If2e05a017570f1f5f4f49120da09601e9ecdf9ed
res/res_sorcery_config.c