diff --git a/src/mod/applications/mod_commands/mod_commands.c b/src/mod/applications/mod_commands/mod_commands.c index 769207910f..0790cdd3e9 100644 --- a/src/mod/applications/mod_commands/mod_commands.c +++ b/src/mod/applications/mod_commands/mod_commands.c @@ -774,7 +774,7 @@ SWITCH_STANDARD_API(ctl_function) } else if (!strcasecmp(argv[0], "sync_clock")) { arg = 0; switch_core_session_ctl(SCSC_SYNC_CLOCK, &arg); - stream->write_function(stream, "+OK clock syncronized\n"); + stream->write_function(stream, "+OK clock synchronize\n"); } else { stream->write_function(stream, "-ERR INVALID COMMAND\nUSAGE: fsctl %s", CTL_SYNTAX); goto end; @@ -2128,7 +2128,7 @@ SWITCH_STANDARD_API(show_function) /* If you change the field qty or order of any of these select */ - /* statmements, you must also change show_callback and friends to match! */ + /* statements, you must also change show_callback and friends to match! */ if (!command) { stream->write_function(stream, "-USAGE: %s\n", SHOW_SYNTAX); goto end; diff --git a/src/mod/applications/mod_conference/mod_conference.c b/src/mod/applications/mod_conference/mod_conference.c index fbbad8f85b..412f23c3ab 100644 --- a/src/mod/applications/mod_conference/mod_conference.c +++ b/src/mod/applications/mod_conference/mod_conference.c @@ -444,7 +444,7 @@ static conference_relationship_t *member_get_relationship(conference_member_t *m break; } - /* 0 matches everyone. (We will still test the others brcause a real match carries more clout) */ + /* 0 matches everyone. (We will still test the others because a real match carries more clout) */ if (rel->id == 0) { global = rel; } @@ -1031,7 +1031,7 @@ static void *SWITCH_THREAD_FUNC conference_thread_run(switch_thread_t *thread, v int16_t *bptr, *muxed; if (imember == omember || !imember->read) { - /* Don't add audio from yourself or if you didnt read any */ + /* Don't add audio from yourself or if you didn't read any */ continue; } @@ -1802,7 +1802,7 @@ static void conference_loop_output(conference_member_t *member) conference_outcall_bg(member->conference, NULL, NULL, cp->string, to, switch_str_nil(flags), cid_name, cid_num); } } - /* Fair WARNING, If you expect the caller to hear anything or for digit handling to be proccessed, */ + /* Fair WARNING, If you expect the caller to hear anything or for digit handling to be processed, */ /* you better not block this thread loop for more than the duration of member->conference->timer_name! */ while (switch_test_flag(member, MFLAG_RUNNING) && switch_test_flag(member, MFLAG_ITHREAD) && switch_channel_ready(channel)) { @@ -2035,7 +2035,7 @@ static void conference_loop_output(conference_member_t *member) member->conference->bridge_hangup_cause = switch_channel_get_cause(channel); } - /* Wait for the input thead to end */ + /* Wait for the input thread to end */ while (switch_test_flag(member, MFLAG_ITHREAD)) { switch_yield(1000); } diff --git a/src/mod/applications/mod_dptools/mod_dptools.c b/src/mod/applications/mod_dptools/mod_dptools.c index 7cabc14bab..94facf80e4 100644 --- a/src/mod/applications/mod_dptools/mod_dptools.c +++ b/src/mod/applications/mod_dptools/mod_dptools.c @@ -1782,7 +1782,7 @@ SWITCH_STANDARD_APP(record_session_function) /* not at the end and the rest is numbers lets parse out the limit and fix up the path */ if (*limit_start != '\0' && switch_is_number(limit_start) == SWITCH_TRUE) { limit = atoi(limit_start); - /* back it off by one charecter to the char before the + */ + /* back it off by one character to the char before the + */ path_end--; /* trim spaces to the left of the plus */ @@ -2261,7 +2261,7 @@ static switch_status_t api_chat_send(char *proto, char *from, char *to, char *su #define SET_PROFILE_VAR_LONG_DESC "Set a caller profile variable for the channel calling the application." #define EXPORT_LONG_DESC "Set and export a channel variable for the channel calling the application." #define LOG_LONG_DESC "Logs a channel variable for the channel calling the application." -#define TRANSFER_LONG_DESC "Immediatly transfer the calling channel to a new extension" +#define TRANSFER_LONG_DESC "Immediately transfer the calling channel to a new extension" #define SLEEP_LONG_DESC "Pause the channel for a given number of milliseconds, consuming the audio for that period of time." SWITCH_MODULE_LOAD_FUNCTION(mod_dptools_load) { diff --git a/src/mod/applications/mod_fax/mod_fax.c b/src/mod/applications/mod_fax/mod_fax.c index b6260062a2..5ef9408be2 100644 --- a/src/mod/applications/mod_fax/mod_fax.c +++ b/src/mod/applications/mod_fax/mod_fax.c @@ -531,7 +531,7 @@ void process_fax(switch_core_session_t *session, const char *data, application_m pvt->filename = switch_core_session_strdup(session, fname); switch_safe_free(fname); } else { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Cannot automagically set fax RX destination file\n"); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Cannot automatically set fax RX destination file\n"); goto done; } } else { @@ -631,7 +631,7 @@ void process_fax(switch_core_session_t *session, const char *data, application_m goto done; } - /* Skip CNG frames (autogenerated by FreeSWITCH, usually) */ + /* Skip CNG frames (auto-generated by FreeSWITCH, usually) */ if (!switch_test_flag(read_frame, SFF_CNG)) { /* pass the new incoming audio frame to the fax_rx function */ if (fax_rx(pvt->fax_state, (int16_t *) read_frame->data, read_frame->samples)) { diff --git a/src/mod/applications/mod_skel/mod_skel.c b/src/mod/applications/mod_skel/mod_skel.c index 27721714f6..bb757ec3d3 100644 --- a/src/mod/applications/mod_skel/mod_skel.c +++ b/src/mod/applications/mod_skel/mod_skel.c @@ -59,7 +59,7 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_skel_shutdown); /* If it exists, this is called in it's own thread when the module-load completes - If it returns anything but SWITCH_STATUS_TERM it will be called again automaticly + If it returns anything but SWITCH_STATUS_TERM it will be called again automatically SWITCH_MODULE_RUNTIME_FUNCTION(mod_skel_runtime); { while(looping) diff --git a/src/mod/applications/mod_voicemail/mod_voicemail.c b/src/mod/applications/mod_voicemail/mod_voicemail.c index 6f497c76f5..6a846bc3d1 100644 --- a/src/mod/applications/mod_voicemail/mod_voicemail.c +++ b/src/mod/applications/mod_voicemail/mod_voicemail.c @@ -1505,7 +1505,7 @@ static switch_status_t listen_file(switch_core_session_t *session, vm_profile_t header_string = switch_core_session_sprintf(session, "%s\nX-Voicemail-Length: %u", headers, message_len); if (switch_event_create(&event, SWITCH_EVENT_GENERAL) == SWITCH_STATUS_SUCCESS) { - /* this isnt done? it was in the other place + /* this isn't done? it was in the other place * switch_channel_event_set_data(channel, event); */ switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Message-Type", "forwarded-voicemail"); @@ -2596,7 +2596,7 @@ static switch_status_t voicemail_leave_main(switch_core_session_t *session, cons } if (send_mail && (!(send_main || send_notify))) { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Falling back to leaving message locally due to too many misconfigurations.\n"); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Falling back to leaving message locally due to too many misconfiguration.\n"); send_mail = 0; insert_db = 1; } @@ -2687,7 +2687,7 @@ static switch_status_t voicemail_leave_main(switch_core_session_t *session, cons argc = switch_separate_string(mycmd, ' ', argv, (sizeof(argv) / sizeof(argv[0]))); if (argc >= 1 && argc <= 4) { switch_ivr_session_transfer(session, argv[0], argv[1], argv[2]); - /* the application still runs after we leave it so we need to make sure that we dont do anything evil */ + /* the application still runs after we leave it so we need to make sure that we don't do anything evil */ send_mail = 0; goto end; } @@ -2701,7 +2701,7 @@ static switch_status_t voicemail_leave_main(switch_core_session_t *session, cons argc = switch_separate_string(mycmd, ' ', argv, (sizeof(argv) / sizeof(argv[0]))); if (argc >= 1 && argc <= 4) { switch_ivr_session_transfer(session, argv[0], argv[1], argv[2]); - /* the application still runs after we leave it so we need to make sure that we dont do anything evil */ + /* the application still runs after we leave it so we need to make sure that we don't do anything evil */ send_mail = 0; goto end; } diff --git a/src/mod/asr_tts/mod_openmrcp/mod_openmrcp.c b/src/mod/asr_tts/mod_openmrcp/mod_openmrcp.c index 7f22eacdb3..0f42061eba 100644 --- a/src/mod/asr_tts/mod_openmrcp/mod_openmrcp.c +++ b/src/mod/asr_tts/mod_openmrcp/mod_openmrcp.c @@ -293,10 +293,10 @@ static mrcp_status_t openmrcp_recog_start(mrcp_client_context_t *context, openmr /** * Freeswitch calls this from switch_ivr_detect_speech() and then adds a media * bug to tap into the channel's audio, which will result in all data getting - * passed to asr_feed() and calls to asr_check_results() on each recevied frame. + * passed to asr_feed() and calls to asr_check_results() on each received frame. * * This code expects certain one-time initialization of the openmrcp client - * engine/systeme to have already taken place.function to open the asr interface + * engine/system to have already taken place.function to open the asr interface */ static switch_status_t openmrcp_asr_open(switch_asr_handle_t *ah, const char *codec, int rate, const char *dest, switch_asr_flag_t *flags) { diff --git a/src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c b/src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c index 244132a7a1..e2a82833aa 100644 --- a/src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c +++ b/src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c @@ -285,7 +285,7 @@ static switch_status_t pocketsphinx_asr_feed(switch_asr_handle_t *ah, void *data switch_clear_flag(ps, PSFLAG_READY); if ((hyp = ps_get_hyp(ps->ps, &ps->score, &ps->uttid))) { if (switch_strlen_zero(hyp)) { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Lost the text, nevermind....\n"); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Lost the text, never mind....\n"); ps_start_utt(ps->ps, NULL); switch_set_flag(ps, PSFLAG_READY); } else { @@ -313,7 +313,7 @@ static switch_status_t pocketsphinx_asr_feed(switch_asr_handle_t *ah, void *data return SWITCH_STATUS_SUCCESS; } -/*! funciton to pause recognizer */ +/*! function to pause recognizer */ static switch_status_t pocketsphinx_asr_pause(switch_asr_handle_t *ah) { pocketsphinx_t *ps = (pocketsphinx_t *) ah->private_info; diff --git a/src/mod/endpoints/mod_portaudio/mod_portaudio.c b/src/mod/endpoints/mod_portaudio/mod_portaudio.c index 0f8190178d..15bc901dc3 100644 --- a/src/mod/endpoints/mod_portaudio/mod_portaudio.c +++ b/src/mod/endpoints/mod_portaudio/mod_portaudio.c @@ -805,7 +805,7 @@ static switch_status_t load_config(void) globals.codec_ms = tmp; } else { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, - "codec-ms must be multipe of 10 and less than %d, Using default of 20\n", SWITCH_MAX_INTERVAL); + "codec-ms must be multiple of 10 and less than %d, Using default of 20\n", SWITCH_MAX_INTERVAL); } } else if (!strcmp(var, "dialplan")) { set_global_dialplan(val); diff --git a/src/mod/event_handlers/mod_event_socket/mod_event_socket.c b/src/mod/event_handlers/mod_event_socket/mod_event_socket.c index ab17391e92..dbdd3e5d56 100644 --- a/src/mod/event_handlers/mod_event_socket/mod_event_socket.c +++ b/src/mod/event_handlers/mod_event_socket/mod_event_socket.c @@ -26,7 +26,7 @@ * Anthony Minessale II * * - * mod_event_socket.c -- Socket Controled Event Handler + * mod_event_socket.c -- Socket Controlled Event Handler * */ #include diff --git a/src/mod/formats/mod_local_stream/mod_local_stream.c b/src/mod/formats/mod_local_stream/mod_local_stream.c index 9a26d5b731..237ecd42ab 100644 --- a/src/mod/formats/mod_local_stream/mod_local_stream.c +++ b/src/mod/formats/mod_local_stream/mod_local_stream.c @@ -466,7 +466,7 @@ static void launch_threads(void) source->interval = tmp; } else { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, - "Interval must be multipe of 10 and less than %d, Using default of 20\n", SWITCH_MAX_INTERVAL); + "Interval must be multiple of 10 and less than %d, Using default of 20\n", SWITCH_MAX_INTERVAL); } } else if (!strcasecmp(var, "timer-name")) { source->timer_name = switch_core_strdup(source->pool, val); @@ -644,7 +644,7 @@ SWITCH_STANDARD_API(start_local_stream_function) interval = tmp; } else { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, - "Interval must be multipe of 10 and less than %d, Using default of 20\n", SWITCH_MAX_INTERVAL); + "Interval must be multiple of 10 and less than %d, Using default of 20\n", SWITCH_MAX_INTERVAL); } } else if (!strcasecmp(var, "timer-name")) { timer_name = strdup(val); diff --git a/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c b/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c index fce0628049..bf831a3b78 100644 --- a/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c +++ b/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c @@ -52,7 +52,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_xml_cdr_load); SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_xml_cdr_shutdown); SWITCH_MODULE_DEFINITION(mod_xml_cdr, mod_xml_cdr_load, mod_xml_cdr_shutdown, NULL); -/* this function would have access to the HTML returned by the webserver, we dont need it +/* this function would have access to the HTML returned by the webserver, we don't need it * and the default curl activity is to print to stdout, something not as desirable * so we have a dummy function here */ diff --git a/src/switch.c b/src/switch.c index 14c9865301..736611ee40 100644 --- a/src/switch.c +++ b/src/switch.c @@ -105,13 +105,13 @@ static int freeswitch_kill_background() /* kill the freeswitch running at the pid we found */ fprintf(stderr, "Killing: %d\n", (int) pid); #ifdef WIN32 - /* for windows we need the event to signal for shutting down a background freewitch */ + /* for windows we need the event to signal for shutting down a background FreeSWITCH */ snprintf(path, sizeof(path), "Global\\Freeswitch.%d", pid); /* open the event so we can signal it */ shutdown_event = OpenEvent(EVENT_MODIFY_STATE, FALSE, path); - /* did we sucessfully open the event */ + /* did we successfully open the event */ if (!shutdown_event) { /* we can't get the event, so we can't signal the process to shutdown */ fprintf(stderr, "ERROR: Can't Shutdown: %d\n", (int) pid); @@ -147,7 +147,7 @@ void WINAPI ServiceCtrlHandler(DWORD control) case SERVICE_CONTROL_STOP: /* Shutdown freeswitch */ switch_core_destroy(); - /* set service status valuse */ + /* set service status values */ status.dwCurrentState = SERVICE_STOPPED; status.dwWin32ExitCode = 0; status.dwCheckPoint = 0; @@ -183,7 +183,7 @@ void WINAPI service_main(DWORD numArgs, char **args) /* attempt to initialize freeswitch and load modules */ if (switch_core_init_and_modload(flags, SWITCH_FALSE, &err) != SWITCH_STATUS_SUCCESS) { - /* freeswitch did not start sucessfully */ + /* freeswitch did not start successfully */ status.dwCurrentState = SERVICE_STOPPED; } else { /* freeswitch started */ diff --git a/src/switch_core_io.c b/src/switch_core_io.c index c481c8eabc..459131f691 100644 --- a/src/switch_core_io.c +++ b/src/switch_core_io.c @@ -733,7 +733,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_write_frame(switch_core_sess if (!session->raw_write_buffer) { switch_size_t bytes = session->write_codec->implementation->bytes_per_frame; switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, - "Engaging Write Buffer at %u bytes to accomodate %u->%u\n", + "Engaging Write Buffer at %u bytes to accommodate %u->%u\n", (uint32_t) bytes, write_frame->datalen, session->write_codec->implementation->bytes_per_frame); if ((status = switch_buffer_create_dynamic(&session->raw_write_buffer, bytes * SWITCH_BUFFER_BLOCK_FRAMES, diff --git a/src/switch_core_session.c b/src/switch_core_session.c index d81e30be38..e3ad866c28 100644 --- a/src/switch_core_session.c +++ b/src/switch_core_session.c @@ -680,7 +680,7 @@ SWITCH_DECLARE(void) switch_core_session_reset(switch_core_session_t *session, s switch_mutex_unlock(session->resample_mutex); /* clear indications */ switch_core_session_flush_message(session); - /* wipe theese, they will be recreated if need be */ + /* wipe these, they will be recreated if need be */ switch_buffer_destroy(&session->raw_read_buffer); switch_buffer_destroy(&session->raw_write_buffer); diff --git a/src/switch_core_state_machine.c b/src/switch_core_state_machine.c index 89b3e56d4a..94f3e139a2 100644 --- a/src/switch_core_state_machine.c +++ b/src/switch_core_state_machine.c @@ -331,13 +331,13 @@ SWITCH_DECLARE(void) switch_core_session_run(switch_core_session_t *session) everywhere you go you use the session to malloc with switch_core_session_alloc(session, ) - The enpoint module gets the first crack at implementing the state - if it wants to, it can cancel the default behaviour by returning SWITCH_STATUS_FALSE + The endpoint module gets the first crack at implementing the state + if it wants to, it can cancel the default behavior by returning SWITCH_STATUS_FALSE Next comes the channel's event handler table that can be set by an application - which also can veto the next behaviour in line by returning SWITCH_STATUS_FALSE + which also can veto the next behavior in line by returning SWITCH_STATUS_FALSE - Finally the default state behaviour is called. + Finally the default state behavior is called. */ diff --git a/src/switch_event.c b/src/switch_event.c index 7f3fce7174..69e63217f0 100644 --- a/src/switch_event.c +++ b/src/switch_event.c @@ -795,7 +795,7 @@ SWITCH_DECLARE(switch_status_t) switch_event_serialize(switch_event_t *event, ch switch_event_header_t *hp; switch_size_t llen = 0, dlen = 0, blocksize = 512, encode_len = 1536, new_len = 0; char *buf; - char *encode_buf = NULL; /* used for url encoding of variables to make sure unsafe things stay out of the serialzed copy */ + char *encode_buf = NULL; /* used for url encoding of variables to make sure unsafe things stay out of the serialized copy */ *str = NULL; @@ -811,11 +811,11 @@ SWITCH_DECLARE(switch_status_t) switch_event_serialize(switch_event_t *event, ch return SWITCH_STATUS_MEMERR; } - /* switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "hit serialzed!.\n"); */ + /* switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "hit serialized!.\n"); */ for (hp = event->headers; hp; hp = hp->next) { /* * grab enough memory to store 3x the string (url encode takes one char and turns it into %XX) - * so we could end up with a string that is 3 times the original's length, unlikely but rather + * so we could end up with a string that is 3 times the originals length, unlikely but rather * be safe than destroy the string, also add one for the null. And try to be smart about using * the memory, allocate and only reallocate if we need more. This avoids an alloc, free CPU * destroying loop. diff --git a/src/switch_ivr.c b/src/switch_ivr.c index 1a904ecb97..902357bc13 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -1233,7 +1233,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_digit_stream_new(switch_ivr_digit_str { switch_status_t status = SWITCH_STATUS_FALSE; - /* if we have a paser object memory pool and a stream object pointer that is null */ + /* if we have a parser object memory pool and a stream object pointer that is null */ if (parser != NULL && parser->pool && stream != NULL && *stream == NULL) { *stream = (switch_ivr_digit_stream_t *) switch_core_alloc(parser->pool, sizeof(switch_ivr_digit_stream_t)); if (*stream != NULL) { diff --git a/src/switch_ivr_bridge.c b/src/switch_ivr_bridge.c index 45eac5c3b2..4ec7c7c4e7 100644 --- a/src/switch_ivr_bridge.c +++ b/src/switch_ivr_bridge.c @@ -982,7 +982,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_uuid_bridge(const char *originator_uu /* override transmit state for originator_channel to bridge to originatee_channel * install pointer to originatee_session into originator_channel * set CF_TRANSFER on both channels and change state to CS_SOFT_EXECUTE to - * inturrupt anything they are already doing. + * interrupt anything they are already doing. * originatee_session will fall asleep and originator_session will bridge to it */ diff --git a/src/switch_odbc.c b/src/switch_odbc.c index 707f16f9d2..ea6a58c98a 100644 --- a/src/switch_odbc.c +++ b/src/switch_odbc.c @@ -94,7 +94,7 @@ SWITCH_DECLARE(switch_odbc_status_t) switch_odbc_handle_disconnect(switch_odbc_h if (result == SWITCH_ODBC_SUCCESS) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Disconnected %d from [%s]\n", result, handle->dsn); } else { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error Disconnectiong [%s]\n", handle->dsn); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error Disconnecting [%s]\n", handle->dsn); } } diff --git a/src/switch_utils.c b/src/switch_utils.c index 982a37df17..4d4f5d821d 100644 --- a/src/switch_utils.c +++ b/src/switch_utils.c @@ -27,7 +27,7 @@ * Juan Jose Comellas * * - * switch_utils.c -- Compatability and Helper Code + * switch_utils.c -- Compatibility and Helper Code * */