From: Luz Paz Date: Wed, 9 Apr 2025 13:02:27 +0000 (-0400) Subject: docs: Fix typos in apps/ X-Git-Tag: 21.9.0-rc1~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c87b723f8c5081632f639764731edbe2fc32d619;p=thirdparty%2Fasterisk.git docs: Fix typos in apps/ Found via codespell (cherry picked from commit a20cfc68ef5c36434e27b790d56cbd5fc2c1f894) --- diff --git a/apps/app_audiosocket.c b/apps/app_audiosocket.c index 0580c13709..88edcdaa94 100644 --- a/apps/app_audiosocket.c +++ b/apps/app_audiosocket.c @@ -66,7 +66,7 @@ Connects to the given TCP server, then transmits channel audio as 16-bit, 8KHz mono PCM over that socket (other codecs available via the channel driver interface). In turn, PCM audio is received from the socket and sent to the channel. Only audio frames and DTMF frames will be transmitted. Protocol is specified at https://docs.asterisk.org/Configuration/Channel-Drivers/AudioSocket/ - This application does not automatically answer and should generally be preceeded by an application such as Answer() or Progress(). + This application does not automatically answer and should generally be preceded by an application such as Answer() or Progress(). ***/ @@ -163,7 +163,7 @@ static int audiosocket_run(struct ast_channel *chan, const char *id, int svc, co } if (ast_audiosocket_init(svc, id)) { - ast_log(LOG_ERROR, "Failed to intialize AudioSocket\n"); + ast_log(LOG_ERROR, "Failed to initialize AudioSocket\n"); return -1; } diff --git a/apps/app_cdr.c b/apps/app_cdr.c index 9bc4189cf0..b5c041daac 100644 --- a/apps/app_cdr.c +++ b/apps/app_cdr.c @@ -91,7 +91,7 @@ struct app_cdr_message_payload { const char *channel_name; /*! Reset the CDR */ unsigned int reset:1; - /*! If reseting the CDR, keep the variables */ + /*! If resetting the CDR, keep the variables */ unsigned int keep_variables:1; }; diff --git a/apps/app_confbridge.c b/apps/app_confbridge.c index ca986a2195..44378e52f5 100644 --- a/apps/app_confbridge.c +++ b/apps/app_confbridge.c @@ -1116,7 +1116,7 @@ static int sound_file_exists(const char *filename) * \param user Optional Caller * \param bridge_channel The bridged channel involved * - * \note if caller is NULL, the announcment will be sent to all participants in the conference. + * \note if caller is NULL, the announcement will be sent to all participants in the conference. * \retval 0 on success. * \retval -1 if the user hung up. */ diff --git a/apps/app_dial.c b/apps/app_dial.c index b0df4bb44d..c66be66dfb 100644 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -587,7 +587,7 @@ nonexistent location, e.g. nonexistent DNS hostname. - Channel or switching congestion occured when routing the call. + Channel or switching congestion occurred when routing the call. This can occur if there is a slow or no response from the remote end. diff --git a/apps/app_echo.c b/apps/app_echo.c index 3624911fa9..784dca8a97 100644 --- a/apps/app_echo.c +++ b/apps/app_echo.c @@ -49,7 +49,7 @@ channel back to itself. This will not echo CONTROL, MODEM, or NULL frames. Note: If '#' detected application exits. This application does not automatically answer and should be - preceeded by an application such as Answer() or Progress(). + preceded by an application such as Answer() or Progress(). ***/ diff --git a/apps/app_externalivr.c b/apps/app_externalivr.c index 5d778a4d49..e8031ec71b 100644 --- a/apps/app_externalivr.c +++ b/apps/app_externalivr.c @@ -837,7 +837,7 @@ static int eivr_comm(struct ast_channel *chan, struct ivr_localuser *u, } } else if (input[0] == EIVR_CMD_GET) { char response[2048]; - ast_verb(4, "Retriving Variables from channel: %s\n", &input[2]); + ast_verb(4, "Retrieving Variables from channel: %s\n", &input[2]); ast_eivr_getvariable(chan, &input[2], response, sizeof(response)); send_eivr_event(eivr_events, 'G', response, chan); } else if (input[0] == EIVR_CMD_SVAR) { @@ -847,7 +847,7 @@ static int eivr_comm(struct ast_channel *chan, struct ivr_localuser *u, ast_chan_log(LOG_NOTICE, chan, "Log message from EIVR: %s\n", &input[2]); } else if (input[0] == EIVR_CMD_XIT) { ast_chan_log(LOG_NOTICE, chan, "Exiting: %s\n", &input[2]); - ast_chan_log(LOG_WARNING, chan, "e'X'it command is depricated, use 'E'xit instead\n"); + ast_chan_log(LOG_WARNING, chan, "e'X'it command is deprecated, use 'E'xit instead\n"); res = 0; break; } else if (input[0] == EIVR_CMD_EXIT) { diff --git a/apps/app_jack.c b/apps/app_jack.c index 4b5672e508..d9f452e848 100644 --- a/apps/app_jack.c +++ b/apps/app_jack.c @@ -610,7 +610,7 @@ static int queue_voice_frame(struct jack_data *jack_data, struct ast_frame *f) * \param[in] jack_data This is the jack_data struct that contains the input * ringbuffer that audio will be read from. * \param[out] out_frame If this argument is non-NULL, then assuming there is - * enough data avilable in the ringbuffer, the audio in this frame + * enough data available in the ringbuffer, the audio in this frame * will get replaced with audio from the input buffer. If there is * not enough data available to read at this time, then the frame * data gets zeroed out. diff --git a/apps/app_meetme.c b/apps/app_meetme.c index b1f1403966..28c72eaecc 100644 --- a/apps/app_meetme.c +++ b/apps/app_meetme.c @@ -693,7 +693,7 @@ Total duration of conference in HH:MM:SS format. - How the conference was created: "Dyanmic" or "Static". + How the conference was created: "Dynamic" or "Static". Whether or not the conference is locked. diff --git a/apps/app_minivm.c b/apps/app_minivm.c index 00adc8e70b..d982958b7a 100644 --- a/apps/app_minivm.c +++ b/apps/app_minivm.c @@ -268,7 +268,7 @@ This application is part of the Mini-Voicemail system, configured in minivm.conf. MinivmGreet() plays default prompts or user specific prompts for an account. - Busy and unavailable messages can be choosen, but will be overridden if a temporary + Busy and unavailable messages can be chosen, but will be overridden if a temporary message exists for the account. @@ -1098,7 +1098,7 @@ static const char *ast_str_encode_mime(struct ast_str **end, ssize_t maxlen, con } /*!\internal - * \brief Wraps a character sequence in double quotes, escaping occurences of quotes within the string. + * \brief Wraps a character sequence in double quotes, escaping occurrences of quotes within the string. * \param from The string to work with. * \param buf The destination buffer to write the modified quoted string. * \param maxlen Always zero. \see ast_str @@ -1988,7 +1988,7 @@ static void queue_mwi_event(const char *channel_id, const char *mbx, const char } /*!\internal - * \brief Send MWI using interal Asterisk event subsystem */ + * \brief Send MWI using internal Asterisk event subsystem */ static int minivm_mwi_exec(struct ast_channel *chan, const char *data) { int argc; @@ -3425,7 +3425,7 @@ static int reload(void) return(load_config(1)); } -/*! \brief Reload cofiguration */ +/*! \brief Reload configuration */ static char *handle_minivm_reload(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) { diff --git a/apps/app_mixmonitor.c b/apps/app_mixmonitor.c index 7875dadbc0..6cf61fa7b2 100644 --- a/apps/app_mixmonitor.c +++ b/apps/app_mixmonitor.c @@ -171,7 +171,7 @@ Records the audio on the current channel to the specified file. - This application does not automatically answer and should be preceeded by + This application does not automatically answer and should be preceded by an application such as Answer or Progress(). MixMonitor runs as an audiohook. If a filename passed to MixMonitor ends with diff --git a/apps/app_morsecode.c b/apps/app_morsecode.c index cf71dc132b..f0c999e52f 100644 --- a/apps/app_morsecode.c +++ b/apps/app_morsecode.c @@ -54,7 +54,7 @@ Plays the Morse code equivalent of the passed string. - This application does not automatically answer and should be preceeded by + This application does not automatically answer and should be preceded by an application such as Answer() or Progress(). This application uses the following variables: diff --git a/apps/app_mp3.c b/apps/app_mp3.c index de8a73b536..bf5fb667d4 100644 --- a/apps/app_mp3.c +++ b/apps/app_mp3.c @@ -74,7 +74,7 @@ exten => 1234,1,MP3Player(/var/lib/asterisk/playlist.m3u) - This application does not automatically answer and should be preceeded by an + This application does not automatically answer and should be preceded by an application such as Answer() or Progress(). diff --git a/apps/app_queue.c b/apps/app_queue.c index dbef44ffaa..3f76a3888e 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -274,7 +274,7 @@ up by another user. This application will return to the dialplan if the queue does not exist, or any of the join options cause the caller to not enter the queue. - This application does not automatically answer and should be preceeded + This application does not automatically answer and should be preceded by an application such as Answer(), Progress(), or Ringing(). This application sets the following channel variables upon completion: @@ -585,7 +585,7 @@ - Maxmimum number of calls allowed. + Maximum number of calls allowed. The strategy of the queue. @@ -2025,7 +2025,7 @@ struct call_queue { int periodicannouncestartdelay; /*!< How long into the queue should the periodic accouncement start */ int periodicannouncefrequency; /*!< How often to play periodic announcement */ int numperiodicannounce; /*!< The number of periodic announcements configured */ - int randomperiodicannounce; /*!< Are periodic announcments randomly chosen */ + int randomperiodicannounce; /*!< Are periodic announcements randomly chosen */ int roundingseconds; /*!< How many seconds do we round to? */ int holdtime; /*!< Current avg holdtime, based on an exponential average */ int talktime; /*!< Current avg talktime, based on the same exponential average */ diff --git a/apps/app_saycounted.c b/apps/app_saycounted.c index 88f7facb81..fa767974bc 100644 --- a/apps/app_saycounted.c +++ b/apps/app_saycounted.c @@ -66,7 +66,7 @@ implement complicated spelling rules. We simply record the word "men" in the sound file named "mans". This application does not automatically answer and should be - preceeded by an application such as Answer() or Progress. + preceded by an application such as Answer() or Progress. SayCountedAdj @@ -108,7 +108,7 @@ SayCountedAdj(5,new,f) will play sound file "newx" (containing the word "novikh"). This application does not automatically answer and should be - preceeded by an application such as Answer(), Progress(), or + preceded by an application such as Answer(), Progress(), or Proceeding(). diff --git a/apps/app_skel.c b/apps/app_skel.c index 388878422b..c6a3ddae72 100644 --- a/apps/app_skel.c +++ b/apps/app_skel.c @@ -271,7 +271,7 @@ static void *skel_level_alloc(const char *cat); /*! \brief Find a skel level in the specified container * \note This function *does not* look for a skel_level in the active container. It is used * internally by the Config Options code to check if an level has already been added to the - * container that will be swapped for the live container on a successul reload. + * container that will be swapped for the live container on a successful reload. * * \param tmp_container A non-active container to search for a level * \param category The category associated with the level to check for @@ -392,7 +392,7 @@ static int skel_level_cmp(void *obj, void *arg, int flags) * bitfields in the config struct will have to use a custom handler * \param opt The opaque config option * \param var The ast_variable containing the option name and value - * \param obj The object registerd for this option type + * \param obj The object registered for this option type * \retval 0 Success * \retval non-zero Failure */ @@ -435,7 +435,7 @@ static int app_exec(struct ast_channel *chan, const char *data) ); if (!cfg) { - ast_log(LOG_ERROR, "Couldn't access configuratino data!\n"); + ast_log(LOG_ERROR, "Couldn't access configuration data!\n"); return -1; } diff --git a/apps/app_sla.c b/apps/app_sla.c index b3305f9f51..d80e7cc2a1 100644 --- a/apps/app_sla.c +++ b/apps/app_sla.c @@ -434,7 +434,7 @@ static const char *trunkstate2str(enum sla_trunk_state state) S(SLA_TRUNK_STATE_ONHOLD) S(SLA_TRUNK_STATE_ONHOLD_BYME) } - return "Uknown State"; + return "Unknown State"; #undef S } diff --git a/apps/app_sms.c b/apps/app_sms.c index 128edcfdc6..ed5406d0a5 100644 --- a/apps/app_sms.c +++ b/apps/app_sms.c @@ -106,7 +106,7 @@ "Messages are processed as per text file message queues. smsq (a separate software) is a command to generate message queues and send messages. The protocol has tight delay bounds. Please use short frames and disable/keep short the - jitter buffer on the ATA to make sure that respones (ACK etc.) are received in time. + jitter buffer on the ATA to make sure that responses (ACK etc.) are received in time. ***/ diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index bb727ecbdf..7ab47a940c 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -1798,7 +1798,7 @@ static int check_password(struct ast_vm_user *vmu, char *password) } /*! - * \brief Performs a change of the voicemail passowrd in the realtime engine. + * \brief Performs a change of the voicemail password in the realtime engine. * \param vmu The voicemail user to change the password for. * \param password The new value to be set to the password for this user. * @@ -4670,7 +4670,7 @@ static void odbc_delete_message(const char *sdir, int smsg) * \param smsg the index of the message to be copied. * \param ddir the destination folder to copy the message into. * \param dmsg the index to be used for the copied message. - * \param dmailboxuser The user who owns the mailbox tha contains the destination folder. + * \param dmailboxuser The user who owns the mailbox that contains the destination folder. * \param dmailboxcontext The context for the destination user. * * This method is used for the COPY macro when mailboxes are stored in an ODBC back end. @@ -4965,7 +4965,7 @@ static int odbc_store_message(const char *dir, const char *mailboxuser, const ch * \param dmsg The destination message for the message to be renamed. * * This method is used by the RENAME macro when mailboxes are stored in an ODBC back end. - * The is usually used to resequence the messages in the mailbox, such as to delete messag index 0, it would be called successively to slide all the other messages down one index. + * The is usually used to resequence the messages in the mailbox, such as to delete message index 0, it would be called successively to slide all the other messages down one index. * But in theory, because the SQL query performs an update on (dir, msgnum, mailboxuser, mailboxcontext) in the database, it should be possible to have the message relocated to another mailbox or context as well. */ static void odbc_rename_message(char *sdir, int smsg, char *mailboxuser, char *mailboxcontext, char *ddir, int dmsg) @@ -5344,7 +5344,7 @@ static void prep_email_sub_vars(struct ast_channel *ast, struct ast_vm_user *vmu } /*! - * \brief Wraps a character sequence in double quotes, escaping occurences of quotes within the string. + * \brief Wraps a character sequence in double quotes, escaping occurrences of quotes within the string. * \param from The string to work with. * \param buf The buffer into which to write the modified quoted string. * \param maxlen Always zero, but see \see ast_str @@ -6700,7 +6700,7 @@ static void run_externnotify(const char *context, const char *extension, const c /*! * \brief Variables used for saving a voicemail. * - * This includes the record gain, mode flags, and the exit context of the chanel that was used for leaving the voicemail. + * This includes the record gain, mode flags, and the exit context of the channel that was used for leaving the voicemail. */ struct leave_vm_options { unsigned int flags; @@ -15144,7 +15144,7 @@ static int actual_load_config(int reload, struct ast_config *cfg, struct ast_con smdi_iface = ast_smdi_interface_find("/dev/ttyS0"); } if (!smdi_iface) { - ast_log(AST_LOG_ERROR, "No valid SMDI interface specfied, disabling SMDI voicemail notification\n"); + ast_log(AST_LOG_ERROR, "No valid SMDI interface specified, disabling SMDI voicemail notification\n"); } } @@ -16227,7 +16227,7 @@ AST_TEST_DEFINE(test_voicemail_vm_info) ast_copy_string(vminfo_args, test_items[test_counter].vminfo_test_args, sizeof(vminfo_args)); test_ret = acf_vm_info(chan, vminfo_cmd, vminfo_args, vminfo_buf, sizeof(vminfo_buf)); if (strcmp(vminfo_buf, test_items[test_counter].vminfo_expected)) { - ast_test_status_update(test, "VM_INFO respose was: '%s', but expected: '%s'\n", vminfo_buf, test_items[test_counter].vminfo_expected); + ast_test_status_update(test, "VM_INFO response was: '%s', but expected: '%s'\n", vminfo_buf, test_items[test_counter].vminfo_expected); res = AST_TEST_FAIL; } if (!(test_ret == test_items[test_counter].vminfo_ret)) { diff --git a/apps/app_waitforsilence.c b/apps/app_waitforsilence.c index 859d2a587f..15d585162a 100644 --- a/apps/app_waitforsilence.c +++ b/apps/app_waitforsilence.c @@ -27,7 +27,7 @@ * \author David C. Troy * * \brief Wait For Noise - * The same as Wait For Silence but listenes noise on the chennel that is above \n + * The same as Wait For Silence but listens for noise on the channel that is above \n * the pre-configured silence threshold from dsp.conf * * \author Philipp Skadorov diff --git a/apps/confbridge/conf_config_parser.c b/apps/confbridge/conf_config_parser.c index 228dd48d03..1414e0e985 100644 --- a/apps/confbridge/conf_config_parser.c +++ b/apps/confbridge/conf_config_parser.c @@ -599,7 +599,7 @@ conference to a specific number. By default conferences have no participant limit. After the limit is reached, the conference will be locked until someone leaves. Note however - that an Admin user will always be alowed to join the conference + that an Admin user will always be allowed to join the conference regardless if this limit is reached or not. @@ -809,7 +809,7 @@ playback will play back an audio file to a channel and then immediately return to the conference. - This file can not be interupted by DTMF. + This file can not be interrupted by DTMF. Multiple files can be chained together using the & character. diff --git a/apps/confbridge/include/confbridge.h b/apps/confbridge/include/confbridge.h index a6fdbb4b23..38e984a43e 100644 --- a/apps/confbridge/include/confbridge.h +++ b/apps/confbridge/include/confbridge.h @@ -90,7 +90,7 @@ enum bridge_profile_flags { BRIDGE_OPT_REMB_BEHAVIOR_AVERAGE_ALL = (1 << 12), /*!< The average of all REMB reports in the entire bridge is sent to each sender */ BRIDGE_OPT_REMB_BEHAVIOR_LOWEST_ALL = (1 << 13), /*!< The lowest estimated maximum bitrate from all receivers is sent to each sender */ BRIDGE_OPT_REMB_BEHAVIOR_HIGHEST_ALL = (1 << 14), /*!< The highest estimated maximum bitrate from all receivers is sent to each sender */ - BRIDGE_OPT_REMB_BEHAVIOR_FORCE = (1 << 15), /*!< Force the REMB estimated bitrate to that specifiec in remb_estimated_bitrate */ + BRIDGE_OPT_REMB_BEHAVIOR_FORCE = (1 << 15), /*!< Force the REMB estimated bitrate to that specified in remb_estimated_bitrate */ }; enum conf_menu_action_id {