From e80befba171fd39c7f67d0623ae0e521acad5a57 Mon Sep 17 00:00:00 2001 From: Brian West Date: Wed, 2 Jun 2010 11:52:27 -0500 Subject: [PATCH] fix log messages on spandsp.conf loading or processing failure --- src/mod/applications/mod_spandsp/mod_spandsp.c | 2 +- src/mod/applications/mod_spandsp/mod_spandsp_dsp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/applications/mod_spandsp/mod_spandsp.c b/src/mod/applications/mod_spandsp/mod_spandsp.c index 69b551dba7..ea5385089f 100644 --- a/src/mod/applications/mod_spandsp/mod_spandsp.c +++ b/src/mod/applications/mod_spandsp/mod_spandsp.c @@ -202,7 +202,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_spandsp_init) mod_spandsp_codecs_load(module_interface, pool); if (mod_spandsp_dsp_load(module_interface, pool) != SWITCH_STATUS_SUCCESS) { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Couldn't load spandsp.conf, not adding tone_detect applications\n"); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Couldn't load or process spandsp.conf, not adding tone_detect applications\n"); } else { SWITCH_ADD_APP(app_interface, "start_tone_detect", "Start background tone detection with cadence", "", start_tone_detect_app, "[name]", SAF_NONE); SWITCH_ADD_APP(app_interface, "stop_tone_detect", "Stop background tone detection with cadence", "", stop_tone_detect_app, "", SAF_NONE); diff --git a/src/mod/applications/mod_spandsp/mod_spandsp_dsp.c b/src/mod/applications/mod_spandsp/mod_spandsp_dsp.c index 7202db3208..096d967ff0 100644 --- a/src/mod/applications/mod_spandsp/mod_spandsp_dsp.c +++ b/src/mod/applications/mod_spandsp/mod_spandsp_dsp.c @@ -509,7 +509,7 @@ static switch_status_t do_config(void) switch_status_t status = SWITCH_STATUS_SUCCESS; switch_xml_t cfg = NULL, xml = NULL, callprogress = NULL, xdescriptor = NULL; if (!(xml = switch_xml_open_cfg("spandsp.conf", &cfg, NULL))) { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Could not open tone_detect.conf\n"); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Could not open spandsp.conf\n"); status = SWITCH_STATUS_FALSE; goto done; }