]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
general: Fix various typos.
authorNaveen Albert <asterisk@phreaknet.org>
Wed, 1 Jun 2022 00:49:12 +0000 (00:49 +0000)
committerGeorge Joseph <gjoseph@digium.com>
Tue, 12 Jul 2022 12:44:54 +0000 (07:44 -0500)
ASTERISK-30089 #close

Change-Id: I1f5db911fd05a3a211c522c13e990fa1d0e62275

16 files changed:
apps/app_confbridge.c
apps/app_dial.c
apps/app_playback.c
channels/chan_dahdi.c
channels/iax2/include/iax2.h
channels/sig_analog.c
channels/sig_analog.h
configs/samples/iax.conf.sample
funcs/func_logic.c
include/asterisk/test.h
main/asterisk.c
main/bridge.c
main/channel.c
main/db.c
res/res_mutestream.c
res/res_tonedetect.c

index 405277185743a2c745b278acd5c814602ba01394..492649ca2bbbbcc2643efb4e2242ef4a62cb5488 100644 (file)
@@ -1738,7 +1738,7 @@ static struct confbridge_conference *join_conference_bridge(const char *conferen
        struct post_join_action *action;
        int max_members_reached = 0;
 
-       /* We explicitly lock the conference bridges container ourselves so that other callers can not create duplicate conferences at the same */
+       /* We explicitly lock the conference bridges container ourselves so that other callers can not create duplicate conferences at the same time */
        ao2_lock(conference_bridges);
 
        ast_debug(1, "Trying to find conference bridge '%s'\n", conference_name);
index 031e26fd671088717669355ed6676679b30d15d6..7fd6f40206270e5d147951093d7949179b5584ab 100644 (file)
                                        </argument>
                                        <para>Enables <emphasis>operator services</emphasis> mode.  This option only
                                        works when bridging a DAHDI channel to another DAHDI channel
-                                       only. if specified on non-DAHDI interfaces, it will be ignored.
+                                       only. If specified on non-DAHDI interfaces, it will be ignored.
                                        When the destination answers (presumably an operator services
                                        station), the originator no longer has control of their line.
                                        They may hang up, but the switch will not release their line
index 56e74ac5e89c253c85675730e83275639595fc49..56c2a86682fef2d737466f6f84f0400a935de8f3 100644 (file)
@@ -73,8 +73,8 @@
                </syntax>
                <description>
                        <para>Plays back given filenames (do not put extension of wav/alaw etc).
-                       The playback command answer the channel if no options are specified.
-                       If the file is non-existant it will fail</para>
+                       The Playback application answers the channel if no options are specified.
+                       If the file is non-existent it will fail.</para>
                        <para>This application sets the following channel variable upon completion:</para>
                        <variablelist>
                                <variable name="PLAYBACKSTATUS">
index 506c7a9fa8b89ad19864fba85be6ea2726abd4cb..3564040eeabf2c94481d7de2ef43390520b6b4e5 100644 (file)
                <para>DAHDI allows several modifiers to be specified as part of the resource.</para>
                <para>The general syntax is :</para>
                <para><literal>Dial(DAHDI/pseudo[/extension])</literal></para>
-               <para><literal>Dial(DAHDI/&lt;channel#&gt;[c|r&lt;cadance#&gt;|d][/extension])</literal></para>
-               <para><literal>Dial(DAHDI/(g|G|r|R)&lt;group#(0-63)&gt;[c|r&lt;cadance#&gt;|d][/extension])</literal></para>
+               <para><literal>Dial(DAHDI/&lt;channel#&gt;[c|r&lt;cadence#&gt;|d][/extension])</literal></para>
+               <para><literal>Dial(DAHDI/(g|G|r|R)&lt;group#(0-63)&gt;[c|r&lt;cadence#&gt;|d][/extension])</literal></para>
                <para>The following modifiers may be used before the channel number:</para>
                <enumlist>
                <enum name="g">
index e9dc96757238dd49981bd2ebf8f0ff1994fbbbef..0d92674833262c9c80c4f2dad90b13d23599a262 100644 (file)
@@ -75,7 +75,7 @@ enum iax_frame_subclass {
        IAX_COMMAND_VNAK =      18,
        /*! Request status of a dialplan entry */
        IAX_COMMAND_DPREQ =     19,
-       /*! Request status of a dialplan entry */
+       /*! Status reply of a dialplan entry status request */
        IAX_COMMAND_DPREP =     20,
        /*! Request a dial on channel brought up TBD */
        IAX_COMMAND_DIAL =      21,
index fb93d5f3d9798799a203952e1e30f6b982eb37a7..bd16d3561475b78644e7f7c7c6fb3d7cd3d7da60 100644 (file)
@@ -2235,12 +2235,12 @@ static void *__analog_ss_thread(void *data)
                        } else if (!strcmp(exten, pickupexten)) {
                                /* Scan all channels and see if there are any
                                 * ringing channels that have call groups
-                                * that equal this channels pickup group
+                                * that equal this channel's pickup group
                                 */
                                if (idx == ANALOG_SUB_REAL) {
                                        /* Switch us from Third call to Call Wait */
                                        if (p->subs[ANALOG_SUB_THREEWAY].owner) {
-                                               /* If you make a threeway call and the *8# a call, it should actually
+                                               /* If you make a threeway call and then *8# a call, it should actually
                                                   look like a callwait */
                                                analog_alloc_sub(p, ANALOG_SUB_CALLWAIT);
                                                analog_swap_subs(p, ANALOG_SUB_CALLWAIT, ANALOG_SUB_THREEWAY);
@@ -2808,7 +2808,7 @@ static struct ast_frame *__analog_handle_event(struct analog_pvt *p, struct ast_
 
        switch (res) {
        case ANALOG_EVENT_EC_DISABLED:
-               ast_verb(3, "Channel %d echo canceler disabled due to CED detection\n", p->channel);
+               ast_verb(3, "Channel %d echo canceller disabled due to CED detection\n", p->channel);
                analog_set_echocanceller(p, 0);
                break;
 #ifdef HAVE_DAHDI_ECHOCANCEL_FAX_MODE
@@ -2819,10 +2819,10 @@ static struct ast_frame *__analog_handle_event(struct analog_pvt *p, struct ast_
                ast_verb(3, "Channel %d detected a CED tone from the network.\n", p->channel);
                break;
        case ANALOG_EVENT_EC_NLP_DISABLED:
-               ast_verb(3, "Channel %d echo canceler disabled its NLP.\n", p->channel);
+               ast_verb(3, "Channel %d echo canceller disabled its NLP.\n", p->channel);
                break;
        case ANALOG_EVENT_EC_NLP_ENABLED:
-               ast_verb(3, "Channel %d echo canceler enabled its NLP.\n", p->channel);
+               ast_verb(3, "Channel %d echo canceller enabled its NLP.\n", p->channel);
                break;
 #endif
        case ANALOG_EVENT_PULSE_START:
@@ -2907,14 +2907,14 @@ static struct ast_frame *__analog_handle_event(struct analog_pvt *p, struct ast_
                                        analog_lock_sub_owner(p, ANALOG_SUB_CALLWAIT);
                                        if (!p->subs[ANALOG_SUB_CALLWAIT].owner) {
                                                /*
-                                                * The call waiting call dissappeared.
+                                                * The call waiting call disappeared.
                                                 * This is now a normal hangup.
                                                 */
                                                analog_set_echocanceller(p, 0);
                                                return NULL;
                                        }
 
-                                       /* There's a call waiting call, so ring the phone, but make it unowned in the mean time */
+                                       /* There's a call waiting call, so ring the phone, but make it unowned in the meantime */
                                        analog_swap_subs(p, ANALOG_SUB_CALLWAIT, ANALOG_SUB_REAL);
                                        ast_verb(3, "Channel %d still has (callwait) call, ringing phone\n", p->channel);
                                        analog_unalloc_sub(p, ANALOG_SUB_CALLWAIT);
index 488be3662e9ce275c683aba2a278112fb1853ad4..7e9acda55cac35c5ed5819d5c10b4b08c98a17ef 100644 (file)
@@ -266,7 +266,7 @@ struct analog_pvt {
        enum analog_sigtype sig;
        /* To contain the private structure passed into the channel callbacks */
        void *chan_pvt;
-       /* All members after this are giong to be transient, and most will probably change */
+       /* All members after this are going to be transient, and most will probably change */
        struct ast_channel *owner;                      /*!< Our current active owner (if applicable) */
 
        struct analog_subchannel subs[3];               /*!< Sub-channels */
index 1d1c136edcd8d6ae37816969fe4c1655b2778660..5dee369724dd1fea4e00ada1aa0e754b8304d3f3 100644 (file)
@@ -386,7 +386,7 @@ autokill=yes
 ; IAX2 clients which request it.  This has only been used for the IAXy,
 ; and it has been recently proven that this firmware distribution method
 ; can be used as a source of traffic amplification attacks.  Also, the
-; IAXy firmware has not been updated for at least 18 months, so unless
+; IAXy firmware has not been updated since at least 2012, so unless
 ; you are provisioning IAXys in a secure network, we recommend that you
 ; leave this option to the default, off.
 ;
index d2677493334a305e3c8670c6a3809e76ef93100f..e62ae54c5bac6311e9cd2138aef1b54c471eb4bf 100644 (file)
        </function>
        <function name="IF" language="en_US">
                <synopsis>
-                       Check for an expresion.
+                       Check for an expression.
                </synopsis>
                <syntax argsep="?">
-                       <parameter name="expresion" required="true" />
+                       <parameter name="expression" required="true" />
                        <parameter name="retvalue" argsep=":" required="true">
                                <argument name="true" />
                                <argument name="false" />
index e23aca8df55288e519c5eb4982ca5784e7fdb9a8..78d9788f7ebd4686ce3f94bd255a2bfec0c893bb 100644 (file)
 \code
    'test show registered all'  will show every registered test.
    'test execute all'          will execute every registered test.
-   'test show results all'     will show detailed results for ever executed test
+   'test show results all'     will show detailed results for every executed test
    'test generate results xml' will generate a test report in xml format
    'test generate results txt' will generate a test report in txt format
 \endcode
index 8a98ea1aa12389d6ccd7348c7836e3a673d05fb0..9bc4c85ef8a481d50e98ec35c70eb638de9081cd 100644 (file)
@@ -3568,7 +3568,7 @@ int main(int argc, char *argv[])
        }
        ast_mainpid = getpid();
 
-       /* Process command-line options that effect asterisk.conf load. */
+       /* Process command-line options that affect asterisk.conf load. */
        while ((c = getopt(argc, argv, getopt_settings)) != -1) {
                switch (c) {
                case 'X':
@@ -4079,7 +4079,7 @@ static void asterisk_daemon(int isroot, const char *runuser, const char *rungrou
 
        load_astmm_phase_1();
 
-       /* Check whether high prio was succesfully set by us or some
+       /* Check whether high prio was successfully set by us or some
         * other incantation. */
        if (has_priority()) {
                ast_set_flag(&ast_options, AST_OPT_FLAG_HIGH_PRIORITY);
index 05eeef460e5bb10ad171f0697ab052bd873b4ee7..283ea79b69425352941009b43e8be9d9e18a3c43 100644 (file)
@@ -2544,7 +2544,7 @@ int ast_bridge_add_channel(struct ast_bridge *bridge, struct ast_channel *chan,
                if (ast_bridge_impart(bridge, yanked_chan, NULL, features,
                        AST_BRIDGE_IMPART_CHAN_INDEPENDENT)) {
                        /* It is possible for us to yank a channel and have some other
-                        * thread start a PBX on the channl after we yanked it. In particular,
+                        * thread start a PBX on the channel after we yanked it. In particular,
                         * this can theoretically happen on the ;2 of a Local channel if we
                         * yank it prior to the ;1 being answered. Make sure that it isn't
                         * executing a PBX before hanging it up.
index d73662211f825dafab7b36ee615218f694832400..c051760c3258426f3580ce35469c8971cc2e1b98 100644 (file)
@@ -6118,7 +6118,7 @@ struct ast_channel *__ast_request_and_dial(const char *type, struct ast_format_c
        }
 
        /*
-        * I seems strange to set the CallerID on an outgoing call leg
+        * It seems strange to set the CallerID on an outgoing call leg
         * to whom we are calling, but this function's callers are doing
         * various Originate methods.  This call leg goes to the local
         * user.  Once the local user answers, the dialplan needs to be
index 89650146625b18b2c1d3ad8fd67801682b9f7ca4..2277791ceefac96dd4046e6bed02efbfc6b455cb 100644 (file)
--- a/main/db.c
+++ b/main/db.c
@@ -507,7 +507,7 @@ int ast_db_deltree(const char *family, const char *keytree)
 
        ast_mutex_lock(&dblock);
        if (!ast_strlen_zero(prefix) && (sqlite3_bind_text(stmt, 1, prefix, -1, SQLITE_STATIC) != SQLITE_OK)) {
-               ast_log(LOG_WARNING, "Could bind %s to stmt: %s\n", prefix, sqlite3_errmsg(astdb));
+               ast_log(LOG_WARNING, "Couldn't bind %s to stmt: %s\n", prefix, sqlite3_errmsg(astdb));
                res = -1;
        } else if (sqlite3_step(stmt) != SQLITE_DONE) {
                ast_log(LOG_WARNING, "Couldn't execute stmt: %s\n", sqlite3_errmsg(astdb));
@@ -791,7 +791,7 @@ static char *handle_cli_database_show(struct ast_cli_entry *e, int cmd, struct a
 
        ast_mutex_lock(&dblock);
        if (!ast_strlen_zero(prefix) && (sqlite3_bind_text(stmt, 1, prefix, -1, SQLITE_STATIC) != SQLITE_OK)) {
-               ast_log(LOG_WARNING, "Could bind %s to stmt: %s\n", prefix, sqlite3_errmsg(astdb));
+               ast_log(LOG_WARNING, "Couldn't bind %s to stmt: %s\n", prefix, sqlite3_errmsg(astdb));
                sqlite3_reset(stmt);
                ast_mutex_unlock(&dblock);
                return NULL;
@@ -839,7 +839,7 @@ static char *handle_cli_database_showkey(struct ast_cli_entry *e, int cmd, struc
 
        ast_mutex_lock(&dblock);
        if (!ast_strlen_zero(a->argv[2]) && (sqlite3_bind_text(showkey_stmt, 1, a->argv[2], -1, SQLITE_STATIC) != SQLITE_OK)) {
-               ast_log(LOG_WARNING, "Could bind %s to stmt: %s\n", a->argv[2], sqlite3_errmsg(astdb));
+               ast_log(LOG_WARNING, "Couldn't bind %s to stmt: %s\n", a->argv[2], sqlite3_errmsg(astdb));
                sqlite3_reset(showkey_stmt);
                ast_mutex_unlock(&dblock);
                return NULL;
index 93c6d0a9d8f79adfbe82f563e4d6417d744c3b37..a09c83c36c9db494f73b719843399c42765a2982 100644 (file)
@@ -26,7 +26,7 @@
  *
  * \note This module only handles audio streams today, but can easily be appended to also
  * zero out text streams if there's an application for it.
- * When we know and understands what happens if we zero out video, we can do that too.
+ * When we know and understand what happens if we zero out video, we can do that too.
  */
 
 /*** MODULEINFO
index 055142bbef32b906d344a5ea538f6340deda5cc5..ec5f7842423d5cd971f23bcf33be92443bf453c5 100644 (file)
@@ -902,7 +902,7 @@ static int scan_exec(struct ast_channel *chan, const char *data)
        }
        ast_dsp_set_features(dsp, features);
        /* all modems begin negotiating with Bell 103. An answering modem just sends mark tone, or 2225 Hz */
-       ast_dsp_set_freqmode(dsp, 2225, 400, 16, 0); /* this needs to be pretty short, or the progress tones code will thing this is voice */
+       ast_dsp_set_freqmode(dsp, 2225, 400, 16, 0); /* this needs to be pretty short, or the progress tones code will think this is voice */
 
        if (fax) { /* fax detect uses same tone detect internals as modem and causes things to not work as intended, so use a separate DSP if needed. */
                ast_dsp_set_features(dsp2, DSP_FEATURE_FAX_DETECT); /* fax tone */