summaryrefslogtreecommitdiff
path: root/channels/chan_alsa.c
diff options
context:
space:
mode:
authorSean Bright <sean@malleable.com>2009-05-27 13:02:54 +0000
committerSean Bright <sean@malleable.com>2009-05-27 13:02:54 +0000
commitf6355ad755fa2fbc9938516d16eab2462d65e73d (patch)
treee0f7c36e4ec20a692c607af0c82296ed5352eb3b /channels/chan_alsa.c
parente27e8615ede0597be0255e149570d70355b6c7dd (diff)
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/trunk@196988 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_alsa.c')
-rw-r--r--channels/chan_alsa.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_alsa.c b/channels/chan_alsa.c
index 520ef940a..e1fe2b3fe 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);