;
/*
- * Definition of a statememt in our language
+ * Definition of a statement in our language
*/
statement : LC statements RC {
$$ = npval2(PV_STATEMENTBLOCK, &@1, &@3);
break;
case PV_FOR:
- /* fields: item->u1.for_init == a string containing the initalizer
+ /* fields: item->u1.for_init == a string containing the initializer
item->u2.for_test == a string containing the loop test
item->u3.for_inc == a string containing the loop increment
break;
case PV_FOR:
- /* fields: item->u1.for_init == a string containing the initalizer
+ /* fields: item->u1.for_init == a string containing the initializer
item->u2.for_test == a string containing the loop test
item->u3.for_inc == a string containing the loop increment
break;
case PV_FOR:
- /* fields: item->u1.for_init == a string containing the initalizer
+ /* fields: item->u1.for_init == a string containing the initializer
item->u2.for_test == a string containing the loop test
item->u3.for_inc == a string containing the loop increment
break;
case PV_FOR:
- /* fields: item->u1.for_init == a string containing the initalizer
+ /* fields: item->u1.for_init == a string containing the initializer
item->u2.for_test == a string containing the loop test
item->u3.for_inc == a string containing the loop increment
break;
case PV_FOR:
- /* fields: item->u1.for_init == a string containing the initalizer
+ /* fields: item->u1.for_init == a string containing the initializer
item->u2.for_test == a string containing the loop test
item->u3.for_inc == a string containing the loop increment
break;
case PV_FOR:
- /* fields: item->u1.for_init == a string containing the initalizer
+ /* fields: item->u1.for_init == a string containing the initializer
item->u2.for_test == a string containing the loop test
item->u3.for_inc == a string containing the loop increment
* \param args_playback_id string to use for playback split from
* arguments (null valid)
* \param response ARI response being built
- * \param bridge Bridge the playback is being peformed on
+ * \param bridge Bridge the playback is being performed on
* \param control Control being used for the playback channel
* \param json contents of the response to ARI
* \param playback_url stores playback URL for use with response
* \param args_playback_id string to use for playback split from
* arguments (null valid)
* \param response ARI response being built
- * \param bridge Bridge the playback is being peformed on
+ * \param bridge Bridge the playback is being performed on
* \param found_channel The channel that was found controlling playback
*
* \retval PLAY_FOUND_SUCCESS The operation was successful
ast_assert(session != NULL);
/*
- * We need to get the debug flag before lockinf session
+ * We need to get the debug flag before locking session
* to help prevent a deadlock with the apps_registry container.
*/
app_debug_enabled = stasis_app_get_debug_by_name(app_name);
case STASIS_APP_USER_USEREVENT_INVALID:
ast_ari_response_error(response, 400, "Bad Request",
- "Invalid userevnet data");
+ "Invalid userevent data");
break;
case STASIS_APP_USER_INTERNAL_ERROR:
* to necessary parking information when joining, and applying various bridge roles to the
* channel.
*
- * \param parkee The channel being preparred for parking
+ * \param parkee The channel being prepared for parking
* \param parker The channel initiating the park; may be the parkee as well. May be NULL.
* \param app_data arguments supplied to the Park application. May be NULL.
* \param silence_announcements optional pointer to an integer where we want to store the silence option flag
switch(f->frametype) {
case AST_FRAME_DTMF:
if (strchr(argv[4], f->subclass.integer)) {
- /* This is an interrupting chracter, so rewind to chop off any small
+ /* This is an interrupting character, so rewind to chop off any small
amount of DTMF that may have been recorded
*/
ast_stream_rewind(fs, 200);
* The structure of the generated code is:
*
* - res/ari/resource_{resource}.h
- * - For each operation in the resouce, a generated argument structure
+ * - For each operation in the resource, a generated argument structure
* (holding the parsed arguments from the request) and function
* declarations (to implement in res/ari/resource_{resource}.c)
* - res_ari_{resource}.c
<enum name="summary"><para>The VEVENT SUMMARY property or Exchange event 'subject'</para></enum>
<enum name="description"><para>The text description of the event</para></enum>
<enum name="organizer"><para>The organizer of the event</para></enum>
- <enum name="location"><para>The location of the eventt</para></enum>
+ <enum name="location"><para>The location of the event</para></enum>
<enum name="categories"><para>The categories of the event</para></enum>
<enum name="priority"><para>The priority of the event</para></enum>
<enum name="calendar"><para>The name of the calendar associated with the event</para></enum>
}
/* span->start & span->end may be dates or floating times which have no timezone,
- * which would mean that they should apply to the local timezone for all recepients.
+ * which would mean that they should apply to the local timezone for all recipients.
* For example, if a meeting was set for 1PM-2PM floating time, people in different time
* zones would not be scheduled at the same local times. Dates are often treated as
* floating times, so all day events will need to be converted--so we can trust the
if ((prop = icalcomponent_get_first_property(comp, ICAL_UID_PROPERTY))) {
ast_string_field_set(event, uid, icalproperty_get_value_as_string(prop));
} else {
- ast_log(LOG_WARNING, "No UID found, but one is required. Generating, but updates may not be acurate\n");
+ ast_log(LOG_WARNING, "No UID found, but one is required. Generating, but updates may not be accurate\n");
if (!ast_strlen_zero(event->summary)) {
ast_string_field_set(event, uid, event->summary);
} else {
struct icaltriggertype trigger;
if (!(pvt && pvt->owner)) {
- ast_log(LOG_ERROR, "Require a private structure with an ownenr\n");
+ ast_log(LOG_ERROR, "Require a private structure with an owner\n");
return;
}
if ((prop = icalcomponent_get_first_property(comp, ICAL_UID_PROPERTY))) {
ast_string_field_set(event, uid, icalproperty_get_value_as_string(prop));
} else {
- ast_log(LOG_WARNING, "No UID found, but one is required. Generating, but updates may not be acurate\n");
+ ast_log(LOG_WARNING, "No UID found, but one is required. Generating, but updates may not be accurate\n");
if (!ast_strlen_zero(event->summary)) {
ast_string_field_set(event, uid, event->summary);
} else {
}
/*!
- * \brief Excute an Select query and return ast_config list
+ * \brief Execute an Select query and return ast_config list
* \param url
* \param unused
* \param fields list containing one or more field/operator/value set.
int delim_tot_count = 0;
int delim_count = 0;
- /* \breif First find the total count
+ /* \brief First find the total count
*/
ldap_entry = ldap_first_entry(ldapConn, ldap_result_msg);
return 0;
}
-/*! \breif Relod Module
+/*! \brief Reload Module
*/
static int reload(void)
{
}
/*!
- * \brief Excute an SQL query and return ast_variable list
+ * \brief Execute an SQL query and return ast_variable list
* \param database
* \param table
* \param ap list containing one or more field/operator/value set.
}
/*!
- * \brief Excute an Select query and return ast_config list
+ * \brief Execute an Select query and return ast_config list
* \param database
* \param table
* \param ap list containing one or more field/operator/value set.
}
/*!
- * \brief Excute an UPDATE query
+ * \brief Execute an UPDATE query
* \param database
* \param table
* \param keyfield where clause field
}
/*!
- * \brief Excute an INSERT query
+ * \brief Execute an INSERT query
* \param database
* \param table
* \param ap list containing one or more field/value set(s)
}
/*!
- * \brief Excute an DELETE query
+ * \brief Execute an DELETE query
* \param database
* \param table
* \param keyfield where clause field
ast_free(table);
}
-/*! \brief Helper function for pgsql_exec. For running querys, use pgsql_exec()
+/*! \brief Helper function for pgsql_exec. For running queries, use pgsql_exec()
*
* Connect if not currently connected. Run the given query.
*
ast_rwlock_unlock(&init_cpg_lock);
ast_debug(5, "dispatch_thread_handler unlock\n");
} else {
- ast_log(LOG_ERROR, "Failed to get fd: initiliazing CPG. This module is now broken.\n");
+ ast_log(LOG_ERROR, "Failed to get fd: initializing CPG. This module is now broken.\n");
return NULL;
}
send_cluster_notify();
/*! \brief process a frame from the bridge
* \param s fax session
* \param f frame to process
- * \return 1 on sucess 0 on incorect packet*/
+ * \return 1 on sucess 0 on incorrect packet*/
static int spandsp_fax_gateway_process(struct ast_fax_session *s, const struct ast_frame *f)
{
struct spandsp_pvt *p = s->tech_pvt;
marker += x; /* Index beyond the filename marker */
path_start = &buf[marker];
for (path_end = path_start, x = 0; x < char_in_buf-marker; x++, path_end++) {
- if ('\\' == *path_end) { /* convert backslashses to forward slashes */
+ if ('\\' == *path_end) { /* convert backslashes to forward slashes */
*path_end = '/';
}
if ('\"' == *path_end) { /* If at the end of the file name spec */
<para>Plays hold music specified by class. If omitted, the default music
source for the channel will be used. Change the default class with
Set(CHANNEL(musicclass)=...). If duration is given, hold music will be played
- specified number of seconds. If duration is ommited, music plays indefinitely.
+ specified number of seconds. If duration is omitted, music plays indefinitely.
Returns <literal>0</literal> when done, <literal>-1</literal> on hangup.</para>
<para>This application does not automatically answer and should be preceeded by
an application such as Answer() or Progress().</para>
return -1;
}
} else {
- /* We don't register RT moh class, so let's init it manualy */
+ /* We don't register RT moh class, so let's init it manually */
time(&mohclass->start);
mohclass->start -= respawn_time;
AST_STANDARD_APP_ARGS(args, data);
if (ast_strlen_zero(args.mac) || ast_strlen_zero(args.template)) {
- ast_log(LOG_WARNING, "PP_EACH_EXTENSION requries both a macaddress and template filename.\n");
+ ast_log(LOG_WARNING, "PP_EACH_EXTENSION requires both a macaddress and template filename.\n");
return 0;
}
It can be one of the following values:
</para><enumlist>
<enum name="no"><para>
- meaning no verificaton is done.
+ meaning no verification is done.
</para></enum>
<enum name="fingerprint"><para>
meaning to verify the remote fingerprint.
in their WWW-Authenticate header. It can't be blank
unless you expect the server to be sending a blank
realm in the header. You can't use pre-hashed
- paswords with a wildcard auth object.
+ passwords with a wildcard auth object.
You can generate the hash with the following shell
command:
</para>
unsigned int unidentified_request_count;
/*! The period during which unidentified requests are accumulated */
unsigned int unidentified_request_period;
- /*! Interval at which expired unidentifed requests will be pruned */
+ /*! Interval at which expired unidentified requests will be pruned */
unsigned int unidentified_request_prune_interval;
struct {
/*! Taskprocessor high water alert trigger level */
return -1;
}
if (endpoint->ident_method & method) {
- /* We are already indentifying by this method. No need to do it again. */
+ /* We are already identifying by this method. No need to do it again. */
continue;
}
struct timeval next_periodic;
/*! reschedule interval in milliseconds */
int interval;
- /*! ast_sched scheudler id */
+ /*! ast_sched scheduler id */
int current_scheduler_id;
/*! task is currently running */
int is_running;
/*** DOCUMENTATION
<configInfo name="res_pjsip_config_wizard" language="en_US">
- <synopsis>Module that privides simple configuration wizard capabilities.</synopsis>
+ <synopsis>Module that provides simple configuration wizard capabilities.</synopsis>
<description><para>
<emphasis>PJSIP Configuration Wizard</emphasis>
</para>
pj_hdr_string_len = pjsip_hdr_print_on(hdr, pj_hdr_string, data->len - 1);
if (pj_hdr_string_len == -1) {
ast_log(AST_LOG_ERROR,
- "Not enought buffer space in pjsip_hdr_print_on\n");
+ "Not enough buffer space in pjsip_hdr_print_on\n");
return -1;
}
pj_hdr_string[pj_hdr_string_len] = '\0';
pj_hdr_string_len = pjsip_hdr_print_on(hdr, pj_hdr_string, data->len - 1);
if (pj_hdr_string_len == -1) {
ast_log(AST_LOG_ERROR,
- "Not enought buffer space in pjsip_hdr_print_on\n");
+ "Not enough buffer space in pjsip_hdr_print_on\n");
return -1;
}
/*!
* \internal
- * \brief Implements PJSIP_HEADER 'add' by inserting the specified header into thge list.
+ * \brief Implements PJSIP_HEADER 'add' by inserting the specified header into the list.
*
* Retrieve the header_datastore from the session or create one if it doesn't exist.
* Create and initialize the list if needed.
*atsign = '\0';
endpoint_name = destination;
- /* Apprently there may be ';<user_options>' after the endpoint name ??? */
+ /* Apparently there may be ';<user_options>' after the endpoint name ??? */
AST_SIP_USER_OPTIONS_TRUNCATE_CHECK(endpoint_name);
endpoint = ast_sorcery_retrieve_by_id(ast_sip_get_sorcery(), "endpoint", endpoint_name);
if (!endpoint) {
if (endpoint->nat.rewrite_contact) {
/* rewrite_contact is intended to ensure we send requests/responses to
- * a routeable address when NAT is involved. The URI that dictates where
+ * a routable address when NAT is involved. The URI that dictates where
* we send requests/responses can be determined either by Record-Route
* headers or by the Contact header if no Record-Route headers are present.
* We therefore will attempt to rewrite a Record-Route header first, and if
* structures. In this case however, the elements are the
* structures themselves instead of pointers to them. This is due
* to the fact that pjsip_auth_clt_set_credentials() expects an
- * array of structues, not an array of pointers to structures.
+ * array of structures, not an array of pointers to structures.
* Thankfully, vectors allow you to "steal" their underlying
* arrays, in this case an array of pjsip_cred_info structures,
* which we'll pass to pjsip_auth_clt_set_credentials() at the
const struct ast_sip_subscription_handler *handler;
/*! Pointer to the base of the tree */
struct sip_subscription_tree *tree;
- /*! Body generaator for NOTIFYs */
+ /*! Body generator for NOTIFYs */
struct ast_sip_pubsub_body_generator *body_generator;
/*! Vector of child subscriptions */
AST_VECTOR(, struct ast_sip_subscription *) children;
}
if (session->endpoint && session->endpoint->suppress_q850_reason_headers) {
- ast_debug(1, "A Q.850 '%s'(%i) Reason header was suppresed for endpoint '%s'\n",
+ ast_debug(1, "A Q.850 '%s'(%i) Reason header was suppressed for endpoint '%s'\n",
ast_cause2str((ast_channel_hangupcause(session->channel) & 0x7f)),
(ast_channel_hangupcause(session->channel) & 0x7f),
ast_sorcery_object_get_id(session->endpoint));
/* Track the number of challenges received on outbound requests */
session->authentication_challenge_count = 0;
- /* Fire seesion begin handlers */
+ /* Fire session begin handlers */
handle_session_begin(session);
/* Avoid unnecessary ref manipulation to return a session */
case CLI_INIT:
e->command = "pktccops gateset";
e->usage =
- "Usage: pktccops gateset <cmts> <mta> <acctcount> <bitrate> <packet size> <switch ip> <switch port>\n"
+ "Usage: pktccops gateset <cmts> <mta> <actcount> <bitrate> <packet size> <switch ip> <switch port>\n"
" Send Gate-Set to cmts.\n";
return NULL;
case CLI_GENERATE:
then falls to 0 at its end)
+3 (+5,+7,...) - detected DTMF digit (0..9,*,#,A-D,...)
Repeated DTMF information (bytes 4/5, 6/7) is history shifted right
- by each new packet and thus provides some redudancy.
+ by each new packet and thus provides some redundancy.
Sample of Cisco RTP DTMF packet is (all data in hex):
19 07 00 02 12 02 20 02
struct ast_rtp *rtp = ast_rtp_instance_get_data(instance);
/* Convert comfort noise into audio with various codecs. Unfortunately this doesn't
- totally help us out becuase we don't have an engine to keep it going and we are not
+ totally help us out because we don't have an engine to keep it going and we are not
guaranteed to have it every 20ms or anything */
if (ast_debug_rtp_packet_is_allowed) {
ast_debug(0, "- RTP 3389 Comfort noise event: Format %s (len = %d)\n",
ast_free(payload);
if (!frame) {
- /* If this packet can't be interpeted due to being out of memory we return what we have and assume
+ /* If this packet can't be interpreted due to being out of memory we return what we have and assume
* that we will determine it is a missing packet later and NACK for it.
*/
return AST_LIST_FIRST(&frames);
}
/*!
- * \brief Write t140 redundacy frame
+ * \brief Write t140 redundancy frame
*
* \param data primary data to be buffered
*
/* get the current attributes from the port */
if (tcgetattr(iface->fd, &iface->mode)) {
- ast_log(LOG_ERROR, "Error getting atributes of %s (%s)\n", iface->name, strerror(errno));
+ ast_log(LOG_ERROR, "Error getting attributes of %s (%s)\n", iface->name, strerror(errno));
continue;
}
RAII_VAR(void *, obj, NULL, ao2_cleanup);
id = ast_category_get_name(category);
- /* If given configurationhas not been met skip the category, it is not applicable */
+ /* If given configuration has not been met skip the category, it is not applicable */
if (!sorcery_is_configuration_met(sorcery, type, category, config)) {
continue;
}
}
static const struct ast_datastore_info masquerade_store_info = {
- .type = "stasis-masqerade",
+ .type = "stasis-masquerade",
.chan_fixup = channel_stolen_cb,
.chan_breakdown = channel_replaced_cb,
};
return ast_json_ref(json);
}
-typedef int (*playback_opreation_cb)(struct stasis_app_playback *playback);
+typedef int (*playback_operation_cb)(struct stasis_app_playback *playback);
static int playback_noop(struct stasis_app_playback *playback)
{
* \brief A sparse array detailing how commands should be handled in the
* various playback states. Unset entries imply invalid operations.
*/
-playback_opreation_cb operations[STASIS_PLAYBACK_STATE_MAX][STASIS_PLAYBACK_MEDIA_OP_MAX] = {
+playback_operation_cb operations[STASIS_PLAYBACK_STATE_MAX][STASIS_PLAYBACK_MEDIA_OP_MAX] = {
[STASIS_PLAYBACK_STATE_QUEUED][STASIS_PLAYBACK_STOP] = playback_cancel,
[STASIS_PLAYBACK_STATE_QUEUED][STASIS_PLAYBACK_RESTART] = playback_noop,
struct stasis_app_playback *playback,
enum stasis_app_playback_media_operation operation)
{
- playback_opreation_cb cb;
+ playback_operation_cb cb;
SCOPED_AO2LOCK(lock, playback);
ast_assert((unsigned int)playback->state < STASIS_PLAYBACK_STATE_MAX);
curl = get_curl_instance(data);
if (!curl) {
- ast_log(LOG_ERROR, "Failed to set up CURL isntance for '%s'\n", public_cert_url);
+ ast_log(LOG_ERROR, "Failed to set up CURL instance for '%s'\n", public_cert_url);
fclose(public_key_file);
remove(tmp_filename);
return NULL;
#ifndef _STIR_SHAKEN_CURL_H
#define _STIR_SHAKEN_CURL_H
-/* Forward declarion for CURL callback data */
+/* Forward declaration for CURL callback data */
struct curl_cb_data;
/*!
<configOption name="buddy">
<synopsis>Manual addition of buddy to list</synopsis>
<description><para>
- Manual addition of buddy to the buddy list. For distributed events, these budies are
+ Manual addition of buddy to the buddy list. For distributed events, these buddies are
automatically added in the whitelist as 'owners' of the node(s).
</para></description>
</configOption>
#include "asterisk/ast_version.h"
#include "asterisk/pbx.h"
-/* Colission between Net-SNMP and Asterisk */
+/* Collision between Net-SNMP and Asterisk */
#define unload_module ast_unload_module
#include "asterisk/module.h"
#undef unload_module
/*!
* \brief Finds a recording in the given directory.
*
- * This function searchs for a file with the given file name, with a registered
+ * This function searches for a file with the given file name, with a registered
* format that matches its extension.
*
* \param dir_name Directory to search (absolute path).