diff options
author | seanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-05-27 13:06:10 +0000 |
---|---|---|
committer | seanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-05-27 13:06:10 +0000 |
commit | 255a157dc73740a1c23abddf9107422be79aa3a9 (patch) | |
tree | 87714722efecc5894267d25dd20fba6fd22231df /channels/chan_alsa.c | |
parent | 5fea93fd69e75fdcab776ba5be2a7155f13cbdfd (diff) |
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.
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: http://svn.digium.com/svn/asterisk/branches/1.6.2@196991 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_alsa.c')
-rw-r--r-- | channels/chan_alsa.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_alsa.c b/channels/chan_alsa.c index 16efefbbf..161093e85 100644 --- a/channels/chan_alsa.c +++ b/channels/chan_alsa.c @@ -863,6 +863,7 @@ static int load_module(void) 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); |