]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 196988 via svnmerge from
authorSean Bright <sean@malleable.com>
Wed, 27 May 2009 13:05:27 +0000 (13:05 +0000)
committerSean Bright <sean@malleable.com>
Wed, 27 May 2009 13:05:27 +0000 (13:05 +0000)
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.

  Before this change, when chan_alsa failed to load due to a missing or
  inaccessible configuration file, no message would be displayed.  With this
  change, when chan_alsa fails to load due to a missing or inaccessible
  configuration file, a message will be displayed.

  (closes issue #14760)
  Reported by: Nick_Lewis
  Patches:
        chan_alsa.c-confload.patch uploaded by Nick (license 657)
........

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

channels/chan_alsa.c

index 2d41ee7c32f77bd1ff45a4b399337591d2f8dc78..de726ac3f15e50f9ec6fe396896fb4a9e9102bf9 100644 (file)
@@ -862,8 +862,10 @@ static int load_module(void)
 
        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) {