[svn-commits] seanbright: branch 1.6.1 r196990 - in /branches/1.6.1: ./ channels/chan_alsa.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed May 27 08:05:31 CDT 2009


Author: seanbright
Date: Wed May 27 08:05:27 2009
New Revision: 196990

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=196990
Log:
Merged revisions 196988 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r196988 | seanbright | 2009-05-27 09:02:54 -0400 (Wed, 27 May 2009) | 9 lines
  
  Display an error message when chan_alsa fails to load due to a missing
  or inaccessible configuration file.  Small modification to the patch by
  me.
  
  (closes issue #14760)
  Reported by: Nick_Lewis
  Patches:
        chan_alsa.c-confload.patch uploaded by Nick (license 657)
........

Modified:
    branches/1.6.1/   (props changed)
    branches/1.6.1/channels/chan_alsa.c

Propchange: branches/1.6.1/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.1/channels/chan_alsa.c
URL: http://svn.asterisk.org/svn-view/asterisk/branches/1.6.1/channels/chan_alsa.c?view=diff&rev=196990&r1=196989&r2=196990
==============================================================================
--- branches/1.6.1/channels/chan_alsa.c (original)
+++ branches/1.6.1/channels/chan_alsa.c Wed May 27 08:05:27 2009
@@ -862,8 +862,10 @@
 
 	strcpy(mohinterpret, "default");
 
-	if (!(cfg = ast_config_load(config, config_flags)))
+	if (!(cfg = ast_config_load(config, config_flags))) {
+		ast_log(LOG_ERROR, "Unable to read ALSA configuration file %s.  Aborting.\n", config);
 		return AST_MODULE_LOAD_DECLINE;
+	}
 
 	v = ast_variable_browse(cfg, "general");
 	for (; v; v = v->next) {




More information about the svn-commits mailing list