]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix log messages on spandsp.conf loading or processing failure
authorBrian West <brian@freeswitch.org>
Wed, 2 Jun 2010 16:52:27 +0000 (11:52 -0500)
committerBrian West <brian@freeswitch.org>
Wed, 2 Jun 2010 16:52:27 +0000 (11:52 -0500)
src/mod/applications/mod_spandsp/mod_spandsp.c
src/mod/applications/mod_spandsp/mod_spandsp_dsp.c

index 69b551dba7591fb038f284be67a3ff845d66014f..ea5385089fb8186c1a56946ebfa95e33e4325e0e 100644 (file)
@@ -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);
index 7202db32083b2224c0f1e86f842ab36d044268ca..096d967ff01943c3559cc2ab7719d9b72ed7a3f3 100644 (file)
@@ -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;
        }