[svn-commits] kharwell: branch 1.8 r381216 - /branches/1.8/apps/app_playback.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Feb 11 14:46:40 CST 2013


Author: kharwell
Date: Mon Feb 11 14:46:37 2013
New Revision: 381216

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=381216
Log:
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

Modified:
    branches/1.8/apps/app_playback.c

Modified: branches/1.8/apps/app_playback.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/apps/app_playback.c?view=diff&rev=381216&r1=381215&r2=381216
==============================================================================
--- branches/1.8/apps/app_playback.c (original)
+++ branches/1.8/apps/app_playback.c Mon Feb 11 14:46:37 2013
@@ -499,8 +499,8 @@
 	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) {




More information about the svn-commits mailing list