]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
docs: Fix typos in apps/
authorLuz Paz <luzpaz@pm.me>
Wed, 9 Apr 2025 13:02:27 +0000 (09:02 -0400)
committerLuz Paz <luzpaz@pm.me>
Mon, 28 Apr 2025 16:30:05 +0000 (16:30 +0000)
Found via codespell

21 files changed:
apps/app_audiosocket.c
apps/app_cdr.c
apps/app_confbridge.c
apps/app_dial.c
apps/app_echo.c
apps/app_externalivr.c
apps/app_jack.c
apps/app_meetme.c
apps/app_minivm.c
apps/app_mixmonitor.c
apps/app_morsecode.c
apps/app_mp3.c
apps/app_queue.c
apps/app_saycounted.c
apps/app_skel.c
apps/app_sla.c
apps/app_sms.c
apps/app_voicemail.c
apps/app_waitforsilence.c
apps/confbridge/conf_config_parser.c
apps/confbridge/include/confbridge.h

index 0580c137099587f0616def3ed89194d8153cfe90..88edcdaa940112662b4abd52ea717c0e4cd5c157 100644 (file)
@@ -66,7 +66,7 @@
                <description>
                        <para>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.</para>
                        <para>Protocol is specified at https://docs.asterisk.org/Configuration/Channel-Drivers/AudioSocket/</para>
-                       <para>This application does not automatically answer and should generally be preceeded by an application such as Answer() or Progress().</para>
+                       <para>This application does not automatically answer and should generally be preceded by an application such as Answer() or Progress().</para>
                </description>
        </application>
  ***/
@@ -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;
        }
 
index 9bc4189cf01c3751a54c35579023f5141f1a5687..b5c041daac4cf21b7c5c5d44b5f01bdaa628e4df 100644 (file)
@@ -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;
 };
 
index ca986a21952d83e3feaf50f504fdb1539e3eef16..44378e52f5785ead05e5aa4641b0f5e1fe00717c 100644 (file)
@@ -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.
  */
index b0df4bb44de5e6c9cf3387d4ed74918c45621679..c66be66dfb59d2ae39923476d72d87643d749807 100644 (file)
                                                nonexistent location, e.g. nonexistent DNS hostname.
                                        </value>
                                        <value name="CONGESTION">
-                                               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.
                                        </value>
                                        <value name="NOANSWER">
index 3624911fa9442002d9d7b4c73e1f9bbacc10dc41..784dca8a9711aef2e41ec88d9939817344d8723f 100644 (file)
@@ -49,7 +49,7 @@
                        channel back to itself. This will not echo CONTROL, MODEM, or NULL
                        frames. Note: If '#' detected application exits.</para>
                        <para>This application does not automatically answer and should be
-                       preceeded by an application such as Answer() or Progress().</para>
+                       preceded by an application such as Answer() or Progress().</para>
                </description>
        </application>
  ***/
index 5d778a4d490dc00777de7ef1e17acb3adf71dc16..e8031ec71bfea1368e8a32329c2d443de289eb23 100644 (file)
@@ -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) {
index 4b5672e50802af972edf7bafeb34a30365955bf1..d9f452e8482597d3db4e8316e0210cf0a5a4b081 100644 (file)
@@ -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.
index b1f1403966d82a32bb2b18dda380f14c80b50ba6..28c72eaecc776ca04c91418c0aeedd92afa3180b 100644 (file)
                                        <para>Total duration of conference in HH:MM:SS format.</para>
                                </parameter>
                                <parameter name="Creation">
-                                       <para>How the conference was created: "Dyanmic" or "Static".</para>
+                                       <para>How the conference was created: "Dynamic" or "Static".</para>
                                </parameter>
                                <parameter name="Locked">
                                        <para>Whether or not the conference is locked.</para>
index 00adc8e70bce436411ead57706421b2998cb160a..d982958b7a6a94a4e571c9e745805711c1b0446f 100644 (file)
        <description>
                <para>This application is part of the Mini-Voicemail system, configured in minivm.conf.</para>
                <para>MinivmGreet() plays default prompts or user specific prompts for an account.</para>
-               <para>Busy and unavailable messages can be choosen, but will be overridden if a temporary
+               <para>Busy and unavailable messages can be chosen, but will be overridden if a temporary
                message exists for the account.</para>
                <variablelist>
                        <variable name="MVM_GREET_STATUS">
@@ -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)
 {
 
index 7875dadbc0f03f4821bf06a65da3310f49ac4974..6cf61fa7b294f6bd67df668eca00a20d0f0f5a5b 100644 (file)
                </syntax>
                <description>
                        <para>Records the audio on the current channel to the specified file.</para>
-                       <para>This application does not automatically answer and should be preceeded by
+                       <para>This application does not automatically answer and should be preceded by
                        an application such as Answer or Progress().</para>
                        <note><para>MixMonitor runs as an audiohook.</para></note>
                        <note><para>If a filename passed to MixMonitor ends with
index cf71dc132bcfb5795e3139b951e6cab0bd8478cb..f0c999e52fb42e1b5f987e58c170690fcd58129b 100644 (file)
@@ -54,7 +54,7 @@
                </syntax>
                <description>
                        <para>Plays the Morse code equivalent of the passed string.</para>
-                       <para>This application does not automatically answer and should be preceeded by
+                       <para>This application does not automatically answer and should be preceded by
                        an application such as Answer() or Progress().</para>
                        <para>This application uses the following variables:</para>
                        <variablelist>
index de8a73b53669403adb6d78abc3c10bf6cc2099b1..bf5fb667d432cddab7e8780a9461b35cb3fb41a8 100644 (file)
@@ -74,7 +74,7 @@
                        <example title="Play an MP3 playlist">
                        exten => 1234,1,MP3Player(/var/lib/asterisk/playlist.m3u)
                        </example>
-                       <para>This application does not automatically answer and should be preceeded by an
+                       <para>This application does not automatically answer and should be preceded by an
                        application such as Answer() or Progress().</para>
                </description>
        </application>
index dbef44ffaa9430b6fbfc5af03fe736ccedad4fb6..3f76a3888e309958f39c1c246901a278a415f875 100644 (file)
                        up by another user.</para>
                        <para>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.</para>
-                       <para>This application does not automatically answer and should be preceeded
+                       <para>This application does not automatically answer and should be preceded
                        by an application such as Answer(), Progress(), or Ringing().</para>
                        <para>This application sets the following channel variables upon completion:</para>
                        <variablelist>
                        <parameter name="queuename" required="true">
                                <enumlist>
                                        <enum name="QUEUEMAX">
-                                               <para>Maxmimum number of calls allowed.</para>
+                                               <para>Maximum number of calls allowed.</para>
                                        </enum>
                                        <enum name="QUEUESTRATEGY">
                                                <para>The strategy of the queue.</para>
@@ -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 */
index 88f7facb81338252d14729957b7ddcc4772668ea..fa767974bc5a66d8c3726422a2e52db87af5efda 100644 (file)
@@ -66,7 +66,7 @@
                        implement complicated spelling rules.  We simply record the word
                        "men" in the sound file named "mans".</para>
                        <para>This application does not automatically answer and should be
-                       preceeded by an application such as Answer() or Progress.</para>
+                       preceded by an application such as Answer() or Progress.</para>
                </description>
                <see-also>
                        <ref type="application">SayCountedAdj</ref>
                        SayCountedAdj(5,new,f) will play sound file "newx" (containing the
                        word "novikh").</para>
                        <para>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().</para>
                </description>
                <see-also>
index 388878422b2b2799c6d28e8b17c3f9fb23c1af18..c6a3ddae72797ef81e129aa252c99cdb5f581cce 100644 (file)
@@ -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;
        }
 
index b3305f9f5152142b07a8af29a02ef540a7131d06..d80e7cc2a198ca44a76965b380c0139e15823641 100644 (file)
@@ -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
 }
 
index 128edcfdc6d9d1f6ae6f1c1357ba0cfbbd6b45c8..ed5406d0a5cde4fa36ded7aecc1a934401e3dc35 100644 (file)
                        <para>"Messages are processed as per text file message queues. smsq (a separate software) is a command to
                        generate message queues and send messages.</para>
                        <note><para>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.</para></note>
+                       jitter buffer on the ATA to make sure that responses (ACK etc.) are received in time.</para></note>
                </description>
        </application>
  ***/
index bb727ecbdfce43549257135561da54d2ff0ef982..7ab47a940cd19cfe34e2bcb213feb225531c0b68 100644 (file)
@@ -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)) {
index 859d2a587f83817e0d569c577f42464acce500bf..15d585162adc3c2f6b25ab1b5c8a859103bbedb8 100644 (file)
@@ -27,7 +27,7 @@
  * \author David C. Troy <dave@popvox.com>
  *
  * \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 <skadorov@yahoo.com>
index 228dd48d035b6fe364044bde582eaed38f007524..1414e0e9854c6920036f30e6c01c704fd2d1c0c1 100644 (file)
                                                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.
                                        </para></description>
                                </configOption>
                                                <enum name="playback(filename&amp;filename2&amp;...)"><para>
                                                        <literal>playback</literal> 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
                                                        <literal>&amp;</literal> character.</para></enum>
                                                <enum name="playback_and_continue(filename&amp;filename2&amp;...)"><para>
index a6fdbb4b2345295c161b141628ce21404c3ac5eb..38e984a43eb881eac6822ee702a090e52b912124 100644 (file)
@@ -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 {