From: Kevin Harwell Date: Mon, 11 Feb 2013 20:55:04 +0000 (+0000) Subject: Properly load say.conf upon reload of module app_playback. X-Git-Tag: 11.4.0-rc1~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2df1b43f7a4f1ca518ec8a032ad57e1e7174b716;p=thirdparty%2Fasterisk.git Properly load say.conf upon reload of module app_playback. 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 ........ Merged revisions 381216 from http://svn.asterisk.org/svn/asterisk/branches/1.8 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@381217 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_playback.c b/apps/app_playback.c index 18d4c8eb55..e5672a557e 100644 --- a/apps/app_playback.c +++ b/apps/app_playback.c @@ -504,8 +504,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) {