diff --git a/include/asterisk/abstract_jb.h b/include/asterisk/abstract_jb.h index 3e2467de6bd218c20c83bc2938171f19ede55316..a2a8827449c5b3224ed946c87fda0222f8b636a9 100644 --- a/include/asterisk/abstract_jb.h +++ b/include/asterisk/abstract_jb.h @@ -220,7 +220,7 @@ int ast_jb_put(struct ast_channel *chan, struct ast_frame *f); * * Called from ast_generic_bridge() to deliver any frames, that should be delivered * for the moment of invocation. Does nothing if neihter of the channels is using jb - * or has any frames currently queued in. The function delivers frames usig ast_write() + * or has any frames currently queued in. The function delivers frames using ast_write() * each of the channels. */ void ast_jb_get_and_deliver(struct ast_channel *c0, struct ast_channel *c1); diff --git a/include/asterisk/aoc.h b/include/asterisk/aoc.h index 171fbb300f7179075598a9c5ec39301b3b0afcfb..e04cdbca7e7466ca5872c64f995262e29e8e5eb8 100644 --- a/include/asterisk/aoc.h +++ b/include/asterisk/aoc.h @@ -332,7 +332,7 @@ int ast_aoc_set_billing_id(struct ast_aoc_decoded *decoded, const enum ast_aoc_b int ast_aoc_set_association_id(struct ast_aoc_decoded *decoded, const int id); /*! - * \brief set the charging accociation number for an AOC-E message + * \brief set the charging association number for an AOC-E message * \since 1.8 * * \param decoded ast_aoc_decoded struct to set values on diff --git a/include/asterisk/app.h b/include/asterisk/app.h index ab246c8b7d8959d687c4b72dcfee72aa543ee628..560f85218e032d5376c4d3b1b6c595016219dc6d 100644 --- a/include/asterisk/app.h +++ b/include/asterisk/app.h @@ -1030,7 +1030,7 @@ int ast_control_tone(struct ast_channel *chan, const char *tone); * \param chan * \param file filename * \param fwd, rev, stop, pause, restart, skipms, offsetms - * \param cb waitstream callback to invoke when fastforward or rewind occurrs. + * \param cb waitstream callback to invoke when fastforward or rewind occurs. * * Before calling this function, set this to be the number * of ms to start from the beginning of the file. When the function diff --git a/include/asterisk/astdb.h b/include/asterisk/astdb.h index 383864baf9f8d65e69f200bb1c9b615abb7a1124..c511be8a762f92a02669eda1df1778eb1b3ddf35 100644 --- a/include/asterisk/astdb.h +++ b/include/asterisk/astdb.h @@ -18,7 +18,7 @@ /*! * \file - * \brief Persistant data storage (akin to *doze registry) + * \brief Persistent data storage (akin to *doze registry) */ #ifndef _ASTERISK_ASTDB_H diff --git a/include/asterisk/astmm.h b/include/asterisk/astmm.h index e1f91ddeab76c2521177b154f0ab6bbc0eb839c0..ba444bb71815f18520144d15f7e35a28a9e29f11 100644 --- a/include/asterisk/astmm.h +++ b/include/asterisk/astmm.h @@ -295,7 +295,7 @@ int __ast_repl_vasprintf(char **strp, const char *format, va_list ap, const char * \param s The string to duplicate * * This macro will duplicate the given string. It returns a pointer to the stack - * allocatted memory for the new string. + * allocated memory for the new string. */ #define ast_strdupa(s) \ (__extension__ \ diff --git a/include/asterisk/astobj2.h b/include/asterisk/astobj2.h index a135db82e98d56f276c1e5972e969e9c9385ef3d..c32b7439b48479082e88982de234f9a0e93ead88 100644 --- a/include/asterisk/astobj2.h +++ b/include/asterisk/astobj2.h @@ -1792,7 +1792,7 @@ void *__ao2_weakproxy_find(struct ao2_container *c, const void *arg, enum search * * In addition, ao2_iterator_init() will hold a reference to the * container being iterated and the last container node found. - * Thes objects will be unreffed when ao2_iterator_destroy() is + * These objects will be unreffed when ao2_iterator_destroy() is * called to free up the resources used by the iterator (if * any). * diff --git a/include/asterisk/bridge.h b/include/asterisk/bridge.h index 6a7a3956358178166f64921ba3de49d655c4802f..41eada676eb0e8018afdd4ada6930c945ff5d2f5 100644 --- a/include/asterisk/bridge.h +++ b/include/asterisk/bridge.h @@ -1056,7 +1056,7 @@ void ast_bridge_set_remb_estimated_bitrate(struct ast_bridge *bridge, float esti /*! * \brief Update information about talker energy for talker src video mode. */ -void ast_bridge_update_talker_src_video_mode(struct ast_bridge *bridge, struct ast_channel *chan, int talker_energy, int is_keyfame); +void ast_bridge_update_talker_src_video_mode(struct ast_bridge *bridge, struct ast_channel *chan, int talker_energy, int is_keyframe); /*! * \brief Returns the number of video sources currently active in the bridge diff --git a/include/asterisk/bridge_features.h b/include/asterisk/bridge_features.h index a752997fede609281be5e692ca70c39eed865be3..504efc57487ac42419f7e40887836c4030486ba3 100644 --- a/include/asterisk/bridge_features.h +++ b/include/asterisk/bridge_features.h @@ -712,7 +712,7 @@ int ast_bridge_features_enable(struct ast_bridge_features *features, /*! * \brief Constructor function for ast_bridge_features_limits * - * \param limits pointer to a ast_bridge_features_limits struct that has been allocted, but not initialized + * \param limits pointer to a ast_bridge_features_limits struct that has been allocated, but not initialized * * \retval 0 on success * \retval -1 on failure diff --git a/include/asterisk/bridge_roles.h b/include/asterisk/bridge_roles.h index f91a6b0aa227e6f643e9decc5e7c6dfa7494a358..ab85530c1bf71ec8b193bebd19b06c18e5d1a8f6 100644 --- a/include/asterisk/bridge_roles.h +++ b/include/asterisk/bridge_roles.h @@ -96,7 +96,7 @@ int ast_channel_has_role(struct ast_channel *channel, const char *role_name); * \retval non-NULL The value of the option * * This is an alternative to \ref ast_bridge_channel_get_role_option that is useful if bridge - * roles have not yet been esstablished on a channel's bridge_channel. A possible example of + * roles have not yet been established on a channel's bridge_channel. A possible example of * when this could be used is in a bridge v_table's push() callback. */ const char *ast_channel_get_role_option(struct ast_channel *channel, const char *role_name, const char *option); @@ -146,7 +146,7 @@ const char *ast_bridge_channel_get_role_option(struct ast_bridge_channel *bridge * \details * This function should always be called when the bridge_channel binds to an ast_channel at some point before the bridge_channel * joins or is imparted onto a bridge. Failure to do so will result in an empty role list. While the list remains established, - * changes to roles on the ast_channel will not propogate to the bridge channel and roles can not be re-established on the bridge + * changes to roles on the ast_channel will not propagate to the bridge channel and roles can not be re-established on the bridge * channel without first clearing the roles with ast_bridge_roles_bridge_channel_clear_roles. */ int ast_bridge_channel_establish_roles(struct ast_bridge_channel *bridge_channel); diff --git a/include/asterisk/calendar.h b/include/asterisk/calendar.h index 79d33fc022a581ad98e3b61ae2fe7e9f4eb7a569..7bb0c820f35bd60155d3f63f92da341083eb81cc 100644 --- a/include/asterisk/calendar.h +++ b/include/asterisk/calendar.h @@ -51,7 +51,7 @@ * a load_calendar callback which will be passed an ast_calendar_load_data structure. * The load_calendar callback function should then set the values it needs from this * cfg, load the calendar data, and then loop updating the calendar data and events - * baesd on the refresh interval in the ast_calendar object. Each call to + * based on the refresh interval in the ast_calendar object. Each call to * the load_calendar callback will be will run in its own thread. * * Updating events involves creating an astobj2 container of new events and passing diff --git a/include/asterisk/callerid.h b/include/asterisk/callerid.h index 143ffae23d5d77f3a4a3f5cb98c9fdf0accdd044..ac49b35605be6528a06b6fe5c7ebccade3fb1e04 100644 --- a/include/asterisk/callerid.h +++ b/include/asterisk/callerid.h @@ -202,7 +202,7 @@ int ast_callerid_callwaiting_generate(unsigned char *buf, const char *name, cons /*! \brief Destructively parse inbuf into name and location (or number) * \details - * Parses callerid stream from inbuf and changes into useable form, outputed in name and location. + * Parses callerid stream from inbuf and changes into useable form, outputted in name and location. * \param instr buffer of callerid stream (in audio form) to be parsed. Warning, data in buffer is changed. * \param name address of a pointer-to-char for the name value of the stream. * \param location address of a pointer-to-char for the phone number value of the stream. diff --git a/include/asterisk/cdr.h b/include/asterisk/cdr.h index c6b241315c836e1011c002641e4b12da4ce48683..e86c6e1d46752f6c8017e2f76bdf4441d515bc1d 100644 --- a/include/asterisk/cdr.h +++ b/include/asterisk/cdr.h @@ -354,7 +354,7 @@ void ast_cdr_set_config(struct ast_cdr_config *config); * \param ret Pointer to the formatted buffer * \param workspace A pointer to the buffer to use to format the variable * \param workspacelen The size of \ref workspace - * \param raw If non-zero and a date/time is extraced, provide epoch seconds. Otherwise format as a date/time stamp + * \param raw If non-zero and a date/time is extracted, provide epoch seconds. Otherwise format as a date/time stamp */ void ast_cdr_format_var(struct ast_cdr *cdr, const char *name, char **ret, char *workspace, int workspacelen, int raw); @@ -522,7 +522,7 @@ int ast_cdr_unregister(const char *name); /*! * \brief Suspend a CDR backend temporarily * - * \retval 0 The backend is suspdended + * \retval 0 The backend is suspended * \retval -1 The backend could not be suspended */ int ast_cdr_backend_suspend(const char *name); diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index b699c7479adb95b486435951a7a3d303c9987b55..b59e4f151ad55430ba8d392c421bd15849dae42d 100644 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -1559,7 +1559,7 @@ struct ast_channel *__ast_request_and_dial(const char *type, struct ast_format_c * \param timeout maximum amount of time to wait for setup of new forward channel * \param cap format capabilities for requested channel * \param oh outgoing helper used with original channel - * \param outstate reason why unsuccessful (if uncuccessful) + * \param outstate reason why unsuccessful (if unsuccessful) * \return Returns the forwarded call's ast_channel on success or NULL on failure */ struct ast_channel *ast_call_forward(struct ast_channel *caller, struct ast_channel *orig, int *timeout, struct ast_format_cap *cap, struct outgoing_helper *oh, int *outstate); @@ -2636,7 +2636,7 @@ int ast_autoservice_ignore(struct ast_channel *chan, enum ast_frame_type ftype); * * \note Call this function with a rate of 0 to turn off the timer ticks * - * \version 1.6.1 changed samples parameter to rate, accomodates new timing methods + * \version 1.6.1 changed samples parameter to rate, accommodates new timing methods */ int ast_settimeout(struct ast_channel *c, unsigned int rate, int (*func)(const void *data), void *data); int ast_settimeout_full(struct ast_channel *c, unsigned int rate, int (*func)(const void *data), void *data, unsigned int is_ao2_obj); @@ -4218,7 +4218,7 @@ struct ast_channel_monitor { int (*stop)(struct ast_channel *chan, int need_lock); }; -/* ACCESSOR FUNTIONS */ +/* ACCESSOR FUNCTIONS */ /*! \brief Set the channel name */ void ast_channel_name_set(struct ast_channel *chan, const char *name); diff --git a/include/asterisk/config.h b/include/asterisk/config.h index 1775dfe53ccd5b7b34305809ed8198b0d8fbe515..f53116d7f3552ad741f2e65c8b4b3f9252aef969 100644 --- a/include/asterisk/config.h +++ b/include/asterisk/config.h @@ -902,7 +902,7 @@ int ast_category_inherit(struct ast_category *existing, const struct ast_categor * \param category category to empty * * \retval 0 if succeeded - * \retval -1 if categopry is NULL + * \retval -1 if category is NULL */ int ast_category_empty(struct ast_category *category); diff --git a/include/asterisk/config_options.h b/include/asterisk/config_options.h index 44299369d1635ca909b0510619a8c7036a431862..81b62e09c2cd880f79d058084928149290d7e63f 100644 --- a/include/asterisk/config_options.h +++ b/include/asterisk/config_options.h @@ -125,7 +125,7 @@ struct aco_type { const char *category; /*!< A regular expression for matching categories to be allowed or denied */ const char *matchfield; /*!< An option name to match for this type (i.e. a 'type'-like column) */ const char *matchvalue; /*!< The value of the option to require for matching (i.e. 'peer' for type= in sip.conf) */ - aco_matchvalue_func matchfunc; /*!< A function for determing whether the option value matches (i.e. hassip= requires ast_true()) */ + aco_matchvalue_func matchfunc; /*!< A function for determining whether the option value matches (i.e. hassip= requires ast_true()) */ enum aco_category_op category_match; /*!< Whether the following category regex is a whitelist or blacklist */ size_t item_offset; /*!< The offset in the config snapshot for the global config or item config container */ unsigned int hidden; /*!< Type is for internal purposes only and it and all options should not be visible to users */ diff --git a/include/asterisk/crypto.h b/include/asterisk/crypto.h index c911404d73f8be38044937e5ff4706a8c3eb40b7..836abf4307622a735e6fc1caebfd221549f30d3c 100644 --- a/include/asterisk/crypto.h +++ b/include/asterisk/crypto.h @@ -128,7 +128,7 @@ AST_OPTIONAL_API(int, ast_encrypt_bin, (unsigned char *dst, const unsigned char * \param dst a pointer to a buffer of at least srclen bytes in which the decrypted * answer will be stored * - * \retval length of dencrypted data on success. + * \retval length of decrypted data on success. * \retval -1 on failure. * */ diff --git a/include/asterisk/devicestate.h b/include/asterisk/devicestate.h index 5b2f04de4f6af12ca3841e65f62c33f508cf0efb..5d7e3a49d6346cff00ae70645c7654657294f152 100644 --- a/include/asterisk/devicestate.h +++ b/include/asterisk/devicestate.h @@ -63,7 +63,7 @@ enum ast_device_state { }; /*! \brief Device State Cachability - * \note This is used to define the cachability of a device state when set. + * \note This is used to define the cacheability of a device state when set. */ enum ast_devstate_cache { AST_DEVSTATE_NOT_CACHABLE, /*!< This device state is not cachable */ @@ -248,7 +248,7 @@ struct ast_device_state_message { const struct ast_eid *eid; /*! The state of the device */ enum ast_device_state state; - /*! Flag designating the cachability of this device state */ + /*! Flag designating the cacheability of this device state */ enum ast_devstate_cache cachable; /*! The device and eid data is stuffed here when the struct is allocated. */ struct ast_eid stuff[0]; diff --git a/include/asterisk/dlinkedlists.h b/include/asterisk/dlinkedlists.h index 31e4d8ddbf8a5c1c72fc3abc30d374b797129796..0bfa232dcedf07a52096a4342e6026e843baa62b 100644 --- a/include/asterisk/dlinkedlists.h +++ b/include/asterisk/dlinkedlists.h @@ -497,7 +497,7 @@ #define AST_RWDLLIST_IS_MEMBER AST_DLLIST_IS_MEMBER /*! - * \brief Traverse a doublly linked list using the specified direction list. + * \brief Traverse a doubly linked list using the specified direction list. * * \param head List head structure pointer. * \param var This is the name of the variable that will hold a pointer to the @@ -620,7 +620,7 @@ #define AST_RWDLLIST_TRAVERSE_BACKWARDS AST_DLLIST_TRAVERSE_BACKWARDS /*! - * \brief Safe traversal of a doublly linked list using the specified direction list. + * \brief Safe traversal of a doubly linked list using the specified direction list. * * \param head List head structure pointer. * \param var This is the name of the variable that will hold a pointer to the diff --git a/include/asterisk/dns_core.h b/include/asterisk/dns_core.h index d74b0123a3cee7e4817f8afa56ca3fcd026da021..3f2ac5dbe9e466e2ee671d6e0bf68a8adfec5f29 100644 --- a/include/asterisk/dns_core.h +++ b/include/asterisk/dns_core.h @@ -287,7 +287,7 @@ int ast_dns_resolve(const char *name, int rr_type, int rr_class, struct ast_dns_ * is used. * * \warning This function is synchronous and will block until records are returned or an error - * occurrs. + * occurs. */ int ast_dns_resolve_ipv6_and_ipv4(struct ast_sockaddr *address, const char *host, const char *port); diff --git a/include/asterisk/doxygen/architecture.h b/include/asterisk/doxygen/architecture.h index 315187016c8f9ef5159f54a86dbbcdd8880f3d4b..780b64f778573be16ba4d5ba109058fd592dcfbe 100644 --- a/include/asterisk/doxygen/architecture.h +++ b/include/asterisk/doxygen/architecture.h @@ -438,7 +438,7 @@ Asterisk CLI operates using connections to a UNIX %domain socket. There are other miscellaneous threads throughout the system that perform a specific task. For example, the event API (include/asterisk/event.h) uses a thread internally -(main/event.c) to handle asychronous event dispatching. The devicestate API +(main/event.c) to handle asynchronous event dispatching. The devicestate API (include/asterisk/devicestate.h) uses a thread internally (main/devicestate.c) to asynchronously process device state changes. diff --git a/include/asterisk/endpoints.h b/include/asterisk/endpoints.h index c9cb6b9de73da9eeb2f5a86dfa6fe8f3cb8a5dd6..ee73dc6666bd4d32266800812c5c3c2760a58cf1 100644 --- a/include/asterisk/endpoints.h +++ b/include/asterisk/endpoints.h @@ -28,7 +28,7 @@ * * An endpoint is an external device/system that may offer/accept channels * to/from Asterisk. While this is a very useful concept for end users, it is - * surprisingly \a not a core concept within Asterisk iteself. + * surprisingly \a not a core concept within Asterisk itself. * * This file defines \ref ast_endpoint as a seperate object, which channel * drivers may use to expose their concept of an endpoint. As the channel driver diff --git a/include/asterisk/event_defs.h b/include/asterisk/event_defs.h index fd8330e805354191ea9707b9c0668838434592b7..fea89ef806d3a8a9ddd73ae13a469a9356f1d3e1 100644 --- a/include/asterisk/event_defs.h +++ b/include/asterisk/event_defs.h @@ -299,7 +299,7 @@ enum ast_event_ie_type { AST_EVENT_IE_PRESENCE_MESSAGE = 0x003c, /*! - * \brief Event non-cachability flag + * \brief Event non-cacheability flag * Used by: All events * Payload type: UINT */ diff --git a/include/asterisk/file.h b/include/asterisk/file.h index 1c2c7a84a0c2fc4a5759b659b4bcee69aee7d48d..7e5442626d19e7870eb36ab958b0abe9b784bcdd 100644 --- a/include/asterisk/file.h +++ b/include/asterisk/file.h @@ -59,7 +59,7 @@ enum ast_waitstream_fr_cb_values { /*! * \brief callback used during dtmf controlled file playback to indicate - * location of playback in a file after rewinding or fastfowarding + * location of playback in a file after rewinding or fastforwarding * a file. */ typedef void (ast_waitstream_fr_cb)(struct ast_channel *chan, long ms, enum ast_waitstream_fr_cb_values val); @@ -218,7 +218,7 @@ int ast_waitstream_fr(struct ast_channel *c, const char *breakon, const char *fo * \param forward DTMF digit to fast forward upon * \param rewind DTMF digit to rewind upon * \param ms How many milliseconds to skip forward/back - * \param cb to call when rewind or fastfoward occurs. + * \param cb to call when rewind or fastforward occurs. * Begins playback of a stream... * Wait for a stream to stop or for any one of a given digit to arrive, * \retval 0 if the stream finishes. @@ -324,7 +324,7 @@ struct ast_filestream *ast_openstream_full(struct ast_channel *chan, const char struct ast_filestream *ast_openvstream(struct ast_channel *chan, const char *filename, const char *preflang); /*! - * \brief Applys a open stream to a channel. + * \brief Applies a open stream to a channel. * \param chan channel to work * \param s ast_filestream to apply * \retval 0 on success. diff --git a/include/asterisk/frame.h b/include/asterisk/frame.h index 0e623d33116e64a0fd88adcc1127c29526d4ea04..f637c97ae889b894ef025ee4eccd9bef5bc5ae12 100644 --- a/include/asterisk/frame.h +++ b/include/asterisk/frame.h @@ -430,7 +430,7 @@ struct ast_control_pvt_cause_code { * Option data is a single signed char value 0 or 1 */ #define AST_OPTION_TONE_VERIFY 1 -/*! Put a compatible channel into TDD (TTY for the hearing-impared) mode +/*! Put a compatible channel into TDD (TTY for the hearing-impaired) mode * Option data is a single signed char value 0 or 1 */ #define AST_OPTION_TDD 2 diff --git a/include/asterisk/framehook.h b/include/asterisk/framehook.h index 8e5afaeae9e3bf2003e2e1c4f284851361c40615..7cf731d7830dbf765b78af012304972dd54c9781 100644 --- a/include/asterisk/framehook.h +++ b/include/asterisk/framehook.h @@ -177,7 +177,7 @@ enum ast_framehook_event { * \param channel, The ast_channel this framehook is attached to * \param frame, The ast_frame being intercepted for viewing and manipulation * \param event, The type of event which is occurring - * \param data, The data pointer provided at framehook initilization. + * \param data, The data pointer provided at framehook initialization. * * \retval the resulting frame. */ @@ -204,7 +204,7 @@ typedef void (*ast_framehook_destroy_callback)(void *data); * frames of a given type * \since 12 * - * \param data, The data pointer provided at framehook initilization. + * \param data, The data pointer provided at framehook initialization. * \param type, The type of frame. * * \return 0 if frame type is being ignored diff --git a/include/asterisk/hashtab.h b/include/asterisk/hashtab.h index 64ed1bf6fe89bfd95fe0bbd2ba9664bc1f022835..88fb4f60a614ddfbe79c0ab4844695c1dad2ddf1 100644 --- a/include/asterisk/hashtab.h +++ b/include/asterisk/hashtab.h @@ -127,7 +127,7 @@ int ast_is_prime(int num); * \param b a character string * \retval 0 if the strings match * \retval <0 if string a is less than string b - * \retval >0 if string a is greather than string b + * \retval >0 if string a is greater than string b */ int ast_hashtab_compare_strings(const void *a, const void *b); @@ -138,7 +138,7 @@ int ast_hashtab_compare_strings(const void *a, const void *b); * \param b a character string * \retval 0 if the strings match * \retval <0 if string a is less than string b - * \retval >0 if string a is greather than string b + * \retval >0 if string a is greater than string b */ int ast_hashtab_compare_strings_nocase(const void *a, const void *b); diff --git a/include/asterisk/io.h b/include/asterisk/io.h index e9b155985ebba92e91e919f16d11dad855315f94..e8a36a6280c32988c1f3e2c490f79d7d0e7d730c 100644 --- a/include/asterisk/io.h +++ b/include/asterisk/io.h @@ -79,7 +79,7 @@ typedef int (*ast_io_cb)(int *id, int fd, short events, void *cbdata); * \param callback callback function to run * \param events event mask of events to wait for * \param data data to pass to the callback - * Watch for any of revents activites on fd, calling callback with data as + * Watch for any of revents activities on fd, calling callback with data as * callback data. * \retval a pointer to ID of the IO event * \retval NULL on failure diff --git a/include/asterisk/logger.h b/include/asterisk/logger.h index 4234262063d65bf8f9a817b781abe386dad7af6c..170fb68fd7dfdf83a02b621037b73a199e0b4cb2 100644 --- a/include/asterisk/logger.h +++ b/include/asterisk/logger.h @@ -550,7 +550,7 @@ To start using it: * Use the cli or cli.conf to enable tracing: CLI> core set trace <trace_level> [ module ] Its simplest usage requires only 1 macro call that... - - Registers a descructor for a special variable that gets called when the + - Registers a destructor for a special variable that gets called when the variable goes out of scope. Uses the same principle as RAII_VAR. The destructor prints the name of the function with an "exiting" indicator along with an optional message. @@ -827,7 +827,7 @@ unsigned long _ast_trace_dec_indent(void); * if (something) { * SCOPE_EXIT_EXPR(break, "Somethiung broke me\n"); * } else { - * SCOPE_EXIT_EXPR(contniue, "Somethiung continued me\n"); + * SCOPE_EXIT_EXPR(continue, "Somethiung continued me\n"); * } * } */ diff --git a/include/asterisk/manager.h b/include/asterisk/manager.h index a0c100179ef39954635a762bbcea4ee06d6dca13..431785f4c482210f0f576e331e432e08179ef8a5 100644 --- a/include/asterisk/manager.h +++ b/include/asterisk/manager.h @@ -173,7 +173,7 @@ struct manager_action { * \brief TRUE if the AMI action is registered and the callback can be called. * * \note Needed to prevent a race between calling the callback - * function and unregestring the AMI action object. + * function and unregistering the AMI action object. */ unsigned int registered:1; }; @@ -269,7 +269,7 @@ int __ast_manager_event_multichan(int category, const char *event, int chancount struct ast_channel **chans, const char *file, int line, const char *func, const char *contents, ...) __attribute__((format(printf, 8, 9))); -/*! \brief Get header from mananger transaction */ +/*! \brief Get header from manager transaction */ const char *astman_get_header(const struct message *m, char *var); /*! \brief Get a linked list of the Variable: headers @@ -353,7 +353,7 @@ void astman_send_list_complete_end(struct mansession *s); void __attribute__((format(printf, 2, 3))) astman_append(struct mansession *s, const char *fmt, ...); -/*! \brief Determinie if a manager session ident is authenticated */ +/*! \brief Determine if a manager session ident is authenticated */ int astman_is_authed(uint32_t ident); /*! diff --git a/include/asterisk/mod_format.h b/include/asterisk/mod_format.h index 6e772f05b296e80e63c8ed4c04edd0fb81041855..8066c3dfe02f7db99535b79e5c3923a5ecf5df7a 100644 --- a/include/asterisk/mod_format.h +++ b/include/asterisk/mod_format.h @@ -110,7 +110,7 @@ struct ast_filestream { struct ast_filestream *vfs; /*! Transparently translate from another format -- just once */ struct ast_trans_pvt *trans; - struct ast_tranlator_pvt *tr; + struct ast_translator_pvt *tr; struct ast_format *lastwriteformat; int lasttimeout; struct ast_channel *owner; diff --git a/include/asterisk/module.h b/include/asterisk/module.h index 2720d0e04a79d94e248d3af7ac6c90d517f00283..cce8735fc1b7910b0894761410e9187efb4f0056 100644 --- a/include/asterisk/module.h +++ b/include/asterisk/module.h @@ -181,7 +181,7 @@ enum ast_module_reload_result ast_module_reload(const char *name); /*! * \brief Notify when usecount has been changed. * - * This function calulates use counts and notifies anyone trying to keep track + * This function calculates use counts and notifies anyone trying to keep track * of them. It should be called whenever your module's usecount changes. * * \note The ast_module_user_* functions take care of calling this function for you. @@ -352,7 +352,7 @@ struct ast_module_info { const char *description; /*! - * This holds the ASTERISK_GPL_KEY, signifiying that you agree to the terms of + * This holds the ASTERISK_GPL_KEY, signifying that you agree to the terms of * the Asterisk license as stated in the ASTERISK_GPL_KEY. Your module will not * load if it does not return the EXACT key string. */ diff --git a/include/asterisk/pbx.h b/include/asterisk/pbx.h index c75e50a3badec7076fca11a2ae7a37badf742ed8..bc34b66ead732370d794c74f4af0b078422d7222 100644 --- a/include/asterisk/pbx.h +++ b/include/asterisk/pbx.h @@ -144,7 +144,7 @@ struct ast_custom_function { * 'dangerous', and should not be run directly * from external interfaces (AMI, ARI, etc.) * \since 12 */ - unsigned int write_escalates:1; /*!< The write function is to be considerd + unsigned int write_escalates:1; /*!< The write function is to be considered * 'dangerous', and should not be run directly * from external interfaces (AMI, ARI, etc.) * \since 12 */ @@ -789,7 +789,7 @@ int ast_findlabel_extension2(struct ast_channel *c, struct ast_context *con, * \brief Looks for a valid matching extension * * \param c not really important - * \param context context to serach within + * \param context context to search within * \param exten extension to check * \param priority priority of extension path * \param callerid callerid of extension being searched for @@ -809,7 +809,7 @@ int ast_canmatch_extension(struct ast_channel *c, const char *context, * \brief Looks to see if adding anything to this extension might match something. (exists ^ canmatch) * * \param c not really important XXX - * \param context context to serach within + * \param context context to search within * \param exten extension to check * \param priority priority of extension path * \param callerid callerid of extension being searched for @@ -1013,7 +1013,7 @@ int ast_context_remove_extension_callerid2(struct ast_context *con, const char * /*! * \brief Add an ignorepat * - * \param context which context to add the ignorpattern to + * \param context which context to add the ignorepattern to * \param ignorepat ignorepattern to set up for the extension * \param registrar registrar of the ignore pattern * diff --git a/include/asterisk/plc.h b/include/asterisk/plc.h index cd650012c86d65c59f01169bee0b3c31c7cea770..942e6ab4ed669f81a7b0528ac0b927aab19792a2 100644 --- a/include/asterisk/plc.h +++ b/include/asterisk/plc.h @@ -75,7 +75,7 @@ are needed to obtain smooth pleasant sounding results. correct steadily fall. Therefore, the volume of the synthesized signal is made to decay linearly, such that after 50ms of missing audio it is reduced to silence. -- When real speech resumes, an extra 1/4 pitch period of sythetic speech is blended with the +- When real speech resumes, an extra 1/4 pitch period of synthetic speech is blended with the start of the real speech. If the erasure is small, this smoothes the transition. If the erasure is long, and the synthetic signal has faded to zero, the blending softens the start up of the real signal, avoiding a kind of "click" or "pop" effect that might occur with a sudden onset. @@ -85,7 +85,7 @@ Before audio is processed, call plc_init() to create an instance of the packet l concealer. For each received audio packet that is acceptable (i.e. not including those being dropped for being too late) call plc_rx() to record the content of the packet. Note this may modify the packet a little after a period of packet loss, to blend real synthetic data smoothly. -When a real packet is not available in time, call plc_fillin() to create a sythetic substitute. +When a real packet is not available in time, call plc_fillin() to create a synthetic substitute. That's it! */ diff --git a/include/asterisk/privacy.h b/include/asterisk/privacy.h index 686a14d756869de4b97711cd88068beffdbc080d..6040129a8217b09f234dcec0bc45c9490892538a 100644 --- a/include/asterisk/privacy.h +++ b/include/asterisk/privacy.h @@ -17,7 +17,7 @@ */ /*! \file - * \brief Persistant data storage (akin to *doze registry) + * \brief Persistent data storage (akin to *doze registry) */ #ifndef _ASTERISK_PRIVACY_H diff --git a/include/asterisk/res_mwi_external.h b/include/asterisk/res_mwi_external.h index 25de70003afb840e52797746e5e77517b8123563..19385d58332887a400174544f9980adb047dc8e8 100644 --- a/include/asterisk/res_mwi_external.h +++ b/include/asterisk/res_mwi_external.h @@ -38,7 +38,7 @@ extern "C" struct ast_mwi_mailbox_object; -/*! \brief Convienience unref function for mailbox object. */ +/*! \brief Convenience unref function for mailbox object. */ #define ast_mwi_mailbox_unref(mailbox) ao2_ref((struct ast_mwi_mailbox_object *) mailbox, -1) /*! diff --git a/include/asterisk/res_odbc.h b/include/asterisk/res_odbc.h index 9a38915bc1b61d75f6e7362d85ed5dd8678e31f8..789cabac2cfaaa5ca458693a670ef3b5c3a298c1 100644 --- a/include/asterisk/res_odbc.h +++ b/include/asterisk/res_odbc.h @@ -170,7 +170,7 @@ SQLHSTMT ast_odbc_prepare_and_execute(struct odbc_obj *obj, SQLHSTMT (*prepare_c */ int ast_odbc_prepare(struct odbc_obj *obj, SQLHSTMT *stmt, const char *sql); -/*! \brief Execute a nonprepared SQL query. +/*! \brief Execute a unprepared SQL query. * \param obj The ODBC object * \param sql The SQL query * \note This should be used in place of SQLExecDirect diff --git a/include/asterisk/res_pjsip.h b/include/asterisk/res_pjsip.h index 2a20e36935c21ce657faa64939ad937e3c772cfe..9c1594dd7cedc506862c9111671f7a3fe1c6207a 100644 --- a/include/asterisk/res_pjsip.h +++ b/include/asterisk/res_pjsip.h @@ -1907,7 +1907,7 @@ struct ast_sip_sched_task; * \ref AST_SIP_SCHED_TASK_PERIODIC specifies that the invocations of the task occur at the * specific interval. That is, every \ref "interval" milliseconds, regardless of how long the task * takes. If the task takes longer than \ref interval, it will be scheduled at the next available - * multiple of \ref interval. For exmaple: If the task has an interval of 60 seconds and the task + * multiple of \ref interval. For example: If the task has an interval of 60 seconds and the task * takes 70 seconds, the next invocation will happen at 120 seconds. * * \ref AST_SIP_SCHED_TASK_DELAY specifies that the next invocation of the task should start @@ -2122,7 +2122,7 @@ pjsip_dialog *ast_sip_create_dialog_uas(const struct ast_sip_endpoint *endpoint, * occurs. * * As long as the caller maintains a reference to the dialog there should be no - * worry that it might unknowningly be destroyed. However, once the caller unlocks + * worry that it might unknowingly be destroyed. However, once the caller unlocks * the dialog there is a danger that some of the dialog's internal objects could * be lost and/or compromised. For example, when the aforementioned transport error * occurs the dialog's associated transaction gets destroyed (see pjsip_dlg_on_tsx_state @@ -2559,7 +2559,7 @@ void ast_sip_cleanup_auths(struct ast_sip_auth *auths[], size_t num_auths); * number of auth ids supplied if auth objects couldn't be found for * some of them. * - * \NOTE Since the ref count on all auith objects returned has been + * \NOTE Since the ref count on all auth objects returned has been * bumped, you must call ast_sip_cleanup_auth_objects_vector() to decrement * the ref count on all of the auth objects in the vector, * then call AST_VECTOR_FREE() on the vector itself. @@ -2871,7 +2871,7 @@ int ast_sip_format_auths_ami(const struct ast_sip_auth_vector *auths, /*! * \brief Retrieve the endpoint snapshot for an endpoint * - * \param endpoint The endpoint whose snapshot is to be retreieved. + * \param endpoint The endpoint whose snapshot is to be retrieved. * \retval The endpoint snapshot */ struct ast_endpoint_snapshot *ast_sip_get_endpoint_snapshot( @@ -3564,12 +3564,12 @@ enum ast_transport_monitor_reg ast_sip_transport_monitor_register_replace(pjsip_ * \param transport Transport to monitor for shutdown. * \param cb The callback that was used for the original register. * \param data Data to pass to the matcher. May be NULL and does NOT need to be an ao2 object. - * If NULL, all monitors with the provided callbck are unregistered. + * If NULL, all monitors with the provided callback are unregistered. * \param matches Matcher function that returns true if data matches the previously * registered data object. If NULL, a simple pointer comparison is done. * * \note The data object passed into the original register will have its reference count - * automatically decremeneted. + * automatically decremented. * * \return Nothing */ @@ -3582,12 +3582,12 @@ void ast_sip_transport_monitor_unregister(pjsip_transport *transport, * * \param cb The callback that was used for the original register. * \param data Data to pass to the matcher. May be NULL and does NOT need to be an ao2 object. - * If NULL, all monitors with the provided callbck are unregistered. + * If NULL, all monitors with the provided callback are unregistered. * \param matches Matcher function that returns true if ao2_data matches the previously * registered data object. If NULL, a simple pointer comparison is done. * * \note The data object passed into the original register will have its reference count - * automatically decremeneted. + * automatically decremented. * * \return Nothing */ diff --git a/include/asterisk/res_prometheus.h b/include/asterisk/res_prometheus.h index 4b6ce16be53400381ef4c2838bf396e2230ba4bb..5da60d6a80814e18a877ad2494926f1bf596bf5e 100644 --- a/include/asterisk/res_prometheus.h +++ b/include/asterisk/res_prometheus.h @@ -379,7 +379,7 @@ void prometheus_metric_to_string(struct prometheus_metric *metric, * server. For metrics that are generated often or whose value needs to be * stored, metrics can be created and registered. For metrics that can be * obtained "on-the-fly", this mechanism is preferred. When the HTTP route is - * queried by promtheus, the registered callbacks are invoked. The string passed + * queried by prometheus, the registered callbacks are invoked. The string passed * to the callback should be populated with stack-allocated metrics using * \c prometheus_metric_to_string. * diff --git a/include/asterisk/rtp_engine.h b/include/asterisk/rtp_engine.h index 0584f2cab503387944352c9d9f1ddb32dcf2b030..bd945cf65d2ff932066637717e75db68d2d36b1f 100644 --- a/include/asterisk/rtp_engine.h +++ b/include/asterisk/rtp_engine.h @@ -1519,7 +1519,7 @@ void ast_rtp_codecs_payloads_set_m_type(struct ast_rtp_codecs *codecs, struct as * \param instance Optionally the instance that the codecs structure belongs to * \param payload Numerical payload that was seen in the a=rtpmap: SDP line * \param mimetype The string mime type that was seen - * \param mimesubtype The strin mime sub type that was seen + * \param mimesubtype The string mime sub type that was seen * \param options Optional options that may change the behavior of this specific payload * * \retval 0 success diff --git a/include/asterisk/say.h b/include/asterisk/say.h index 5e55b0f62ce19e7255b356456626e513ee43e69a..5d5c2b831d6e2b0a78338b463dce721dccd2f4e3 100644 --- a/include/asterisk/say.h +++ b/include/asterisk/say.h @@ -112,7 +112,7 @@ SAY_EXTERN int (* ast_say_ordinal_full)(struct ast_channel *chan, int num, const * \param lang language to speak the enumeration * \param options set to 'f' for female, 'm' for male, 'c' for commune, 'n' for neuter * \details - * Vocally says an enumeration on a given channel (first, sencond, third, forth, thirtyfirst, hundredth, ....) + * Vocally says an enumeration on a given channel (first, second, third, forth, thirtyfirst, hundredth, ....) * Especially useful for dates and messages. Says 'last' if num equals to INT_MAX * \retval 0 on success * \retval DTMF digit on interrupt diff --git a/include/asterisk/sem.h b/include/asterisk/sem.h index fcab82a5e2872886466bda8253988f98b70205c9..e887cee1a59c196f6f18abc00427922dd98e84b6 100644 --- a/include/asterisk/sem.h +++ b/include/asterisk/sem.h @@ -85,7 +85,7 @@ struct ast_sem { int waiters; /*! Mutual exclusion */ ast_mutex_t mutex; - /*! Condition for singalling waiters */ + /*! Condition for signaling waiters */ ast_cond_t cond; }; diff --git a/include/asterisk/sorcery.h b/include/asterisk/sorcery.h index c3e2864ace5099d3dc47ab7c6313353cc7082ade..b6a9aedb0b43c5a0b19367f33573162fa4001bd3 100644 --- a/include/asterisk/sorcery.h +++ b/include/asterisk/sorcery.h @@ -1513,7 +1513,7 @@ const char *ast_sorcery_object_get_id(const void *object); /*! * \since 14.0.0 - * \brief Get when the socery object was created + * \brief Get when the sorcery object was created * * \param object Pointer to a sorcery object * diff --git a/include/asterisk/stasis.h b/include/asterisk/stasis.h index 275dc1e174e07ac44c4a1c8e893c5a1390f5a1ac..e18b8867841e3e4fde77a2224c11b74b27d5db9d 100644 --- a/include/asterisk/stasis.h +++ b/include/asterisk/stasis.h @@ -71,7 +71,7 @@ * named, which is useful in debugging. * * Topics themselves are reference counted objects. Since topics are referred to - * by their subscibers, they will not be freed until all of their subscribers + * by their subscribers, they will not be freed until all of their subscribers * have unsubscribed. Topics are also thread safe, so no worries about * publishing/subscribing/unsubscribing to a topic concurrently from multiple * threads. It's also designed to handle the case of unsubscribing from a topic @@ -1185,7 +1185,7 @@ struct stasis_caching_topic *stasis_caching_unsubscribe( * \brief Unsubscribes a caching topic from its upstream topic, blocking until * all messages have been forwarded. * - * See stasis_unsubscriben_and_join() for more info on when to use this as + * See stasis_unsubscribe_and_join() for more info on when to use this as * opposed to stasis_caching_unsubscribe(). * * \param caching_topic Caching topic to unsubscribe diff --git a/include/asterisk/stasis_endpoints.h b/include/asterisk/stasis_endpoints.h index 2fbe5f4b70c13be1f0cf9af7c3b438bb6c58a008..71b7c59339aab906f8b157083c7343fa5dc5257b 100644 --- a/include/asterisk/stasis_endpoints.h +++ b/include/asterisk/stasis_endpoints.h @@ -175,7 +175,7 @@ struct stasis_topic *ast_endpoint_topic_cached(struct ast_endpoint *endpoint); struct stasis_cp_all *ast_endpoint_cache_all(void); /*! - * \brief Topic for all endpoint releated messages. + * \brief Topic for all endpoint related messages. * \since 12 */ struct stasis_topic *ast_endpoint_topic_all(void); diff --git a/include/asterisk/stasis_message_router.h b/include/asterisk/stasis_message_router.h index ba3f8bbaa6ab702b0c0365b3b267e74b47faa5ee..c186b615e42e95825b2127afc7ad568cb0243cdf 100644 --- a/include/asterisk/stasis_message_router.h +++ b/include/asterisk/stasis_message_router.h @@ -155,7 +155,7 @@ int stasis_message_router_set_congestion_limits(struct stasis_message_router *ro * * \param router Router to add the route to. * \param message_type Type of message to route. - * \param callback Callback to forard messages of \a message_type to. + * \param callback Callback to forward messages of \a message_type to. * \param data Data pointer to pass to \a callback. * * \retval 0 on success @@ -179,7 +179,7 @@ int stasis_message_router_add(struct stasis_message_router *router, * * \param router Router to add the route to. * \param message_type Subtype of cache update to route. - * \param callback Callback to forard messages of \a message_type to. + * \param callback Callback to forward messages of \a message_type to. * \param data Data pointer to pass to \a callback. * * \retval 0 on success diff --git a/include/asterisk/stringfields.h b/include/asterisk/stringfields.h index ce978901b64bc281c659bf4020592794d4966530..e2e72a94c2b3d4d6ef19c0bc51a6b9e8ba368427 100644 --- a/include/asterisk/stringfields.h +++ b/include/asterisk/stringfields.h @@ -412,7 +412,7 @@ int __ast_string_field_init(struct ast_string_field_mgr *mgr, struct ast_string_ /*! * \brief Allocate a structure with embedded stringfields in a single allocation - * \param n Current imlementation only allows 1 structure to be allocated + * \param n Current implementation only allows 1 structure to be allocated * \param type The type of structure to allocate * \param size The number of bytes of space (minimum) to allocate for stringfields to use * in each structure diff --git a/include/asterisk/strings.h b/include/asterisk/strings.h index 881cf8975836e65a38d32a6cd17b6e6d9cb4fab8..9ca3234d10495e0fdb99e50b2b64ab7d86548286 100644 --- a/include/asterisk/strings.h +++ b/include/asterisk/strings.h @@ -898,7 +898,7 @@ struct ast_str *__ast_str_thread_get(struct ast_threadstorage *ts, /*! * \brief Error codes from __ast_str_helper() - * The undelying processing to manipulate dynamic string is done + * The underlying processing to manipulate dynamic string is done * by __ast_str_helper(), which can return a success or a * permanent failure (e.g. no memory). */ @@ -1430,7 +1430,7 @@ int ast_strings_match(const char *left, const char *op, const char *right); * \warning The original string and *buffer will be modified. * * \details - * Both '\n' and '\r\n' are treated as single delimiters but consecutive occurrances of + * Both '\n' and '\r\n' are treated as single delimiters but consecutive occurrences of * the delimiters are NOT considered to be a single delimiter. This preserves blank * lines in the input. * diff --git a/include/asterisk/taskprocessor.h b/include/asterisk/taskprocessor.h index 5145565c6d7031a065a08253095b51a853393408..fca3edc02a7567a7d3fb4d302d217b1a1ec8e379 100644 --- a/include/asterisk/taskprocessor.h +++ b/include/asterisk/taskprocessor.h @@ -352,7 +352,7 @@ unsigned int ast_taskprocessor_alert_get(void); /*! - * \brief Get the current taskprocessor high water alert count by sybsystem. + * \brief Get the current taskprocessor high water alert count by subsystem. * \since 13.26.0 * \since 16.3.0 * diff --git a/include/asterisk/threadpool.h b/include/asterisk/threadpool.h index 77ab8a84a30cb82d200fc9b69a5de5cf8de26bba..9474ede941bdb98cc7c799d15da042d57ce9b45e 100644 --- a/include/asterisk/threadpool.h +++ b/include/asterisk/threadpool.h @@ -214,7 +214,7 @@ struct ast_serializer_shutdown_group *ast_serializer_shutdown_group_alloc(void); * \param timeout Number of seconds to wait for the serializers in the group to shutdown. * Zero if the timeout is disabled. * - * \return Number of seriaizers that did not get shutdown within the timeout. + * \return Number of serializers that did not get shutdown within the timeout. */ int ast_serializer_shutdown_group_join(struct ast_serializer_shutdown_group *shutdown_group, int timeout); @@ -246,7 +246,7 @@ struct ast_taskprocessor *ast_threadpool_serializer_get_current(void); * * While it guarantees that each task will complete before executing the next, * there is no guarantee as to which thread from the \c pool individual tasks - * will execute. This normally only matters if your code relys on thread + * will execute. This normally only matters if your code relies on thread * specific information, such as thread locals. * * Use ast_taskprocessor_unreference() to dispose of the returned \ref @@ -274,7 +274,7 @@ struct ast_taskprocessor *ast_threadpool_serializer(const char *name, struct ast * * While it guarantees that each task will complete before executing the next, * there is no guarantee as to which thread from the \c pool individual tasks - * will execute. This normally only matters if your code relys on thread + * will execute. This normally only matters if your code relies on thread * specific information, such as thread locals. * * Use ast_taskprocessor_unreference() to dispose of the returned \ref diff --git a/include/asterisk/time.h b/include/asterisk/time.h index aec6c7db2bb735b49fad45f1f7b1daa912bdb801..e2ab513384fd2e307066c3991a835340a8dae2e8 100644 --- a/include/asterisk/time.h +++ b/include/asterisk/time.h @@ -108,7 +108,7 @@ int ast_tvzero(const struct timeval t), ) /*! - * \brief Compres two \c struct \c timeval instances returning + * \brief Compress two \c struct \c timeval instances returning * -1, 0, 1 if the first arg is smaller, equal or greater to the second. */ AST_INLINE_API( @@ -263,7 +263,7 @@ enum TIME_UNIT { * given string at least starts with one of the form values it will match. * * For example: us, usec, microsecond will all map to TIME_UNIT_MICROSECOND. - * So will uss, usecs, miscroseconds, or even microsecondvals + * So will uss, usecs, microseconds, or even microsecondvals * * Matching is also not case sensitive. * diff --git a/include/asterisk/translate.h b/include/asterisk/translate.h index b2da4532685f80e13ba2884562b512d07ecc71e5..4a6d4f495ab64849f442709799b8bb3ecb940be7 100644 --- a/include/asterisk/translate.h +++ b/include/asterisk/translate.h @@ -258,7 +258,7 @@ int __ast_register_translator(struct ast_translator *t, struct ast_module *modul /*! * \brief Unregister a translator - * Unregisters the given tranlator + * Unregisters the given translator * \param t translator to unregister * \return 0 on success, -1 on failure */ diff --git a/include/asterisk/vector.h b/include/asterisk/vector.h index 00d701bf0f87f7bd88dcc1be29f49781ee5e4474..93e11c307d222f6d737df8fbbe66fab4c98e9606 100644 --- a/include/asterisk/vector.h +++ b/include/asterisk/vector.h @@ -800,7 +800,7 @@ int ast_vector_string_split(struct ast_vector_string *dest, * * \note The type of the returned vector must be traceable to the original vector. * - * The following will resut in "error: assignment from incompatible pointer type" + * The following will result in "error: assignment from incompatible pointer type" * because these declare 2 different structures. * * \code