]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Properly load say.conf upon reload of module app_playback.
authorKevin Harwell <kharwell@digium.com>
Mon, 11 Feb 2013 20:46:37 +0000 (20:46 +0000)
committerKevin Harwell <kharwell@digium.com>
Mon, 11 Feb 2013 20:46:37 +0000 (20:46 +0000)
If say.conf did not exists prior to originally loading module app_playback it
would not load on subsequent reloads of the module once it had been created.
This occurred because upon reload of the app_playback module it would only
load a new configuration if an old one had previously existed.  This fix simply
removed the association between checking if an old configuration existed and
the loading of the new one.

(closes issue ASTERISK-20800)
Reported by: pgoergler

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@381216 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_playback.c

index f205579dfe56730b6a35970cd198874f7bcef50b..0544f2ccba1724c6c4e054e77c606c97d9db635d 100644 (file)
@@ -499,8 +499,8 @@ static int reload(void)
        if (say_cfg) {
                ast_config_destroy(say_cfg);
                ast_log(LOG_NOTICE, "Reloading say.conf\n");
-               say_cfg = newcfg;
        }
+       say_cfg = newcfg;
 
        if (say_cfg) {
                for (v = ast_variable_browse(say_cfg, "general"); v ; v = v->next) {