]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
more polishing
authorBrian West <brian@freeswitch.org>
Sat, 11 Oct 2008 06:19:56 +0000 (06:19 +0000)
committerBrian West <brian@freeswitch.org>
Sat, 11 Oct 2008 06:19:56 +0000 (06:19 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9959 d0543943-73ff-0310-b7d9-9358b9ac24b2

37 files changed:
src/mod/applications/mod_commands/mod_commands.c
src/mod/applications/mod_conference/mod_conference.c
src/mod/applications/mod_dptools/mod_dptools.c
src/mod/applications/mod_enum/mod_enum.c
src/mod/applications/mod_fsv/mod_fsv.c
src/mod/applications/mod_rss/mod_rss.c
src/mod/applications/mod_voicemail/mod_voicemail.c
src/mod/asr_tts/mod_openmrcp/mod_openmrcp.c
src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c
src/mod/dialplans/mod_dialplan_asterisk/mod_dialplan_asterisk.c
src/mod/dialplans/mod_dialplan_directory/mod_dialplan_directory.c
src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c
src/mod/endpoints/mod_alsa/mod_alsa.c
src/mod/endpoints/mod_dingaling/mod_dingaling.c
src/mod/endpoints/mod_iax/mod_iax.c
src/mod/endpoints/mod_loopback/mod_loopback.c
src/mod/endpoints/mod_portaudio/mod_portaudio.c
src/mod/endpoints/mod_reference/mod_reference.c
src/mod/endpoints/mod_unicall/mod_unicall.c
src/mod/endpoints/mod_wanpipe/mod_wanpipe.c
src/mod/endpoints/mod_woomera/mod_woomera.c
src/mod/event_handlers/mod_event_multicast/mod_event_multicast.c
src/mod/event_handlers/mod_event_socket/mod_event_socket.c
src/mod/event_handlers/mod_radius_cdr/mod_radius_cdr.c
src/mod/event_handlers/mod_zeroconf/mod_zeroconf.c
src/mod/formats/mod_local_stream/mod_local_stream.c
src/mod/formats/mod_tone_stream/mod_tone_stream.c
src/mod/languages/mod_perl/mod_perl.c
src/mod/languages/mod_python/mod_python.c
src/mod/languages/mod_spidermonkey/mod_spidermonkey.c
src/mod/loggers/mod_console/mod_console.c
src/mod/loggers/mod_logfile/mod_logfile.c
src/mod/loggers/mod_syslog/mod_syslog.c
src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c
src/mod/xml_int/mod_xml_curl/mod_xml_curl.c
src/mod/xml_int/mod_xml_ldap/mod_xml_ldap.c
src/mod/xml_int/mod_xml_rpc/mod_xml_rpc.c

index 03de3e736a6a17a1c5dc7186e176e89134243789..233564d2962824b2a4cad5163dc19495b253edb7 100644 (file)
@@ -783,7 +783,7 @@ SWITCH_STANDARD_API(ctl_function)
          end:
                free(mydata);
        } else {
-               stream->write_function(stream, "-ERR Memory error\n");
+               stream->write_function(stream, "-ERR Memory Error\n");
        }
 
        return SWITCH_STATUS_SUCCESS;
@@ -1721,7 +1721,7 @@ SWITCH_STANDARD_API(originate_function)
                }
 
                if ((extension = switch_caller_extension_new(caller_session, app_name, arg)) == 0) {
-                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "memory error!\n");
+                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Memory Error!\n");
                        abort();
                }
                switch_caller_extension_add_application(caller_session, extension, app_name, arg);
index 412f23c3ab88d9ab256346e57c428ce24c2330d9..78c272372b2d2bee27774f828cb5365ee91f6939 100644 (file)
@@ -872,7 +872,7 @@ static void *SWITCH_THREAD_FUNC conference_thread_run(switch_thread_t *thread, v
        async_file_frame = switch_core_alloc(conference->pool, SWITCH_RECOMMENDED_BUFFER_SIZE);
 
        if (switch_core_timer_init(&timer, conference->timer_name, conference->interval, samples, conference->pool) == SWITCH_STATUS_SUCCESS) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "setup timer success interval: %u  samples: %u\n", conference->interval, samples);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Setup timer success interval: %u  samples: %u\n", conference->interval, samples);
        } else {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Timer Setup Failed.  Conference Cannot Start\n");
                return NULL;
@@ -1757,7 +1757,7 @@ static void conference_loop_output(conference_member_t *member)
                return;
        }
 
-       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "setup timer %s success interval: %u  samples: %u\n",
+       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Setup timer %s success interval: %u  samples: %u\n",
                                          member->conference->timer_name, interval, tsamples);
 
        write_frame.data = data = switch_core_session_alloc(member->session, SWITCH_RECOMMENDED_BUFFER_SIZE);
@@ -2111,7 +2111,7 @@ static void *SWITCH_THREAD_FUNC conference_record_thread_run(switch_thread_t *th
 
 
        if (switch_core_timer_init(&timer, conference->timer_name, conference->interval, samples, rec->pool) == SWITCH_STATUS_SUCCESS) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "setup timer success interval: %u  samples: %u\n", conference->interval, samples);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Setup timer success interval: %u  samples: %u\n", conference->interval, samples);
        } else {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Timer Setup Failed.  Conference Cannot Start\n");
                goto end;
@@ -2425,7 +2425,7 @@ static switch_status_t conference_member_play_file(conference_member_t *member,
        }
        fnode->pool = pool;
        /* Queue the node */
-       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "queueing file '%s' for play\n", file);
+       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Queueing file '%s' for play\n", file);
        switch_mutex_lock(member->flag_mutex);
        for (nptr = member->fnode; nptr && nptr->next; nptr = nptr->next);
        if (nptr) {
@@ -3398,7 +3398,7 @@ static switch_status_t conf_api_sub_transfer(conference_obj_t *conference, switc
 
                                /* Open the config from the xml registry  */
                                if (!(cxml = switch_xml_open_cfg(global_cf_name, &cfg, params))) {
-                                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", global_cf_name);
+                                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", global_cf_name);
                                        goto done;
                                }
 
@@ -3873,7 +3873,7 @@ static switch_status_t conference_outcall(conference_obj_t *conference,
 
                /* build an extension name object */
                if ((extension = switch_caller_extension_new(peer_session, conference_name, conference_name)) == 0) {
-                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "memory error!\n");
+                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Memory Error!\n");
                        status = SWITCH_STATUS_MEMERR;
                        goto done;
                }
@@ -4255,7 +4255,7 @@ SWITCH_STANDARD_APP(conference_function)
 
        /* Open the config from the xml registry */
        if (!(cxml = switch_xml_open_cfg(global_cf_name, &cfg, params))) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", global_cf_name);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", global_cf_name);
                goto done;
        }
 
@@ -5147,7 +5147,7 @@ static conference_obj_t *conference_new(char *name, conf_xml_cfg_t cfg, switch_m
                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Unable to install caller controls group '%s'\n", caller_controls);
                        }
                } else {
-                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "no caller controls installed.\n");
+                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "No caller controls installed.\n");
                }
        } else {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Unable to allocate caller control digit parser.\n");
@@ -5228,7 +5228,7 @@ static void send_presence(switch_event_types_t id)
 
        /* Open the config from the xml registry */
        if (!(cxml = switch_xml_open_cfg(global_cf_name, &cfg, params))) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", global_cf_name);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", global_cf_name);
                goto done;
        }
 
index 49fdf8b8ba75d577b0a32b241ae7858b8bdd9659..a483c4e889fe6c0054e49f4889fbd1ea27ed99aa 100644 (file)
@@ -1150,7 +1150,7 @@ SWITCH_STANDARD_APP(ivr_application_function)
                        }
                        switch_xml_free(cxml);
                } else {
-                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", ivr_cf_name);
+                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", ivr_cf_name);
                }
                switch_event_destroy(&params);
        }
@@ -1444,7 +1444,7 @@ static switch_status_t xfer_on_dtmf(switch_core_session_t *session, void *input,
                                }
 
                                if ((extension = switch_caller_extension_new(peer_session, app, app_arg)) == 0) {
-                                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "memory error!\n");
+                                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Memory Error!\n");
                                        abort();
                                }
 
@@ -2009,7 +2009,7 @@ static switch_call_cause_t user_outgoing_channel(switch_core_session_t *session,
        switch_event_add_header_string(params, SWITCH_STACK_BOTTOM, "as_channel", "true");
 
        if (switch_xml_locate_user("id", user, domain, NULL, &xml, &x_domain, &x_user, params) != SWITCH_STATUS_SUCCESS) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "can't find user [%s@%s]\n", user, domain);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Can't find user [%s@%s]\n", user, domain);
                cause = SWITCH_CAUSE_SUBSCRIBER_ABSENT;
                goto done;
        }
index 945896a39b246c5d26621f2a15364c54b1fbedb9..6bb40defb2bc8d6a7e650aa9cfc238f900f3af8f 100644 (file)
@@ -116,7 +116,7 @@ static switch_status_t load_config(void)
        switch_status_t status = SWITCH_STATUS_SUCCESS;
 
        if (!(xml = switch_xml_open_cfg(cf, &cfg, NULL))) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", cf);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", cf);
                status = SWITCH_STATUS_FALSE;
                goto done;
        }
@@ -205,7 +205,7 @@ static char *reverse_number(char *in, char *root)
 static void dnserror(enum_query_t *q, int errnum)
 {
 
-       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "unable to lookup %s record for %s: %s\n",
+       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Unable to lookup %s record for %s: %s\n",
                                          dns_typename(q->qtyp), dns_dntosp(q->dn), dns_strerror(errnum));
        q->errs++;
 }
@@ -583,7 +583,7 @@ SWITCH_STANDARD_DIALPLAN(enum_dialplan_hunt)
 
        if (enum_lookup(dp, caller_profile->destination_number, &results) == SWITCH_STATUS_SUCCESS) {
                if ((extension = switch_caller_extension_new(session, caller_profile->destination_number, caller_profile->destination_number)) == 0) {
-                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "memory error!\n");
+                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Memory Error!\n");
                        free_results(&results);
                        return NULL;
                }
index ba467da6fcd22a83f272eb97f3f5ced4df42008c..b6601ebdab570758451b12d6154c8fcf18506199 100644 (file)
@@ -237,12 +237,12 @@ SWITCH_STANDARD_APP(play_fsv_function)
        }
 
        if (read(fd, &h, sizeof(h)) != sizeof(h)) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "error reading file header\n");
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Error reading file header\n");
                goto end;
        }
 
        if (h.version != VERSION) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "file version does not match!\n");
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "File version does not match!\n");
                goto end;
        }
 
@@ -267,7 +267,7 @@ SWITCH_STANDARD_APP(play_fsv_function)
 
        if (switch_core_timer_init(&timer, "soft", read_codec->implementation->microseconds_per_frame / 1000,
                                                           read_codec->implementation->samples_per_frame, switch_core_session_get_pool(session)) != SWITCH_STATUS_SUCCESS) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "timer Activation Fail\n");
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Timer Activation Fail\n");
                goto end;
        }
 
index ee490891fe5bfc52fbc6abe695e8adf7ff49330d..c3043c01a0587e18cf38d284ce200103af77db53 100644 (file)
@@ -193,7 +193,7 @@ SWITCH_STANDARD_APP(rss_function)
        }
 
        if (!(cxml = switch_xml_open_cfg(cf, &cfg, NULL))) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", cf);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", cf);
                return;
        }
        switch_safe_free(chanvars);
@@ -284,13 +284,13 @@ SWITCH_STANDARD_APP(rss_function)
 
        if (timer_name) {
                if (switch_core_timer_init(&timer, timer_name, interval, (int) (rate / 50), switch_core_session_get_pool(session)) != SWITCH_STATUS_SUCCESS) {
-                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "setup timer failed!\n");
+                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Setup timer failed!\n");
                        switch_core_codec_destroy(&speech_codec);
                        flags = 0;
                        switch_core_speech_close(&sh, &flags);
                        return;
                }
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "setup timer success %u bytes per %d ms!\n", (rate / 50) * 2, interval);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Setup timer success %u bytes per %d ms!\n", (rate / 50) * 2, interval);
 
                /* start a thread to absorb incoming audio */
                switch_core_service_session(session, &thread_session, 0);
@@ -387,7 +387,7 @@ SWITCH_STANDARD_APP(rss_function)
                }
 
                if (!(xml = switch_xml_parse_file(filename))) {
-                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", filename);
+                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", filename);
                        goto finished;
                }
 
index 58498bb6e57049edcc5fdcf08ed0d427081d2e85..a1a796428e05bc9098a5a4a2bad1b7da48c201f2 100644 (file)
@@ -242,7 +242,7 @@ static switch_status_t load_config(void)
        switch_core_hash_init(&globals.profile_hash, globals.pool);
 
        if (!(xml = switch_xml_open_cfg(cf, &cfg, NULL))) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", cf);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", cf);
                return SWITCH_STATUS_TERM;
        }
 
@@ -521,7 +521,7 @@ static switch_status_t load_config(void)
                                if (tmp >= 0 && tmp <= 10000) {
                                        record_threshold = tmp;
                                } else {
-                                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "invalid threshold value [%s] must be between 0 and 10000 ms\n", val);
+                                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Invalid threshold value [%s] must be between 0 and 10000 ms\n", val);
                                }
                        } else if (!strcasecmp(var, "record-sample-rate")) {
                                int tmp = 0;
@@ -531,7 +531,7 @@ static switch_status_t load_config(void)
                                if (tmp == 8000 || tmp == 16000 || tmp == 32000 || tmp == 11025 || tmp == 22050 || tmp == 44100) {
                                        record_sample_rate = tmp;
                                } else {
-                                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "invalid samplerate %s\n", val);
+                                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Invalid samplerate %s\n", val);
                                }
                        } else if (!strcasecmp(var, "record-silence-hits")) {
                                int tmp = 0;
@@ -541,7 +541,7 @@ static switch_status_t load_config(void)
                                if (tmp >= 0 && tmp <= 1000) {
                                        record_silence_hits = tmp;
                                } else {
-                                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "invalid threshold value [%s] must be between 0 and 1000 ms\n", val);
+                                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Invalid threshold value [%s] must be between 0 and 1000 ms\n", val);
                                }
                        } else if (!strcasecmp(var, "tone-spec") && !switch_strlen_zero(val)) {
                                tone_spec = val;
@@ -553,7 +553,7 @@ static switch_status_t load_config(void)
                                if (tmp >= 1000 && tmp <= 30000) {
                                        timeout = tmp;
                                } else {
-                                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "invalid timeout value [%s] must be between 1000 and 30000 ms\n", val);
+                                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Invalid timeout value [%s] must be between 1000 and 30000 ms\n", val);
                                }
                        } else if (!strcasecmp(var, "max-login-attempts")) {
                                int tmp = 0;
@@ -563,7 +563,7 @@ static switch_status_t load_config(void)
                                if (tmp > 0 && tmp < 11) {
                                        max_login_attempts = tmp;
                                } else {
-                                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "invalid attempts [%s] must be between 1 and 10 ms\n", val);
+                                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Invalid attempts [%s] must be between 1 and 10 ms\n", val);
                                }
                        } else if (!strcasecmp(var, "min-record-len")) {
                                int tmp = 0;
@@ -573,7 +573,7 @@ static switch_status_t load_config(void)
                                if (tmp > 0 && tmp < 10000) {
                                        min_record_len = tmp;
                                } else {
-                                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "invalid record length [%s] must be between 1 and 10000s\n", val);
+                                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Invalid record length [%s] must be between 1 and 10000s\n", val);
                                }
                        } else if (!strcasecmp(var, "max-record-len")) {
                                int tmp = 0;
@@ -583,7 +583,7 @@ static switch_status_t load_config(void)
                                if (tmp > 0 && tmp < 10000) {
                                        max_record_len = tmp;
                                } else {
-                                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "invalid record length [%s] must be between 1 and 10000s\n", val);
+                                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Invalid record length [%s] must be between 1 and 10000s\n", val);
                                }
                        } else if (!strcasecmp(var, "odbc-dsn") && !switch_strlen_zero(val)) {
 #ifdef SWITCH_HAVE_ODBC
@@ -983,7 +983,7 @@ static int unlink_callback(void *pArg, int argc, char **argv, char **columnNames
 {
        if (argv[0]) {
                if (unlink(argv[0]) != 0) {
-                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "failed to delete file [%s]\n", argv[0]);
+                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Failed to delete file [%s]\n", argv[0]);
                }
        }
        return 0;
@@ -1054,7 +1054,7 @@ static switch_status_t create_file(switch_core_session_t *session, vm_profile_t
                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Message is less than minimum record length: %d, discarding it.\n",
                                                          profile->min_record_len);
                        if (unlink(file_path) != 0) {
-                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "failed to delete file [%s]\n", file_path);
+                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Failed to delete file [%s]\n", file_path);
                        }
                        if (switch_channel_ready(channel)) {
                                TRY_CODE(switch_ivr_phrase_macro(session, VM_ACK_MACRO, "too-small", NULL, NULL));
@@ -1284,7 +1284,7 @@ static char *vm_merge_file(switch_core_session_t *session, vm_profile_t *profile
        }
 
        if (unlink(announce) != 0) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "failed to delete file [%s]\n", announce);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Failed to delete file [%s]\n", announce);
        }
        ret = tmp_path;
        
@@ -1538,7 +1538,7 @@ static switch_status_t listen_file(switch_core_session_t *session, vm_profile_t
 
        if (forward_file_path) {
                if (unlink(forward_file_path) != 0) {
-                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "failed to delete file [%s]\n", forward_file_path);
+                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Failed to delete file [%s]\n", forward_file_path);
                }
        }
 
@@ -1935,7 +1935,7 @@ static void voicemail_check_main(switch_core_session_t *session, const char *pro
                                        
                                        if (switch_xml_locate_user("id", myid, domain_name, switch_channel_get_variable(channel, "network_addr"),
                                                                                           &x_domain_root, &x_domain, &x_user, params) != SWITCH_STATUS_SUCCESS) {
-                                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "can't find user [%s@%s]\n", myid, domain_name);
+                                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Can't find user [%s@%s]\n", myid, domain_name);
                                                ok = 0;
                                        }
                                        
@@ -2153,9 +2153,9 @@ static switch_status_t deliver_vm(vm_profile_t *profile,
                } else if (!strcasecmp(var, "timezone")) {
                        vm_timezone = switch_core_strdup(pool, val);
                }
-               /*switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "send mail is %d, var is %s\n", send_mail, var);*/
+               /*switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Send mail is %d, var is %s\n", send_mail, var);*/
        }
-    switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "send mail is %d and that's my final answer\n", send_mail);
+    switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Send mail is %d and that's my final answer\n", send_mail);
        if (!switch_strlen_zero(vm_storage_dir)) {
                dir_path = switch_mprintf("%s%s%s", vm_storage_dir, SWITCH_PATH_SEPARATOR, myid);
        } else if (!switch_strlen_zero(profile->storage_dir)) {
@@ -2362,7 +2362,7 @@ static switch_status_t deliver_vm(vm_profile_t *profile,
 
                if (!insert_db) {
                        if (unlink(file_path) != 0) {
-                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "failed to delete file [%s]\n", file_path);
+                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Failed to delete file [%s]\n", file_path);
                        }
                }
        }
@@ -2401,7 +2401,7 @@ static switch_status_t voicemail_inject(const char *data)
        switch_assert(dup);
 
        if ((argc = switch_separate_string(dup, ' ', argv, (sizeof(argv) / sizeof(argv[0])))) < 2) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "not enough args [%s]\n", data);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Not enough args [%s]\n", data);
                status = SWITCH_STATUS_FALSE;
                goto end;
        }
@@ -2427,7 +2427,7 @@ static switch_status_t voicemail_inject(const char *data)
        }
        
        if (!(user && domain)) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "invalid syntax [%s][%s]\n", switch_str_nil(user), switch_str_nil(domain));
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid syntax [%s][%s]\n", switch_str_nil(user), switch_str_nil(domain));
                status = SWITCH_STATUS_FALSE;
                goto end;
        }
@@ -2610,7 +2610,7 @@ static switch_status_t voicemail_leave_main(switch_core_session_t *session, cons
                        }
                        
                } else {
-                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "can't find user [%s@%s]\n", id, domain_name);
+                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Can't find user [%s@%s]\n", id, domain_name);
                        ok = 0;
                }
 
@@ -3027,7 +3027,7 @@ static int del_callback(void *pArg, int argc, char **argv, char **columnNames)
 {
        if (argc > 8) {
                if (unlink(argv[8]) != 0) {
-                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "failed to delete file [%s]\n", argv[8]);
+                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Failed to delete file [%s]\n", argv[8]);
                }
        }
        return 0;
index 0f42061ebae6cedfd9baa8d96b46c0db10e71a01..c083fa10dc213fbc4844891e88e89af3328010b7 100644 (file)
@@ -114,12 +114,12 @@ static openmrcp_session_t *openmrcp_session_create(openmrcp_profile_t *profile)
        apr_pool_t *session_pool;
 
        if (!profile) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "no profile specified\n");
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "No profile specified\n");
                return NULL;
        }
 
        if (apr_pool_create(&session_pool, NULL) != APR_SUCCESS) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "failed to create session_pool\n");
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Failed to create session_pool\n");
                return NULL;
        }
 
@@ -134,12 +134,12 @@ static openmrcp_session_t *openmrcp_session_create(openmrcp_profile_t *profile)
        switch_mutex_init(&openmrcp_session->flag_mutex, SWITCH_MUTEX_NESTED, openmrcp_session->pool);
 
        if (switch_thread_cond_create(&openmrcp_session->wait_object, openmrcp_session->pool)) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "wait object creation failed\n");
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Wait object creation failed\n");
        }
 
        openmrcp_session->client_session = mrcp_client_context_session_create(openmrcp_session->profile->mrcp_context, openmrcp_session);
        if (!openmrcp_session->client_session) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "session creation FAILED\n");
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Session creation FAILED\n");
                apr_pool_destroy(session_pool);
                return NULL;
        }
@@ -172,7 +172,7 @@ static mrcp_status_t openmrcp_on_session_terminate(mrcp_client_context_t *contex
        if (switch_test_flag(openmrcp_session, FLAG_TERMINATING)) {
                openmrcp_session_destroy(openmrcp_session);
        } else {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "abnormal session terminate\n");
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Abnormal session terminate\n");
        }
        return MRCP_STATUS_SUCCESS;
 }
@@ -215,16 +215,16 @@ static mrcp_status_t openmrcp_on_channel_modify(mrcp_client_context_t *context,
        }
 
        if (mrcp_message->start_line.message_type == MRCP_MESSAGE_TYPE_RESPONSE && mrcp_message->start_line.request_state == MRCP_REQUEST_STATE_INPROGRESS) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "ignoring mrcp response\n");
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Ignoring mrcp response\n");
                return MRCP_STATUS_SUCCESS;
        }
 
        if (switch_test_flag(openmrcp_session, FLAG_HAS_MESSAGE)) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "already has message\n");
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Already has message\n");
                return MRCP_STATUS_SUCCESS;
        }
 
-       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "setting FLAG_HAS_MESSAGE\n");
+       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Setting FLAG_HAS_MESSAGE\n");
        openmrcp_session->mrcp_message_last_rcvd = mrcp_message;
        switch_set_flag_locked(openmrcp_session, FLAG_HAS_MESSAGE);
        return MRCP_STATUS_SUCCESS;
@@ -500,7 +500,7 @@ static switch_status_t openmrcp_asr_get_results(switch_asr_handle_t *ah, char **
 
        if (message->start_line.message_type == MRCP_MESSAGE_TYPE_RESPONSE) {
                if (message->start_line.status_code != MRCP_STATUS_CODE_SUCCESS && message->start_line.status_code != MRCP_STATUS_CODE_SUCCESS_WITH_IGNORE) {
-                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "error code received [%d]\n", message->start_line.status_code);
+                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Error code received [%d]\n", message->start_line.status_code);
                        ret = SWITCH_STATUS_FALSE;
                }
        } else if (message->start_line.message_type == MRCP_MESSAGE_TYPE_EVENT) {
@@ -659,7 +659,7 @@ static switch_status_t openmrcp_tts_close(switch_speech_handle_t *sh, switch_spe
        mrcp_client_context_t *context = tts_session->profile->mrcp_context;
 
        /* terminate tts session */
-       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "terminate tts_session\n");
+       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Terminate tts_session\n");
        switch_set_flag_locked(tts_session, FLAG_TERMINATING);
        mrcp_client_context_session_terminate(context, tts_session->client_session);
        return SWITCH_STATUS_SUCCESS;
@@ -671,7 +671,7 @@ static switch_status_t openmrcp_feed_tts(switch_speech_handle_t *sh, char *text,
        mrcp_client_context_t *context = tts_session->profile->mrcp_context;
 
        if (!tts_session->control_channel) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "no synthesizer channel too feed tts\n");
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "No synthesizer channel too feed tts\n");
                return SWITCH_STATUS_FALSE;
        }
 
@@ -701,7 +701,7 @@ static switch_status_t openmrcp_read_tts(switch_speech_handle_t *sh, void *data,
 
                if (message->start_line.message_type == MRCP_MESSAGE_TYPE_RESPONSE) {
                        if (message->start_line.status_code != MRCP_STATUS_CODE_SUCCESS && message->start_line.status_code != MRCP_STATUS_CODE_SUCCESS_WITH_IGNORE) {
-                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "error code received [%d]\n", message->start_line.status_code);
+                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Error code received [%d]\n", message->start_line.status_code);
                                return SWITCH_STATUS_BREAK;
                        }
                } else if (message->start_line.message_type == MRCP_MESSAGE_TYPE_EVENT) {
@@ -774,7 +774,7 @@ static switch_status_t do_config()
        openmrcp_client_options_t *mrcp_options;
 
        if (!(xml = switch_xml_open_cfg(cf, &cfg, NULL))) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", cf);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", cf);
                return SWITCH_STATUS_TERM;
        }
 
@@ -835,7 +835,7 @@ static switch_status_t do_config()
                                        switch_core_hash_insert(openmrcp_module.profile_hash, mrcp_profile->name, mrcp_profile);
                                }
                        } else {
-                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "profile with the name [%s] already exists\n", mrcp_profile->name);
+                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Profile with the name [%s] already exists\n", mrcp_profile->name);
                        }
                }
        } else {
index e2a82833aa117425040076bb0e375ff1ec9deec9..9a638d8b49b2e56ff38ab7f4070b856a3c2fa3f7 100644 (file)
@@ -94,7 +94,7 @@ static switch_status_t pocketsphinx_asr_open(switch_asr_handle_t *ah, const char
        } else if (rate == 16000) {
                ah->rate = 16000;
        } else {  
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "invalid rate %d. Only 8000 and 16000 are supported.\n", rate);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid rate %d. Only 8000 and 16000 are supported.\n", rate);
        }
 
        codec = "L16";
@@ -423,7 +423,7 @@ static switch_status_t load_config(void)
        globals.auto_reload = 1;
 
        if (!(xml = switch_xml_open_cfg(cf, &cfg, NULL))) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", cf);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", cf);
                status = SWITCH_STATUS_FALSE;
                goto done;
        }
index 4138d6473dc50380c3e14ac76125c9849d047983..3f252278289ef432557e18e058ea55e2263dc0e0 100644 (file)
@@ -147,7 +147,7 @@ SWITCH_STANDARD_DIALPLAN(asterisk_dialplan_hunt)
        context = caller_profile->context ? caller_profile->context : "default";
 
        if (!switch_config_open_file(&cfg, cf)) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", cf);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", cf);
                switch_channel_hangup(channel, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER);
                return NULL;
        }
@@ -177,7 +177,7 @@ SWITCH_STANDARD_DIALPLAN(asterisk_dialplan_hunt)
 
                                argc = switch_separate_string(val, ',', argv, (sizeof(argv) / sizeof(argv[0])));
                                if (argc < 3) {
-                                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "parse error line %d!\n", cfg.lineno);
+                                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Parse error line %d!\n", cfg.lineno);
                                        continue;
                                }
 
@@ -207,7 +207,7 @@ SWITCH_STANDARD_DIALPLAN(asterisk_dialplan_hunt)
                                        if (*pattern == '_') {
                                                pattern++;
                                                if (switch_ast2regex(pattern, expression_buf, sizeof(expression_buf))) {
-                                                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "converting [%s] to real regex [%s] you should try them!\n",
+                                                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Converting [%s] to real regex [%s] you should try them!\n",
                                                                                          pattern, expression_buf);
                                                }
                                        } else {
@@ -274,7 +274,7 @@ SWITCH_STANDARD_DIALPLAN(asterisk_dialplan_hunt)
                                                break;
                                        }
                                        if ((extension = switch_caller_extension_new(session, field_data, field_data)) == 0) {
-                                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "memory error!\n");
+                                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Memory Error!\n");
                                                break;
                                        }
                                }
index 7057de0e1052bea037af64d2f8256578d32fedf7..63d7e3e3c4a51269db69c162d2e914aab6d144ba 100644 (file)
@@ -58,7 +58,7 @@ static void load_config(void)
 
 
        if (!(xml = switch_xml_open_cfg(cf, &cfg, NULL))) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", cf);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", cf);
                return;
        }
 
@@ -122,7 +122,7 @@ SWITCH_STANDARD_DIALPLAN(directory_dialplan_hunt)
                        if (!strcasecmp(var, "callflow")) {
                                if (!extension) {
                                        if ((extension = switch_caller_extension_new(session, caller_profile->destination_number, caller_profile->destination_number)) == 0) {
-                                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "memory error!\n");
+                                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Memory Error!\n");
                                                goto out;
                                        }
                                }
index a990b6dcbf93ad34ae46d9eb52b17fe2ae2f18ad..1984aaf18866de6dae63c33c42938d479d0de0c0 100644 (file)
@@ -124,7 +124,7 @@ static int parse_exten(switch_core_session_t *session, switch_caller_profile_t *
 
                                        if (!*extension) {
                                                if ((*extension = switch_caller_extension_new(session, exten_name, caller_profile->destination_number)) == 0) {
-                                                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "memory error!\n");
+                                                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Memory Error!\n");
                                                        proceed = 0;
                                                        goto done;
                                                }
@@ -159,7 +159,7 @@ static int parse_exten(switch_core_session_t *session, switch_caller_profile_t *
                        if (field && strchr(expression, '(')) {
                                len = (uint32_t) (strlen(data) + strlen(field_data) + 10) * proceed;
                                if (!(substituted = malloc(len))) {
-                                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "memory error!\n");
+                                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Memory Error!\n");
                                        proceed = 0;
                                        goto done;
                                }
@@ -172,7 +172,7 @@ static int parse_exten(switch_core_session_t *session, switch_caller_profile_t *
 
                        if (!*extension) {
                                if ((*extension = switch_caller_extension_new(session, exten_name, caller_profile->destination_number)) == 0) {
-                                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "memory error!\n");
+                                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Memory Error!\n");
                                        proceed = 0;
                                        goto done;
                                }
@@ -237,7 +237,7 @@ SWITCH_STANDARD_DIALPLAN(dialplan_hunt)
        if (!switch_strlen_zero(alt_path)) {
                switch_xml_t conf = NULL, tag = NULL;
                if (!(alt_root = switch_xml_parse_file_simple(alt_path))) {
-                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of [%s] failed\n", alt_path);
+                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of [%s] failed\n", alt_path);
                        goto done;
                }
 
@@ -246,12 +246,12 @@ SWITCH_STANDARD_DIALPLAN(dialplan_hunt)
                        xml = alt_root;
                        cfg = tag;
                } else {
-                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of dialplan failed\n");
+                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of dialplan failed\n");
                        goto done;
                }
        } else {
                if (dialplan_xml_locate(session, caller_profile, &xml, &cfg) != SWITCH_STATUS_SUCCESS) {
-                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of dialplan failed\n");
+                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of dialplan failed\n");
                        goto done;
                }
        }
@@ -259,7 +259,7 @@ SWITCH_STANDARD_DIALPLAN(dialplan_hunt)
        /* get a handle to the context tag */
        if (!(xcontext = switch_xml_find_child(cfg, "context", "name", caller_profile->context))) {
                if (!(xcontext = switch_xml_find_child(cfg, "context", "name", "global"))) {
-                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "context %s not found\n", caller_profile->context);
+                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Context %s not found\n", caller_profile->context);
                        goto done;
                }
        }
index f7d25c8f9cee251fce5e6d1e57bfba04db1507d8..1d11e94b56e8404c918ef8b63bed3f64045a0e62 100644 (file)
@@ -854,7 +854,7 @@ static switch_status_t load_config(void)
        switch_xml_t cfg, xml, settings, param;
 
        if (!(xml = switch_xml_open_cfg(cf, &cfg, NULL))) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", cf);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", cf);
                return SWITCH_STATUS_TERM;
        }
 
index 396e1dc990881bb2074969914723a9221eee0aa3..3870960600b7c1a41c76147ffa47a7db25371b1f 100644 (file)
@@ -2119,7 +2119,7 @@ static switch_status_t load_config(void)
        switch_core_hash_init(&globals.profile_hash, module_pool);
 
        if (!(xml = switch_xml_open_cfg(cf, &cfg, NULL))) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", cf);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", cf);
                return SWITCH_STATUS_TERM;
        }
 
index aa57f06b81b2ca31740bf4c821304acd7e5a8513..49f5997370ac114f43c83c25a18f5ca1d9968b9f 100644 (file)
@@ -827,7 +827,7 @@ static switch_status_t load_config(void)
        memset(&globals, 0, sizeof(globals));
        switch_mutex_init(&globals.mutex, SWITCH_MUTEX_NESTED, module_pool);
        if (!(xml = switch_xml_open_cfg(cf, &cfg, NULL))) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", cf);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", cf);
                return SWITCH_STATUS_TERM;
        }
 
index 8ba8ebbccd2b8c853b5157998a6d3e825fb10958..c40a721062a3133c6be52a733079e2d68c197152 100644 (file)
@@ -216,7 +216,7 @@ static switch_status_t channel_on_init(switch_core_session_t *session)
        if (!switch_test_flag(tech_pvt, TFLAG_OUTBOUND)) {
                
                if (!(b_session = switch_core_session_request(loopback_endpoint_interface, NULL))) {
-                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "failure.\n");
+                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Failure.\n");
                        goto end;
                }
        
index 537bfda33f2f916094a7f1e9ec6eb07f21f899df..d3eea6fa5ac473925e59f50caf1ac64529f79fb5 100644 (file)
@@ -776,7 +776,7 @@ static switch_status_t load_config(void)
        switch_status_t status = SWITCH_STATUS_SUCCESS;
 
        if (!(xml = switch_xml_open_cfg(cf, &cfg, NULL))) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", cf);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", cf);
                return SWITCH_STATUS_TERM;
        }
 
index c96e83ab100fc5861eafca231760b2bf497c2d42..0b40217582c60447361aee2fb9c842082284e795 100644 (file)
@@ -483,7 +483,7 @@ static switch_status_t load_config(void)
        memset(&globals, 0, sizeof(globals));
        switch_mutex_init(&globals.mutex, SWITCH_MUTEX_NESTED, module_pool);
        if (!(xml = switch_xml_open_cfg(cf, &cfg, NULL))) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", cf);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", cf);
                return SWITCH_STATUS_TERM;
        }
 
index 085e57ddbe210ca426265b010465492a808d6679..fbf7d582319762c416538fabe1b8865d6f9ebea8 100644 (file)
@@ -1739,7 +1739,7 @@ static switch_status_t config_unicall(int reload)
 
     if (!(xml = switch_xml_open_cfg(cf, &cfg, NULL)))
     {
-        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "opening %s failed\n", cf);
+        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Opening of %s failed\n", cf);
         return SWITCH_STATUS_TERM;
     }
 
index 05e38acda3ceafe0d08acc9cfd4ebabd8122e107..12b5a07136535b233cd553c56b02ec70c019b61a 100644 (file)
@@ -2131,7 +2131,7 @@ static switch_status_t config_wanpipe(int reload)
 
 
        if (!(xml = switch_xml_open_cfg(cf, &cfg, NULL))) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", cf);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", cf);
                return SWITCH_STATUS_TERM;
        }
 
index e5689d7a8cb67d7359a8ae0a5b0b06c6ca786f53..95008f1a7782022872674deecb1a9e14b4d761ca 100644 (file)
@@ -1179,7 +1179,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_woomera_load)
        globals.next_woomera_port = WOOMERA_MIN_PORT;
 
        if (!(xml = switch_xml_open_cfg(cf, &cfg, NULL))) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", cf);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", cf);
                return SWITCH_STATUS_TERM;
        }
 
index 420380d457241b7364cefa2aae486056edc2808f..c567c4d2d8349a1249bdaf6568ea31ecf0da1881 100644 (file)
@@ -75,7 +75,7 @@ static switch_status_t load_config(void)
        globals.key_count = 0;
 
        if (!(xml = switch_xml_open_cfg(cf, &cfg, NULL))) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", cf);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", cf);
                return SWITCH_STATUS_TERM;
        }
 
index dbdd3e5d56ef4e5a1421efd8dd4a72a0c2b11d5c..3a2c874d55040490d9c253c54287750c8d032c50 100644 (file)
@@ -1325,7 +1325,7 @@ static int config(void)
        memset(&prefs, 0, sizeof(prefs));
 
        if (!(xml = switch_xml_open_cfg(cf, &cfg, NULL))) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", cf);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", cf);
        } else {
                if ((settings = switch_xml_child(cfg, "settings"))) {
                        for (param = switch_xml_child(settings, "param"); param; param = param->next) {
index 449a1ff81232b7f15ce64eb5c3438ed3ea285211..8b2b1daeab11a798093fe3c3b26123fefb6d8919 100644 (file)
@@ -618,7 +618,7 @@ static switch_status_t load_config(void)
        }
 
        if (!(xml = switch_xml_open_cfg(cf, &cfg, NULL))) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", cf);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", cf);
                return SWITCH_STATUS_TERM;
        }
 
index 3cf7048c1c93e5efab3eb08634304a9a6b573e5d..67b473be1a8e6028a897ad097694c58ea5a43836 100644 (file)
@@ -200,7 +200,7 @@ static switch_status_t load_config(void)
        switch_xml_t cfg, xml, settings, param;
 
        if (!(xml = switch_xml_open_cfg(cf, &cfg, NULL))) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", cf);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", cf);
                return SWITCH_STATUS_TERM;
        }
 
index 237ecd42ab996c34cd9fcbccff11f239f99a050b..088c6a6c3796df84919cabe93503d88b6a3c7d51 100644 (file)
@@ -300,7 +300,7 @@ static switch_status_t local_stream_file_open(switch_file_handle_t *handle, cons
        switch_mutex_unlock(globals.mutex);
 
        if (!source) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "unknown source %s\n", path);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Unknown source %s\n", path);
                status = SWITCH_STATUS_FALSE;
                goto end;
        }
@@ -408,7 +408,7 @@ static void launch_threads(void)
        switch_threadattr_t *thd_attr = NULL;
 
        if (!(xml = switch_xml_open_cfg(cf, &cfg, NULL))) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", cf);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", cf);
                return;
        }
 
@@ -417,7 +417,7 @@ static void launch_threads(void)
                char *name = (char *) switch_xml_attr(directory, "name");
 
                if (!(name && path)) {
-                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "invalid config!\n");
+                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid config!\n");
                        continue;
                }
 
@@ -600,7 +600,7 @@ SWITCH_STANDARD_API(start_local_stream_function)
 
        if (!path){
                if (!(xml = switch_xml_open_cfg(cf, &cfg, NULL))) {
-                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", cf);
+                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", cf);
                        stream->write_function(stream, "-ERR unable to open file %s!\n",cf);
                        goto done;
                }
@@ -613,7 +613,7 @@ SWITCH_STANDARD_API(start_local_stream_function)
                        else {
                                path = (char *) switch_xml_attr(directory, "path");
                                if (!(name && path)) {
-                                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "invalid config!\n");
+                                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid config!\n");
                                        continue;
                                }
 
index ddc62d88abe433aa73433a1114fc5da6d4bedf37..7ae65ec656bcc7ca35af504dd7a1a6992d46caed 100644 (file)
@@ -153,7 +153,7 @@ static switch_status_t tone_stream_file_open(switch_file_handle_t *handle, const
        if (!strncasecmp(tonespec, "path=", 5)) {
                tmp = tonespec + 5;
                if ((fd = open(tmp, O_RDONLY)) < 0) {
-                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "failed to open [%s]\n", tmp);
+                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Failed to open [%s]\n", tmp);
                        return SWITCH_STATUS_FALSE;
                }
 
index 5da23aacabe95b887c1cb53f81976100a5347f78..2c3748f0bfb133f992c2413541ba1af75517a297 100644 (file)
@@ -455,7 +455,7 @@ static switch_status_t do_config(void)
        switch_xml_t cfg, xml, settings, param;
 
        if (!(xml = switch_xml_open_cfg(cf, &cfg, NULL))) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", cf);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", cf);
                return SWITCH_STATUS_TERM;
        }
 
index d29ab63c08ba58e8e307b6bf1324ddc5f7a64284..1c5b1c05d6c69107d437816cf27eb189afb15937 100644 (file)
@@ -245,7 +245,7 @@ static switch_status_t do_config(void)
        switch_xml_t cfg, xml, settings, param;
 
        if (!(xml = switch_xml_open_cfg(cf, &cfg, NULL))) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", cf);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", cf);
                return SWITCH_STATUS_TERM;
        }
 
index 74a388503f91988a7ff871a987cd272f96316c93..bd20e91cc859605d0c57798bb48dd1040404f70a 100644 (file)
@@ -1023,7 +1023,7 @@ static switch_status_t load_modules(void)
                switch_xml_free(xml);
 
        } else {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "open of %s failed\n", cf);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "Open of %s failed\n", cf);
        }
 
        return SWITCH_STATUS_SUCCESS;
index 6d883f7001f4e6a42d04999f9036f9fe92650b5e..01b900ab1003fc36426ad560351ac821267c69e6 100644 (file)
@@ -92,7 +92,7 @@ static switch_status_t config_logger(void)
        switch_xml_t cfg, xml, settings, param;
 
        if (!(xml = switch_xml_open_cfg(cf, &cfg, NULL))) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", cf);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", cf);
                return SWITCH_STATUS_TERM;
        }
 
index 57568e99006c9e8116e0fa4b1ae4253437e528cd..1b5fc5191b5a5d3e561be3d987ceb8d2a9b1d7a4 100644 (file)
@@ -346,7 +346,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_logfile_load)
        *module_interface = switch_loadable_module_create_module_interface(pool, modname);
 
        if (!(xml = switch_xml_open_cfg(cf, &cfg, NULL))) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", cf);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", cf);
        } else {
                if ((settings = switch_xml_child(cfg, "settings"))) {
                        for (param = switch_xml_child(settings, "param"); param; param = param->next) {
index ba7de4c29c9dfc958053075f02085e5f07774de2..a3463575d7748d4016877b97929ec751b82c7a88 100644 (file)
@@ -115,7 +115,7 @@ static switch_status_t load_config(void)
     log_level = SWITCH_LOG_WARNING;
 
        if (!(xml = switch_xml_open_cfg(cf, &cfg, NULL))) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", cf);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", cf);
        } else {
                if ((settings = switch_xml_child(cfg, "settings"))) {
                        for (param = switch_xml_child(settings, "param"); param; param = param->next) {
index bf831a3b78d4ce6e182039ee13f77aecace5e042..c740e15707cf2e0b5db2fad671475fc799498c34 100644 (file)
@@ -268,7 +268,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_xml_cdr_load)
 
        /* parse the config */
        if (!(xml = switch_xml_open_cfg(cf, &cfg, NULL))) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", cf);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", cf);
                return SWITCH_STATUS_TERM;
        }
 
@@ -329,12 +329,12 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_xml_cdr_load)
                }
        }
        if (globals.retries < 0) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "retries is negative, setting to 0\n");
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Retries is negative, setting to 0\n");
                globals.retries = 0;
        }
 
        if (globals.retries && globals.delay <= 0) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "retries set but delay 0 setting to 5000ms\n");
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Retries set but delay 0 setting to 5000ms\n");
                globals.delay = 5000;
        }
 
index a008a06aa3a9b68c7ac1dd0a76ce5c73b7a7ee7b..9289290355528a86a39ffeeaa2318588fc8522d2 100644 (file)
@@ -264,7 +264,7 @@ static switch_status_t do_config(void)
                                if (!vars_map && need_vars_map == 0) {
                                        if (switch_core_hash_init(&vars_map, globals.pool) != SWITCH_STATUS_SUCCESS) {
                                                need_vars_map = -1;
-                                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Cant init params hash!\n");
+                                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Can't init params hash!\n");
                                                continue;
                                        }
                                        need_vars_map = 1;
@@ -272,7 +272,7 @@ static switch_status_t do_config(void)
 
                                if (vars_map && val)
                                        if (switch_core_hash_insert(vars_map, val, ENABLE_PARAM_VALUE) != SWITCH_STATUS_SUCCESS) {
-                                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Cant add %s to params hash!\n", val);
+                                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Can't add %s to params hash!\n", val);
                                        }
                        }
                }
index 7f542a403eb12d8531ee3fa207ed0d087f812f1d..a51aa51dc6cefbfe3c7457fc2e11c7f0e3ef1098 100644 (file)
@@ -176,7 +176,7 @@ static switch_status_t xml_ldap_directory_result(void *ldap_connection, xml_bind
                                                                        ldap_value_free(ldap->valvals);
                                                                }
                                                        } else {
-                                                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "seems the values %d and %d are not the same??\n",
+                                                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Seems the values %d and %d are not the same??\n",
                                                                                                  ldap_count_values(ldap->valvals), ldap_count_values(ldap->keyvals));
                                                        }
                                                }
@@ -234,7 +234,7 @@ static switch_xml_t xml_ldap_search(const char *section, const char *tag_name, c
 
 
        if (!binding) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "no bindings...sorry bud returning now\n");
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "No bindings...sorry bud returning now\n");
                return NULL;
        }
 
@@ -247,7 +247,7 @@ static switch_xml_t xml_ldap_search(const char *section, const char *tag_name, c
        } else if (!strcmp(section, "phrases")) {
                query_type = XML_LDAP_PHRASE;
        } else {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "invalid section\n");
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid section\n");
                return NULL;
        }
 
@@ -305,7 +305,7 @@ static switch_xml_t xml_ldap_search(const char *section, const char *tag_name, c
 
                                } else {
                                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR,
-                                                                         "something bad happened during the query construction phase likely exten(%s) or domain(%s) is null\n", dir_exten,
+                                                                         "Something bad happened during the query construction phase likely exten(%s) or domain(%s) is null\n", dir_exten,
                                                                          dir_domain);
                                        goto cleanup;
                                }
@@ -387,7 +387,7 @@ static switch_xml_t xml_ldap_search(const char *section, const char *tag_name, c
        switch_safe_free(search_base);
 
        //switch_xml_toxml_buf(xml,buf,0,0,1);
-       //switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "providing:\n%s\n", buf);
+       //switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Providing:\n%s\n", buf);
 
        if (ret) {
                switch_xml_free(xml);
@@ -406,7 +406,7 @@ static switch_status_t do_config(void)
        int x = 0;
 
        if (!(xml = switch_xml_open_cfg(cf, &cfg, NULL))) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", cf);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", cf);
                return SWITCH_STATUS_TERM;
        }
 
index b0f32d2f545a6b48836b889ebf417a9a8cd47cbc..7beadda7a1722d3b58008227eefd1b54071f930a 100644 (file)
@@ -71,7 +71,7 @@ static switch_status_t do_config(void)
 
        realm = user = pass = NULL;
        if (!(xml = switch_xml_open_cfg(cf, &cfg, NULL))) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", cf);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Open of %s failed\n", cf);
                return SWITCH_STATUS_TERM;
        }