]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
docs: Fix various typos in main/
authorLuz Paz <luzpaz@pm.me>
Tue, 4 Feb 2025 10:53:17 +0000 (05:53 -0500)
committerLuz Paz <luzpaz@pm.me>
Thu, 20 Feb 2025 21:46:28 +0000 (21:46 +0000)
Found via `codespell -q 3 -S "./CREDITS" -L abd,asent,atleast,childrens,contentn,crypted,dne,durationm,exten,inout,leapyear,nd,oclock,offsetp,ot,parm,parms,requestor,ser,slanguage,slin,thirdparty,varn,varns,ues`

45 files changed:
main/acl.c
main/aoc.c
main/ast_expr2.c
main/ast_expr2.y
main/astmm.c
main/astobj2_container.c
main/audiohook.c
main/bridge.c
main/bridge_basic.c
main/bridge_channel.c
main/callerid.c
main/ccss.c
main/cdr.c
main/channel.c
main/cli.c
main/config_options.c
main/core_local.c
main/db.c
main/devicestate.c
main/dns.c
main/enum.c
main/features_config.c
main/file.c
main/fixedjitterbuf.c
main/json.c
main/loader.c
main/manager.c
main/manager_channels.c
main/manager_doc.xml
main/message.c
main/pbx.c
main/pbx_app.c
main/pbx_functions.c
main/pickup.c
main/rtp_engine.c
main/say.c
main/stasis.c
main/stasis_bridges.c
main/stdtime/localtime.c
main/stun.c
main/taskprocessor.c
main/udptl.c
main/utils.c
main/xml.c
main/xmldoc.c

index 772b0fb0df953f5007877a9cd37018b3d6825d37..6a851b2b4cf359903f23f97c79d2e4b1d3bf76b9 100644 (file)
@@ -104,7 +104,7 @@ static void score_address(const struct sockaddr_in *sin, struct in_addr *best_ad
        /* RFC 3330 Test network */
        } else if (strncmp(address, "192.0.2.", 8) == 0) {
                score = -15;
-       /* Every other address should be publically routable */
+       /* Every other address should be publicly routable */
        } else {
                score = 0;
        }
index 2a3f03a5916c7bb3b3dada85210f880af339c1ce..f425dc2aa003184f3383861b56cb2357a95a640d 100644 (file)
@@ -80,7 +80,7 @@
                                <parameter name="Scale" />
                                <parameter name="Unit">
                                        <enumlist>
-                                               <enum name="Octect" />
+                                               <enum name="Octet" />
                                                <enum name="Segment" />
                                                <enum name="Message" />
                                        </enumlist>
index ac02037319d5ad7681e971eb51a6e01dc4bc82c5..e63691bf446b05254c136beb68a3faee0d1d0c80 100644 (file)
@@ -3449,7 +3449,7 @@ chk_times (FP___TYPE a, FP___TYPE b, FP___TYPE r)
        /* special case: first operand is 0, no overflow possible */
        if (a == 0)
                return 0;
-       /* cerify that result of division matches second operand */
+       /* verify that result of division matches second operand */
        if (r / a != b)
                return 1;
        return 0;
index b0b257d66abd301aa2c3037c2bfdd56bf8749de5..eef44737226d71e0641423e5459165b378bfe5eb 100644 (file)
@@ -1442,7 +1442,7 @@ chk_times (FP___TYPE a, FP___TYPE b, FP___TYPE r)
        /* special case: first operand is 0, no overflow possible */
        if (a == 0)
                return 0;
-       /* cerify that result of division matches second operand */
+       /* verify that result of division matches second operand */
        if (r / a != b)
                return 1;
        return 0;
index 1b3b95c2a3bb8b63cf594964036ed867a176d669..ce86b7fe24bc79c97a3144e5a17452d9b30b712e 100644 (file)
@@ -129,7 +129,7 @@ struct ast_region {
         * \brief Location of the requested malloc block to return.
         *
         * \note Must have the same alignment that malloc returns.
-        * i.e., It is suitably aligned for any kind of varible.
+        * i.e., It is suitably aligned for any kind of variable.
         */
        unsigned char data[0] __attribute__((aligned));
 };
@@ -1132,7 +1132,7 @@ static void mm_atexit_hash_restore(struct region_list *list)
 
 /*!
  * \internal
- * \brief Sort regions comparision.
+ * \brief Sort regions comparison.
  *
  * \param left Region to compare.
  * \param right Region to compare.
index 2984c2372a425fc7f0ef7064081bad3aecea3dc2..44904c3f72d6ceebc6dc59df94bba0e9f3eb414f 100644 (file)
@@ -271,7 +271,7 @@ static void *internal_ao2_traverse(struct ao2_container *self, enum search_flags
                        return NULL;
                }
                if (!(multi_iterator = ast_calloc(1, sizeof(*multi_iterator)))) {
-                       ao2_t_ref(multi_container, -1, "OBJ_MULTIPLE interator creation failed.");
+                       ao2_t_ref(multi_container, -1, "OBJ_MULTIPLE iterator creation failed.");
                        return NULL;
                }
        }
index 7e61f0f6444fce93f343751b0ae948807034dbe3..7709b980a1a8e358eec92de6c810c05ea5af1e21 100644 (file)
@@ -496,7 +496,7 @@ static void audiohook_list_set_samplerate_compatibility(struct ast_audiohook_lis
         * at that level when it should be lower, and with no way to lower it since any
         * rate compared against it would be lower.
         *
-        * By setting it back to the lowest rate it can recalulate the new highest rate.
+        * By setting it back to the lowest rate it can recalculate the new highest rate.
         */
        audiohook_list->list_internal_samp_rate = DEFAULT_INTERNAL_SAMPLE_RATE;
 
@@ -1255,7 +1255,7 @@ static int audiohook_volume_callback(struct ast_audiohook *audiohook, struct ast
                return 0;
        }
 
-       /* Try to find the datastore containg adjustment information, if we can't just bail out */
+       /* Try to find the datastore containing adjustment information, if we can't just bail out */
        if (!(datastore = ast_channel_datastore_find(chan, &audiohook_volume_datastore, NULL))) {
                return 0;
        }
index 31866305abd1547d1b55dd225d21a27d0373767d..46526aea07b13d6ce881734ff4952d5fb048e139 100644 (file)
@@ -4245,7 +4245,7 @@ static enum ast_transfer_result blind_transfer_bridge(int is_external,
  * the transferee channel.
  *
  * \param channels A two-channel container containing the transferer and transferee
- * \param transferer The party that is transfering the call
+ * \param transferer The party that is transferring the call
  * \return The party that is being transferred
  */
 static struct ast_channel *get_transferee(struct ao2_container *channels, struct ast_channel *transferer)
@@ -4285,7 +4285,7 @@ static struct ast_channel *get_transferee(struct ao2_container *channels, struct
  * \param bridge2 Bridge that chan2 is in. If NULL, then chan2 is not bridged.
  * \param transfer_msg Data to publish for a stasis attended transfer message.
  * \retval AST_BRIDGE_TRANSFER_FAIL Internal error occurred
- * \retval AST_BRIDGE_TRANSFER_SUCCESS Succesfully transferred the bridge
+ * \retval AST_BRIDGE_TRANSFER_SUCCESS Successfully transferred the bridge
  */
 static enum ast_transfer_result attended_transfer_bridge(struct ast_channel *chan1,
                struct ast_channel *chan2, struct ast_bridge *bridge1, struct ast_bridge *bridge2,
index 1451250dfa632beaaf82f06df28faed34fe686a2..f463c2bbeabb3ff3f483a3ff19cb3a0e5320816b 100644 (file)
@@ -89,7 +89,7 @@ static const struct ast_datastore_info dtmf_features_info = {
  * \since 12.0.0
  * \brief read a feature code character and set it on for the give feature_flags struct
  *
- * \param feature_flags flags being modifed
+ * \param feature_flags flags being modified
  * \param feature feature code provided - should be an uppercase letter
  *
  * \retval 0 if the feature was set successfully
@@ -341,7 +341,7 @@ struct bridge_basic_personality {
  * \param len Length of the given extension buffer.
  *
  * \retval 0 success
- * \retval non-zero failiure
+ * \retval non-zero failure
  */
 static int builtin_feature_get_exten(struct ast_channel *chan, const char *feature_name, char *buf, size_t len)
 {
@@ -1474,7 +1474,7 @@ static struct attended_transfer_properties *attended_transfer_properties_alloc(
        /*
         * Save the transferee's party information for any recall calls.
         * This is the only piece of information needed that gets overwritten
-        * on the transferer channel by the inital call to the transfer target.
+        * on the transferer channel by the initial call to the transfer target.
         */
        ast_party_connected_line_copy(&props->original_transferer_colp,
                ast_channel_connected(props->transferer));
@@ -3196,7 +3196,7 @@ static int grab_transfer(struct ast_channel *chan, char *exten, size_t exten_len
                if (extenres) {
                        ast_copy_string(exten, extenoverride, exten_len);
                        ast_channel_unlock(chan);
-                       ast_verb(3, "Transfering call to '%s@%s'", exten, context);
+                       ast_verb(3, "Transferring call to '%s@%s'", exten, context);
                        return 0;
                }
                ast_log(LOG_WARNING, "Override extension '%s' does not exist in context '%s'\n", extenoverride, context);
index e2175959bf482030edfa6925941177876c7eeaa5..0f854edb1caa232b347a962f63f666ad8b82b71f 100644 (file)
@@ -1285,7 +1285,7 @@ void ast_bridge_channel_playfile(struct ast_bridge_channel *bridge_channel, ast_
 
        /*
         * It may be necessary to resume music on hold after we finish
-        * playing the announcment.
+        * playing the announcement.
         */
        if (ast_test_flag(ast_channel_flags(bridge_channel->chan), AST_FLAG_MOH)) {
                const char *latest_musicclass;
index da0e7fc68c14da16d0d00b4a8cb7ee67559f2126..957db01466549a763798fecc49b8be66e900adfd 100644 (file)
@@ -671,7 +671,7 @@ int callerid_feed(struct callerid_state *cid, unsigned char *ubuf, int len, stru
                                                         * but it would be silly for a telephone switch to do that. */
                                                        break;
                                                /* For MDMF spills, we would expect to get an "O" or a "P"
-                                                * for paramter 4 (or 8) as opposed to 2 (or 7) to indicate
+                                                * for parameter 4 (or 8) as opposed to 2 (or 7) to indicate
                                                 * a blocked or out of area presentation.
                                                 * However, for SDMF, which doesn't have parameters,
                                                 * there is no differentiation, which is why the logic below
index 68cbed852e68b722b8dd199f6524d5663bf6aee8..5ec67cd2892891f2295adf60368b0d3852560e95 100644 (file)
@@ -584,7 +584,7 @@ static enum ast_device_state cc_state_to_devstate_map[] = {
  *
  * \param state
  *
- * \return the correponding DEVICE STATE from the cc_state_to_devstate_map
+ * \return the corresponding DEVICE STATE from the cc_state_to_devstate_map
  * when passed an internal state.
  */
 static enum ast_device_state cc_state_to_devstate(enum cc_state state)
@@ -612,7 +612,7 @@ static enum ast_device_state ccss_device_state(const char *device_name)
        match_flags = MATCH_NO_REQUEST;
        core_instance = ao2_t_callback_data(cc_core_instances, 0, match_agent,
                (char *) device_name, &match_flags,
-               "Find Core Instance for ccss_device_state reqeust.");
+               "Find Core Instance for ccss_device_state request.");
        if (!core_instance) {
                ast_log_dynamic_level(cc_logger_level,
                        "Couldn't find a core instance for caller %s\n", device_name);
@@ -2208,7 +2208,7 @@ static void call_destructor_with_no_monitor(const char * const monitor_type, voi
 
 /*!
  * \internal
- * \brief Allocate and intitialize a device cc_monitor
+ * \brief Allocate and initialize a device cc_monitor
  *
  * For all intents and purposes, this is the same as
  * cc_extension_monitor_init, except that there is only
@@ -4294,7 +4294,7 @@ static int cccancel_exec(struct ast_channel *chan, const char *data)
        }
 
        if (strcmp(core_instance->agent->callbacks->type, "generic")) {
-               ast_log(LOG_WARNING, "CallCompletionCancel may only be used for calles with a generic agent\n");
+               ast_log(LOG_WARNING, "CallCompletionCancel may only be used for calls with a generic agent\n");
                cc_unref(core_instance, "Unref core instance found during CallCompletionCancel");
                pbx_builtin_setvar_helper(chan, "CC_CANCEL_RESULT", "FAIL");
                pbx_builtin_setvar_helper(chan, "CC_CANCEL_REASON", "NOT_GENERIC");
index c26c80421c7584b7f01863aa56e215b5a9328d36..605e4558a85b607fc14238213078658d9e19cb44 100644 (file)
@@ -1629,7 +1629,7 @@ static void cdr_object_swap_snapshot(struct cdr_object_snapshot *old_snapshot,
                struct ast_channel_snapshot *new_snapshot)
 {
        cdr_object_update_cid(old_snapshot, new_snapshot);
-       ao2_t_replace(old_snapshot->snapshot, new_snapshot, "Swap CDR shapshot");
+       ao2_t_replace(old_snapshot->snapshot, new_snapshot, "Swap CDR snapshot");
 }
 
 /* BASE METHOD IMPLEMENTATIONS */
@@ -2914,7 +2914,7 @@ static void handle_parked_call_message(void *data, struct stasis_subscription *s
        }
 
        if (unhandled) {
-               /* Nothing handled the messgae - we need a new one! */
+               /* Nothing handled the message - we need a new one! */
                struct cdr_object *new_cdr;
 
                new_cdr = cdr_object_create_and_append(cdr, stasis_message_timestamp(message));
@@ -4445,7 +4445,7 @@ static void destroy_subscriptions(void)
 }
 
 /*!
- * \brief Create the Stasis subcriptions for CDRs
+ * \brief Create the Stasis subscriptions for CDRs
  */
 static int create_subscriptions(void)
 {
index fbd65b0da783960011448d245912b515e0168aa8..c70cc0d4a50ede4fd6244c97c1832daeecf59c5b 100644 (file)
@@ -942,7 +942,7 @@ __ast_channel_alloc_ap(int needqueue, int state, const char *cid_num, const char
 
        /*
         * And now, since the channel structure is built, and has its name, let
-        * the world know of its existance
+        * the world know of its existence
         */
        ast_channel_stage_snapshot_done(tmp);
 
@@ -3700,7 +3700,7 @@ static struct ast_frame *__ast_read(struct ast_channel *chan, int dropaudio, int
                                ast_channel_alert_write(chan);
                        } else {
                                /*
-                                * Safely disable continous timer events if only buffered dtmf begin or end
+                                * Safely disable continuous timer events if only buffered dtmf begin or end
                                 * frames are left in the readq.
                                 */
                                ast_timer_disable_continuous(ast_channel_timer(chan));
@@ -5085,7 +5085,7 @@ static void adjust_frame_for_plc(struct ast_channel *chan, struct ast_frame *fra
                return;
        }
 
-       /* First, we need to be sure that our buffer is large enough to accomodate
+       /* First, we need to be sure that our buffer is large enough to accommodate
         * the samples we need to fill in. This will likely only occur on the first
         * frame we write.
         */
@@ -6918,7 +6918,7 @@ static void channel_do_masquerade(struct ast_channel *original, struct ast_chann
         */
        ao2_lock(channels);
 
-       /* Bump the refs to ensure that they won't dissapear on us. */
+       /* Bump the refs to ensure that they won't disappear on us. */
        ast_channel_ref(original);
        ast_channel_ref(clonechan);
 
@@ -7128,7 +7128,7 @@ static void channel_do_masquerade(struct ast_channel *original, struct ast_chann
        ast_autochan_new_channel(clonechan, original);
 
        clone_variables(original, clonechan);
-       /* Presense of ADSI capable CPE follows clone */
+       /* Presence of ADSI capable CPE follows clone */
        ast_channel_adsicpe_set(original, ast_channel_adsicpe(clonechan));
        /* Bridge remains the same */
        /* CDR fields remain the same */
index db9a86e5745e0cdd695d072825c3f40a98890ffe..0b8f6bc0596211da1efe80b83319ee0bf90e8bc2 100644 (file)
@@ -1754,7 +1754,7 @@ static char *handle_showchan(struct ast_cli_entry *e, int cmd, struct ast_cli_ar
                "   Pickup Group: %llu\n"
                "    Application: %s\n"
                "           Data: %s\n"
-               " Call Identifer: %s\n",
+               " Call Identifier: %s\n",
                ast_channel_name(chan),
                ast_channel_tech(chan)->type,
                ast_channel_uniqueid(chan),
index ae3fae549fe0d06e6c7c86b218a30b5bd2c3022b..12c3b49d63b95249f4483ee0731f270f0c6561da 100644 (file)
@@ -391,7 +391,7 @@ static struct aco_option *aco_option_find(struct aco_type *type, const char *nam
        struct aco_option *opt;
 
        if (!type || !type->internal || !type->internal->opts) {
-               ast_log(LOG_NOTICE, "Attempting to use NULL or unitialized config type\n");
+               ast_log(LOG_NOTICE, "Attempting to use NULL or uninitialized config type\n");
                return NULL;
        }
 
index 89441a5b3d4e9e71b8f06c0ae5c8a4be7d4643ca..32625bccba9f4b1eca21fd00c4e2d520494a96f4 100644 (file)
@@ -297,7 +297,7 @@ struct ast_channel *ast_local_get_peer(struct ast_channel *ast)
 
        found = p ? ao2_find(locals, p, 0) : NULL;
        if (!found) {
-               /* ast is either not a local channel or it has alredy been hungup */
+               /* ast is either not a local channel or it has already been hungup */
                return NULL;
        }
        ao2_lock(found);
@@ -895,7 +895,7 @@ static struct local_pvt *local_alloc(const char *data, struct ast_stream_topolog
         *
         * This is a silly default because it represents state held by
         * the local channels.  Unless local channel optimization is
-        * disabled, the state will dissapear when the local channels
+        * disabled, the state will disappear when the local channels
         * optimize out.
         */
        ast_set_flag(&pvt->base, AST_UNREAL_MOH_INTERCEPT);
index 8c657d6a7574b09609d097f64a11cdd0ea1aab7d..65985b9d46750117a725b6f816915a3949b69b4a 100644 (file)
--- a/main/db.c
+++ b/main/db.c
@@ -220,7 +220,7 @@ static void clean_statements(void)
 static int init_statements(void)
 {
        /* Don't initialize create_astdb_statement here as the astdb table needs to exist
-        * brefore these statements can be initialized */
+        * before these statements can be initialized */
        return init_stmt(&get_stmt, get_stmt_sql, sizeof(get_stmt_sql))
        || init_stmt(&exists_stmt, exists_stmt_sql, sizeof(exists_stmt_sql))
        || init_stmt(&del_stmt, del_stmt_sql, sizeof(del_stmt_sql))
index caa504a24bbda4f942441d513c1b8bddb457363a..ea7194cc9ac4ba226731e635f35418201ac05fa6 100644 (file)
@@ -783,7 +783,7 @@ static const char *device_state_get_id(struct stasis_message *message)
  * \since 12.2.0
  *
  * \param cache_topic Caching topic the aggregate message may be published over.
- * \param aggregate The aggregate shapshot message to publish.
+ * \param aggregate The aggregate snapshot message to publish.
  */
 static void device_state_aggregate_publish(struct stasis_topic *cache_topic, struct stasis_message *aggregate)
 {
@@ -808,7 +808,7 @@ static void device_state_aggregate_publish(struct stasis_topic *cache_topic, str
  * \since 12.2.0
  *
  * \param entry Cache entry to calculate a new aggregate snapshot.
- * \param new_snapshot The shapshot that is being updated.
+ * \param new_snapshot The snapshot that is being updated.
  *
  * \note Return a ref bumped pointer from stasis_cache_entry_get_aggregate()
  * if a new aggregate could not be calculated because of error.
index 2ef97992bfa1fbfd1b741a15ef4e293ef756a9e8..02ed6e3272f1cfa990c36fe58458c7e35a15bee2 100644 (file)
@@ -485,7 +485,7 @@ static int dns_parse_answer_ex(void *context, int rr_class, int rr_type, unsigne
 /*!
  * \brief Lookup record in DNS
  *
- * \note Asterisk DNS is synchronus at this time. This means that if your DNS does not
+ * \note Asterisk DNS is synchronous at this time. This means that if your DNS does not
  *       work properly, Asterisk might not start properly or a channel may lock.
 */
 int ast_search_dns(void *context,
index 15451c270f7e95590839bfdac4bbda806ecb5def..27cb34fc30f07528eb2de60ed35e3fdec7afaef7 100644 (file)
@@ -40,7 +40,7 @@
  *   http://tools.ietf.org/wg/enum/draft-ietf-enum-branch-location-record/
  *
  * \par Possible improvement
- * \todo Implement a caching mechanism for multile enum lookups
+ * \todo Implement a caching mechanism for multiple enum lookups
  * - See https://issues.asterisk.org/view.php?id=6739
  * \todo The service type selection needs to be redone.
  */
@@ -513,7 +513,7 @@ static int parse_naptr(unsigned char *dst, int dstsize, char *tech, int techsize
                re_flags |= REG_ICASE;
        }
 
-       pattern = regexp + 1;   /* pattern is the regex without the begining and ending delimiter */
+       pattern = regexp + 1;   /* pattern is the regex without the beginning and ending delimiter */
        *delim2 = 0;    /* zero out the middle delimiter */
        subst   = delim2 + 1; /* dst substring is everything after the second delimiter. */
        regexp[regexp_len - 1] = 0; /* zero out the last delimiter */
@@ -603,7 +603,7 @@ static int parse_naptr(unsigned char *dst, int dstsize, char *tech, int techsize
        return 0;
 }
 
-/* do not return requested value, just count RRs and return thei number in dst */
+/* do not return requested value, just count RRs and return their number in dst */
 #define ENUMLOOKUP_OPTIONS_COUNT       1
 /* do an ISN style lookup */
 #define ENUMLOOKUP_OPTIONS_ISN         2
@@ -675,7 +675,7 @@ int ast_get_enum(struct ast_channel *chan, const char *number, char *dst, int ds
 
 /*
   We don't need that any more, that "n" preceding the number has been replaced by a flag
-  in the options paramter.
+  in the options parameter.
        ast_copy_string(naptrinput, number, sizeof(naptrinput));
 */
 /*
@@ -740,7 +740,7 @@ int ast_get_enum(struct ast_channel *chan, const char *number, char *dst, int ds
         * This code does more than simple RFC3261 ENUM. All these rewriting
         * schemes have in common that they build the FQDN for the NAPTR lookup
         * by concatenating
-        *    - a number which needs be flipped and "."-seperated       (left)
+        *    - a number which needs be flipped and "."-separated       (left)
         *    - some fixed string                                       (middle)
         *    - an Apex.                                                (apex)
         *
index 8da3c13f7016dde35c7d2dc45fbf4498782a9a8a..cd044e24299b371a2826e100f896a2b313ef5980 100644 (file)
                                <description>
                                        <para>The applicationmap is an area where new custom features can be created. Items
                                        defined in the applicationmap are not automatically accessible to bridged parties. Access
-                                       to the individual items is controled using the <replaceable>DYNAMIC_FEATURES</replaceable> channel variable.
+                                       to the individual items is controlled using the <replaceable>DYNAMIC_FEATURES</replaceable> channel variable.
                                        The <replaceable>DYNAMIC_FEATURES</replaceable> is a <literal>#</literal> separated list of
                                        either applicationmap item names or featuregroup names.</para>
                                </description>
index 3b4efef94ab2ff75859625d0139e75a4d85f17d3..0f29ca82db2d6922a7fd4994ebb44fdf1386042f 100644 (file)
@@ -729,7 +729,7 @@ static int fileexists_test(const char *filename, const char *fmt, const char *la
  *
  * \param filename Name of the file.
  * \param fmt Format to look for the file in. OPTIONAL
- * \param preflang The perfered language
+ * \param preflang The preferred language
  * \param buf Returns the matching filename
  * \param buflen Size of the buf
  * \param result_cap OPTIONAL format capabilities result structure
index 6c923296c74cc7d8a683644da94eb39239fdefec..956166ca4ef0aad4c2808c74d04ea5c5ca9f7a3f 100644 (file)
@@ -268,7 +268,7 @@ int fixed_jb_put(struct fixed_jb *jb, void *data, long ms, long ts, long now)
 
                return FIXED_JB_OK;
        } else if (!jb->frames) {
-               /* the frame list is empty or thats just the first frame ever */
+               /* the frame list is empty or that's just the first frame ever */
                /* tail should also be NULL is that case */
                ASSERT(jb->tail == NULL);
                jb->frames = jb->tail = newframe;
index 20e2975dce267b5f61a7d79acddd7508e353ac90..6f62486efde56bd449a02a2fdde72767fd52de8c 100644 (file)
@@ -88,7 +88,7 @@ enum ast_json_type ast_json_typeof(const struct ast_json *json)
        case JSON_FALSE: return AST_JSON_FALSE;
        case JSON_NULL: return AST_JSON_NULL;
        }
-       ast_assert(0); /* Unexpect return from json_typeof */
+       ast_assert(0); /* Unexpected return from json_typeof */
        return r;
 }
 
index ce8f2dcff40bd8a56ceeb848e9211383ffe71e03..209eb35e2fe500886d5431e19a217a3873a3e8d2 100644 (file)
@@ -2376,7 +2376,7 @@ static int loader_builtin_init(struct load_order *load_order)
                        continue;
                }
 
-               /* Parse dependendencies from mod->info. */
+               /* Parse dependencies from mod->info. */
                if (module_post_register(mod)) {
                        return -1;
                }
index 7fe245335f66641f9ada871dd2bfeffc8d9fa1c5..b69b7ca86e67769317f83d0cb85b8b1b730dadc3 100644 (file)
@@ -2586,7 +2586,7 @@ static int action_listcategories(struct mansession *s, const struct message *m)
 
        ret = is_restricted_file(fn);
        if (ret == 1) {
-               astman_send_error(s, m, "File requires escalated priveleges");
+               astman_send_error(s, m, "File requires escalated privileges");
                return 0;
        } else if (ret == -1) {
                astman_send_error(s, m, "Config file not found");
@@ -5319,7 +5319,7 @@ static int action_originate(struct mansession *s, const struct message *m)
                        ast_string_field_set(fast, otherchannelid, assignedids.uniqueid2);
                        fast->vars = vars;
                        fast->cap = cap;
-                       cap = NULL; /* transfered originate helper the capabilities structure.  It is now responsible for freeing it. */
+                       cap = NULL; /* transferred originate helper the capabilities structure.  It is now responsible for freeing it. */
                        fast->timeout = to;
                        fast->early_media = bridge_early;
                        fast->priority = pi;
index dc2b3854bcae080c4744075bdf32384fcbde402d..35d82f099e3f50ad78a3637b5d12c86c6b330fd4 100644 (file)
                                <channel_snapshot/>
                                <parameter name="Extension">
                                        <para>Deprecated in 12, but kept for
-                                       backward compatability. Please use
+                                       backward compatibility. Please use
                                        'Exten' instead.</para>
                                </parameter>
                                <parameter name="Application">
index 0070e0507a841e10fef460b6d3a3ae129b138e0f..8511b50a733e201a993839cd07ef48c9fb5c0571 100644 (file)
                        <syntax>
                                <xi:include xpointer="xpointer(/docs/manager[@name='Login']/syntax/parameter[@name='ActionID'])" />
                                <parameter name="EventList">
-                                       <para>Conveys the status of the command reponse list</para>
+                                       <para>Conveys the status of the command response list</para>
                                </parameter>
                                <parameter name="ListItems">
                                        <para>The total number of list items produced</para>
                                <para>This represents the amount of units charged. The ETSI AOC standard specifies that
                                this value along with the optional UnitType value are entries in a list.  To accommodate this
                                these values take an index value starting at 0 which can be used to generate this list of
-                               unit entries.  For Example, If two unit entires were required this could be achieved by setting the
-                               paramter UnitAmount(0)=1234 and UnitAmount(1)=5678.  Note that UnitAmount at index 0 is
+                               unit entries.  For example, If two unit entries were required this could be achieved by setting the
+                               parameter UnitAmount(0)=1234 and UnitAmount(1)=5678.  Note that UnitAmount at index 0 is
                                required when ChargeType=Unit, all other entries in the list are optional.
                                </para>
                        </parameter>
                        </note>
                        <note>
                        <para>
-                       This comand requires the system permission because
+                       This command requires the system permission because
                        this command can be used to create filters that may bypass
                        filters defined in manager.conf
                        </para>
index cae47a046ed13726edd0e0f86e972dbc21548ebf..496d8b234c13a0545853ee2d31bed157a903dac9 100644 (file)
                                                Successfully passed on to the protocol handler, but delivery has not necessarily been guaranteed.
                                        </value>
                                        <value name="FAILURE">
-                                               The protocol handler reported that it was unabled to deliver the message for some reason.
+                                               The protocol handler reported that it was unable to deliver the message for some reason.
                                        </value>
                                </variable>
                        </variablelist>
@@ -1447,7 +1447,7 @@ struct ast_msg_data {
        /*! The length of this structure plus the actual length of the allocated buffer */
        size_t length;
        enum ast_msg_data_source_type source;
-       /*! These are indices into the buffer where teh attribute starts */
+       /*! These are indices into the buffer where the attribute starts */
        int attribute_value_offsets[__AST_MSG_DATA_ATTR_LAST];
        /*! The buffer containing the NULL separated attributes */
        char buf[0];
index 2856e1af81d99c092fe18eab825e636a3a1aeb08..cbacfba985d3ae75593a6df6b28ab793e598cff0 100644 (file)
@@ -1022,7 +1022,7 @@ static void pbx_destroy(struct ast_pbx *p)
  * in a similar collating sequence as sorting alphabetic strings, from left to
  * right. Thus, "1XXXXX" comes before "X11111", and would be the "better" match,
  * because "1" is more specific than "X".
- * So, to accomodate this philosophy, I sort the tree branches along the alt_char
+ * So, to accommodate this philosophy, I sort the tree branches along the alt_char
  * line so they are lowest to highest in specificity numbers. This way, as soon
  * as we encounter our first complete match, we automatically have the "best"
  * match and can stop the traversal immediately. Same for CANMATCH/MATCHMORE.
@@ -4341,7 +4341,7 @@ static enum ast_pbx_result __ast_pbx_run(struct ast_channel *c,
        callid = ast_read_threadstorage_callid();
        /* If the thread isn't already associated with a callid, we should create that association. */
        if (!callid) {
-               /* Associate new PBX thread with the channel call id if it is availble.
+               /* Associate new PBX thread with the channel call id if it is available.
                 * If not, create a new one instead.
                 */
                callid = ast_channel_callid(c);
index 9b2068d29f22ae7145f26ea65c379a8dc573f59e..a1b3f0003d9ac71fc850bc1a511fe4d06f61397e 100644 (file)
@@ -271,9 +271,9 @@ static char *handle_show_application(struct ast_cli_entry *e, int cmd, struct as
                return NULL;
        case CLI_GENERATE:
                /*
-                * There is a possibility to show informations about more than one
+                * There is a possibility to show information about more than one
                 * application at one time. You can type 'show application Dial Echo' and
-                * you will see informations about these two applications ...
+                * you will see information about these two applications ...
                 */
                return ast_complete_applications(a->line, a->word, -1);
        }
index a244ddcc085534b3816236370a2d7e4170d5c0dc..75b79ffa2ac7a0591fb33b74e5d9d7e1d8f544a6 100644 (file)
@@ -312,7 +312,7 @@ static int write_escalates(const struct ast_custom_function *acf)
  *  \param acf ast_custom_function structure with empty 'desc' and 'synopsis'
  *             but with a function 'name'.
  *  \retval -1 On error.
- *  \retval 0 On succes.
+ *  \retval 0 On success.
  */
 static int acf_retrieve_docs(struct ast_custom_function *acf)
 {
index 2066144ca40d6e866440e5b3d0b3577a49f735b6..d0a7558afb0d319a652b769da4313ba22e286d94 100644 (file)
@@ -69,7 +69,7 @@ STASIS_MESSAGE_TYPE_DEFN(
 
 /*!
  * The presence of this datastore on the channel indicates that
- * someone is attemting to pickup or has picked up the channel.
+ * someone is attempting to pickup or has picked up the channel.
  * The purpose is to prevent a race between two channels
  * attempting to pickup the same channel.
  */
index fbd2c9ce42fda6be894c4f5e0b7051a8a860040f..9110988fc63771a4a884d60f190472bd644f4950 100644 (file)
@@ -1973,7 +1973,7 @@ static int rtp_codecs_assign_payload_code_rx(struct ast_rtp_codecs *codecs, int
                                /* We can either call this with the full list or the current rx list. The former
                                 * (static_RTP_PT) results in payload types skipping statically 'used' slots so you
                                 * get 101, 113...
-                                * With the latter (the built ingore list) you get what's expected 101, 102, 103 under
+                                * With the latter (the built ignore list) you get what's expected 101, 102, 103 under
                                 * most circumstances, but this results in static types being replaced.  Probably fine
                                 * because we preclude the current list.
                                 */
index 5002e8fc838d7ad364b14a3b931b5234dce35a94..6b279f0fe566c4299e9d94b03a13c16e5ebca848 100644 (file)
@@ -5168,7 +5168,7 @@ int ast_say_date_with_format_is(struct ast_channel *chan, time_t t, const char *
                                }
                                break;
                        case 'H':
-                               /* 24-Hour, single digit hours preceeded by "oh" (0) */
+                               /* 24-Hour, single digit hours preceded by "oh" (0) */
                                if (tm.tm_hour < 10 && tm.tm_hour > 0) {
                                        res = wait_file(chan, ints, "digits/0", lang);
                                }
index 1e915984e01515d5fdbad91887a825c72760238e..220b0fd0ac52941ac7b82783855bdd600be868de 100644 (file)
  * subscriptions need the topics to unsubscribe and check subscription status.
  *
  * The cycle is broken by stasis_unsubscribe(). The unsubscribe will remove the
- * topic's reference to a subscription. When the subcription is destroyed, it
+ * topic's reference to a subscription. When the subscription is destroyed, it
  * will remove its reference to the topic.
  *
  * This means that until a subscription has be explicitly unsubscribed, it will
@@ -2655,7 +2655,7 @@ static char *statistics_show_subscription(struct ast_cli_entry *e, int cmd, stru
 
        subscription_stats = ao2_global_obj_ref(subscription_statistics);
        if (!subscription_stats) {
-               ast_cli(a->fd, "Could not fetch subcription_statistics container\n");
+               ast_cli(a->fd, "Could not fetch subscription_statistics container\n");
                return CLI_FAILURE;
        }
 
index 06b77a873a30cae926d9002d0e3a304cc8fa7e47..b9c76bee9daa0c8be72e98aa7d1684e55ddd9cdc 100644 (file)
@@ -59,8 +59,8 @@
                                                <enum name="Not Permitted"><para>Bridge does not permit transfers</para></enum>
                                                <enum name="Success"><para>Transfer completed successfully</para></enum>
                                        </enumlist>
-                                       <note><para>A result of <literal>Success</literal> does not necessarily mean that a target was succesfully
-                                       contacted. It means that a party was succesfully placed into the dialplan at the expected location.</para></note>
+                                       <note><para>A result of <literal>Success</literal> does not necessarily mean that a target was successfully
+                                       contacted. It means that a party was successfully placed into the dialplan at the expected location.</para></note>
                                </parameter>
                                <channel_snapshot prefix="Transferer"/>
                                <channel_snapshot prefix="Transferee"/>
index b1fddee3bd3f77ce92419fb38283181cf9a5e275..dee613e1cb01b35eecf1d16f32d204bfa9d6b4f5 100644 (file)
@@ -1744,7 +1744,7 @@ struct ast_tm *ast_localtime(const struct timeval *timep, struct ast_tm *tmp, co
 }
 
 /*
-** This function provides informaton about daylight savings time
+** This function provides information about daylight savings time
 ** for the given timezone.  This includes whether it can determine
 ** if daylight savings is used for this timezone, the UTC times for
 ** when daylight savings transitions, and the offset in seconds from
index 3456d30821c87491718c12fcc81ebb86cf4e737c..ca3cffeea2d4ee9f0f99551e41b587d9c51f22bf 100644 (file)
@@ -508,7 +508,7 @@ try_again:
                        /* Bad STUN packet, not right type, or transaction ID did not match. */
                        memset(answer, 0, sizeof(struct sockaddr_in));
 
-                       /* Was not a resonse to our request. */
+                       /* Was not a response to our request. */
                        goto try_again;
                }
                /* Success.  answer contains the external address if available. */
index c5f35585eca6465b05861d192e22cc3b8f73aaf3..3c83a6883e8ac07597cf927cb37745b7997b51f5 100644 (file)
@@ -336,7 +336,7 @@ static void tps_shutdown(void)
         * a taskprocessor was not cleaned up somewhere */
        if (objcount > 0) {
                ast_log(LOG_ERROR,
-               "Asertion may occur, the following taskprocessors are still runing:\n");
+               "Assertion may occur, the following taskprocessors are still running:\n");
 
                sorted_tps = ao2_container_alloc_rbtree(AO2_ALLOC_OPT_LOCK_NOLOCK, 0, tps_sort_cb,
                        NULL);
index 3c3509a61f46ba9d6f3ecb7c85c5ebf7919452a3..572571246b3c57b97a45cde6a9ce6f285eaa493f 100644 (file)
@@ -913,7 +913,7 @@ static void calculate_far_max_ifp(struct ast_udptl *udptl)
         * datagram buffer. this is complicated by the fact that some
         * far endpoints send us bogus (small) max datagram values,
         * which would result in either buffer overrun or no error
-        * correction. we try to accomodate those, but if the supplied
+        * correction. we try to accommodate those, but if the supplied
         * value is too small to do so, we'll emit warning messages and
         * the user will have to use configuration options to override
         * the max datagram value supplied by the far endpoint.
index 80282308d56df24000937b79269107b8b61aebab..03c0216ac2b210dff04a36198f5394cf3f82398d 100644 (file)
@@ -2631,7 +2631,7 @@ int ast_utils_init(void)
 /*!
  *\brief Parse digest authorization header.
  *\return Returns -1 if we have no auth or something wrong with digest.
- *\note        This function may be used for Digest request and responce header.
+ *\note        This function may be used for Digest request and response header.
  * request arg is set to nonzero, if we parse Digest Request.
  * pedantic arg can be set to nonzero if we need to do addition Digest check.
  */
index bd4c59f5defb0bef8cbb7edfec2b2ed9c5441e30..8f7a89111673f5c1a70b3528f83c7cb03eda6580 100644 (file)
@@ -304,7 +304,7 @@ struct ast_xml_node *ast_xml_find_element(struct ast_xml_node *root_node, const
        }
 
        for (cur = root_node; cur; cur = ast_xml_node_get_next(cur)) {
-               /* Check if the name matchs */
+               /* Check if the name matches */
                if (strcmp(ast_xml_node_get_name(cur), name)) {
                        continue;
                }
index a960addb36a9c01f64979450d6499483f1899c49..8bb2fd04f089990b8d022a7109294dddf4d818f0 100644 (file)
@@ -629,7 +629,7 @@ static int xmldoc_has_specialtags(struct ast_xml_node *fixnode)
  * \param rootname Name of the application, function, option, etc. to build the syntax.
  * \param childname The name of each parameter node.
  * \param printparenthesis Boolean if we must print parenthesis if not parameters are found in the rootnode.
- * \param printrootname Boolean if we must print the rootname before the syntax and parenthesis at the begining/end.
+ * \param printrootname Boolean if we must print the rootname before the syntax and parenthesis at the beginning/end.
  *
  * \retval NULL on error.
  * \retval An ast_malloc'ed string with the syntax generated.
@@ -757,7 +757,7 @@ static char *xmldoc_get_syntax_fun(struct ast_xml_node *rootnode, const char *ro
                                paramname = xmldoc_get_syntax_fun(node, argname, "argument", prnparenthesis, prnparenthesis);
                                ast_xml_free_attr(argname);
                        } else {
-                               /* Malformed XML, print **UNKOWN** */
+                               /* Malformed XML, print **UNKNOWN** */
                                paramname = ast_strdup("**unknown**");
                        }
                } else {
@@ -923,7 +923,7 @@ static char *xmldoc_parse_cmd_enumlist(struct ast_xml_node *fixnode)
  *
  * \param fixnode The \<syntax\> node pointer.
  * \param name The name of the 'command'.
- * \param printname Print the name of the command before the paramters?
+ * \param printname Print the name of the command before the parameters?
  *
  * \return On error, return just 'name'.
  * \return On success return the generated syntax.
@@ -1441,7 +1441,7 @@ static int xmldoc_parse_specialtags(struct ast_xml_node *fixnode, const char *ta
 
                /* parse <para> elements inside special tags. */
                for (node = ast_xml_node_get_children(node); node; node = ast_xml_node_get_next(node)) {
-                       /* first <para> just print it without tabs at the begining. */
+                       /* first <para> just print it without tabs at the beginning. */
                        if ((xmldoc_parse_para(node, "", posttabs, buffer) == 2)
                                || (xmldoc_parse_info(node, "", posttabs, buffer) == 2)) {
                                ret = 2;
@@ -1509,7 +1509,7 @@ static int xmldoc_parse_argument(struct ast_xml_node *fixnode, int insideparamet
  * \brief Parse a \<variable\> node inside a \<variablelist\> node.
  *
  * \param node The variable node to parse.
- * \param tabs A string to be appended at the begining of the output that will be stored
+ * \param tabs A string to be appended at the beginning of the output that will be stored
  *        in buffer.
  * \param buffer This must be an already created ast_str. It will be used
  *        to store the result (if already has something it will be appended to the current
@@ -1541,7 +1541,7 @@ static int xmldoc_parse_variable(struct ast_xml_node *node, const char *tabs, st
                        ast_str_append(buffer, 0, "\n");
                        printedpara = 1;
                }
-               /* Parse each <value name='valuename'>desciption</value> */
+               /* Parse each <value name='valuename'>description</value> */
                valname = ast_xml_get_attribute(tmp, "name");
                if (valname) {
                        ret = 1;
@@ -1570,7 +1570,7 @@ static int xmldoc_parse_variable(struct ast_xml_node *node, const char *tabs, st
  * \brief Parse a \<variablelist\> node and put all the output inside 'buffer'.
  *
  * \param node The variablelist node pointer.
- * \param tabs A string to be appended at the begining of the output that will be stored
+ * \param tabs A string to be appended at the beginning of the output that will be stored
  *        in buffer.
  * \param buffer This must be an already created ast_str. It will be used
  *        to store the result (if already has something it will be appended to the current
@@ -1653,7 +1653,7 @@ static char *_ast_xmldoc_build_seealso(struct ast_xml_node *node)
        }
 
        if (!node || !ast_xml_node_get_children(node)) {
-               /* we couldnt find a <see-also> node. */
+               /* we couldn't find a <see-also> node. */
                return NULL;
        }
 
@@ -1751,7 +1751,7 @@ static char *_ast_xmldoc_build_since(struct ast_xml_node *node)
        }
 
        if (!node || !ast_xml_node_get_children(node)) {
-               /* we couldnt find a <since> node. */
+               /* we couldn't find a <since> node. */
                return NULL;
        }
 
@@ -1885,7 +1885,7 @@ static int xmldoc_parse_enumlist(struct ast_xml_node *fixnode, const char *tabs,
  * \brief Parse an \<option\> node.
  *
  * \param fixnode An ast_xml pointer to the \<option\> node.
- * \param tabs A string to be appended at the begining of each line being added to the
+ * \param tabs A string to be appended at the beginning of each line being added to the
  *             buffer string.
  * \param buffer The output buffer.
  *
@@ -1932,7 +1932,7 @@ static int xmldoc_parse_option(struct ast_xml_node *fixnode, const char *tabs, s
  * \brief Parse an \<optionlist\> element from the xml documentation.
  *
  * \param fixnode Pointer to the optionlist xml node.
- * \param tabs A string to be appended at the begining of each line being added to the
+ * \param tabs A string to be appended at the beginning of each line being added to the
  *             buffer string.
  * \param buffer Output buffer to put what is inside the optionlist tag.
  */
@@ -2337,7 +2337,7 @@ char *ast_xmldoc_build_synopsis(const char *type, const char *name, const char *
 
 /*!
  * \internal
- * \brief Build the descripton for an item
+ * \brief Build the description for an item
  *
  * \param node The description node to parse
  *