[asterisk-commits] seanbright: trunk r196988 - /trunk/channels/chan_alsa.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed May 27 08:02:59 CDT 2009


Author: seanbright
Date: Wed May 27 08:02:54 2009
New Revision: 196988

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=196988
Log:
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:
    trunk/channels/chan_alsa.c

Modified: trunk/channels/chan_alsa.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/channels/chan_alsa.c?view=diff&rev=196988&r1=196987&r2=196988
==============================================================================
--- trunk/channels/chan_alsa.c (original)
+++ trunk/channels/chan_alsa.c Wed May 27 08:02:54 2009
@@ -863,6 +863,7 @@
 	strcpy(mohinterpret, "default");
 
 	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;
 	} else if (cfg == CONFIG_STATUS_FILEINVALID) {
 		ast_log(LOG_ERROR, "%s is in an invalid format.  Aborting.\n", config);




More information about the asterisk-commits mailing list