diff options
author | mogorman <mogorman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-02-08 22:12:34 +0000 |
---|---|---|
committer | mogorman <mogorman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-02-08 22:12:34 +0000 |
commit | 584e2176716785310c23ca9911109120b5dc0a81 (patch) | |
tree | 70d31fdf73899db5d7c1db8eadb178fe4b446fa1 /channels | |
parent | da8bfb7a17bd394b54686e5991695d8c18ff3222 (diff) |
Make logger report error,warning,notice if logger.conf
not found, also updated chan_oss to give correct
error message if its config file is not found.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@9232 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_oss.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/channels/chan_oss.c b/channels/chan_oss.c index 913c46c4e..70b70333e 100644 --- a/channels/chan_oss.c +++ b/channels/chan_oss.c @@ -1376,6 +1376,9 @@ int load_module(void) store_config(cfg, ctg); } while ( (ctg = ast_category_browse(cfg, ctg)) != NULL); ast_config_destroy(cfg); + } else { + ast_log(LOG_NOTICE, "Unable to load config oss.conf\n"); + return -1; } if (find_desc(oss_active) == NULL) { ast_log(LOG_NOTICE, "Device %s not found\n", oss_active); |