mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
docs: Fix various typos in channels/
Found via `codespell -q 3 -S "./CREDITS,*.po" -L abd,asent,atleast,cachable,childrens,contentn,crypted,dne,durationm,enew,exten,inout,leapyear,mye,nd,oclock,offsetp,ot,parm,parms,preceeding,pris,ptd,requestor,re-use,re-used,re-uses,ser,siz,slanguage,slin,thirdparty,varn,varns,ues`
This commit is contained in:
@@ -1347,7 +1347,7 @@ static int analogsub_to_dahdisub(enum analog_sub analogsub)
|
||||
* \brief release all members on the doomed pris list
|
||||
* \since 13.0
|
||||
*
|
||||
* Called priodically by the monitor threads to release spans marked for
|
||||
* Called periodically by the monitor threads to release spans marked for
|
||||
* removal.
|
||||
*/
|
||||
static void release_doomed_pris(void)
|
||||
@@ -3255,7 +3255,7 @@ static void my_pri_make_cc_dialstring(void *priv, char *buf, size_t buf_size)
|
||||
AST_APP_ARG(group); /* channel/group token */
|
||||
//AST_APP_ARG(ext); /* extension token */
|
||||
//AST_APP_ARG(opts); /* options token */
|
||||
//AST_APP_ARG(other); /* Any remining unused arguments */
|
||||
//AST_APP_ARG(other); /* Any remaining unused arguments */
|
||||
);
|
||||
|
||||
pvt = priv;
|
||||
@@ -5469,7 +5469,7 @@ static int dahdi_call(struct ast_channel *ast, const char *rdest, int timeout)
|
||||
AST_APP_ARG(group); /* channel/group token */
|
||||
AST_APP_ARG(ext); /* extension token */
|
||||
//AST_APP_ARG(opts); /* options token */
|
||||
AST_APP_ARG(other); /* Any remining unused arguments */
|
||||
AST_APP_ARG(other); /* Any remaining unused arguments */
|
||||
);
|
||||
|
||||
ast_mutex_lock(&p->lock);
|
||||
@@ -6560,7 +6560,7 @@ static int dahdi_hangup(struct ast_channel *ast)
|
||||
p->subs[SUB_REAL].inthreeway = 0;
|
||||
}
|
||||
} else if (idx == SUB_CALLWAIT) {
|
||||
/* Ditch the holding callwait call, and immediately make it availabe */
|
||||
/* Ditch the holding callwait call, and immediately make it available */
|
||||
if (p->subs[SUB_CALLWAIT].inthreeway) {
|
||||
/* This is actually part of a three way, placed on hold. Place the third part
|
||||
on music on hold now */
|
||||
@@ -6979,7 +6979,7 @@ static int dahdi_setoption(struct ast_channel *chan, int option, void *data, int
|
||||
(*cp == 2) ? "MATE" : "ON", (int) *cp, ast_channel_name(chan));
|
||||
dahdi_ec_disable(p);
|
||||
/* otherwise, turn it on */
|
||||
if (!p->didtdd) { /* if havent done it yet */
|
||||
if (!p->didtdd) { /* if haven't done it yet */
|
||||
unsigned char mybuf[41000];/*! \todo XXX This is an abuse of the stack!! */
|
||||
unsigned char *buf;
|
||||
int size, res, fd, len;
|
||||
@@ -8696,7 +8696,7 @@ winkflashdone:
|
||||
(p->polarity == POLARITY_REV) &&
|
||||
((ast_channel_state(ast) == AST_STATE_UP) || (ast_channel_state(ast) == AST_STATE_RING)) ) {
|
||||
/* Added log_debug information below to provide a better indication of what is going on */
|
||||
ast_debug(1, "Polarity Reversal event occured - DEBUG 1: channel %d, state %u, pol= %d, aonp= %d, honp= %d, pdelay= %d, tv= %" PRIi64 "\n", p->channel, ast_channel_state(ast), p->polarity, p->answeronpolarityswitch, p->hanguponpolarityswitch, p->polarityonanswerdelay, ast_tvdiff_ms(ast_tvnow(), p->polaritydelaytv) );
|
||||
ast_debug(1, "Polarity Reversal event occurred - DEBUG 1: channel %d, state %u, pol= %d, aonp= %d, honp= %d, pdelay= %d, tv= %" PRIi64 "\n", p->channel, ast_channel_state(ast), p->polarity, p->answeronpolarityswitch, p->hanguponpolarityswitch, p->polarityonanswerdelay, ast_tvdiff_ms(ast_tvnow(), p->polaritydelaytv) );
|
||||
|
||||
if (ast_tvdiff_ms(ast_tvnow(), p->polaritydelaytv) > p->polarityonanswerdelay) {
|
||||
ast_debug(1, "Polarity Reversal detected and now Hanging up on channel %d\n", p->channel);
|
||||
@@ -8710,7 +8710,7 @@ winkflashdone:
|
||||
ast_debug(1, "Ignoring Polarity switch to IDLE on channel %d, state %u\n", p->channel, ast_channel_state(ast));
|
||||
}
|
||||
/* Added more log_debug information below to provide a better indication of what is going on */
|
||||
ast_debug(1, "Polarity Reversal event occured - DEBUG 2: channel %d, state %u, pol= %d, aonp= %d, honp= %d, pdelay= %d, tv= %" PRIi64 "\n", p->channel, ast_channel_state(ast), p->polarity, p->answeronpolarityswitch, p->hanguponpolarityswitch, p->polarityonanswerdelay, ast_tvdiff_ms(ast_tvnow(), p->polaritydelaytv) );
|
||||
ast_debug(1, "Polarity Reversal event occurred - DEBUG 2: channel %d, state %u, pol= %d, aonp= %d, honp= %d, pdelay= %d, tv= %" PRIi64 "\n", p->channel, ast_channel_state(ast), p->polarity, p->answeronpolarityswitch, p->hanguponpolarityswitch, p->polarityonanswerdelay, ast_tvdiff_ms(ast_tvnow(), p->polaritydelaytv) );
|
||||
break;
|
||||
default:
|
||||
ast_debug(1, "Dunno what to do with event %d on channel %d\n", res, p->channel);
|
||||
@@ -8875,7 +8875,7 @@ static struct ast_frame *dahdi_read(struct ast_channel *ast)
|
||||
/*
|
||||
* Check to see if the channel is still associated with the same
|
||||
* private structure. While the Asterisk channel was unlocked
|
||||
* the following events may have occured:
|
||||
* the following events may have occurred:
|
||||
*
|
||||
* 1) A masquerade may have associated the channel with another
|
||||
* technology or private structure.
|
||||
@@ -12141,7 +12141,7 @@ static void *do_monitor(void *data)
|
||||
int energy;
|
||||
struct timeval now;
|
||||
/* State machine dtmfcid_holdoff_state allows for the line to settle
|
||||
* before checking agin for dtmf energy. Presently waits for 500 mS before checking again
|
||||
* before checking again for dtmf energy. Presently waits for 500 mS before checking again
|
||||
*/
|
||||
if (1 == i->dtmfcid_holdoff_state) {
|
||||
gettimeofday(&i->dtmfcid_delay, NULL);
|
||||
@@ -13190,7 +13190,7 @@ static struct dahdi_pvt *mkintf(int channel, const struct dahdi_chan_conf *conf,
|
||||
if (tmp->use_smdi) {
|
||||
tmp->smdi_iface = ast_smdi_interface_find(conf->smdi_port);
|
||||
if (!(tmp->smdi_iface)) {
|
||||
ast_log(LOG_ERROR, "Invalid SMDI port specfied, disabling SMDI support\n");
|
||||
ast_log(LOG_ERROR, "Invalid SMDI port specified, disabling SMDI support\n");
|
||||
tmp->use_smdi = 0;
|
||||
}
|
||||
}
|
||||
@@ -13831,7 +13831,7 @@ static struct dahdi_pvt *determine_starting_point(const char *data, struct dahdi
|
||||
AST_APP_ARG(group); /* channel/group token */
|
||||
//AST_APP_ARG(ext); /* extension token */
|
||||
//AST_APP_ARG(opts); /* options token */
|
||||
AST_APP_ARG(other); /* Any remining unused arguments */
|
||||
AST_APP_ARG(other); /* Any remaining unused arguments */
|
||||
);
|
||||
|
||||
/*
|
||||
@@ -15171,7 +15171,7 @@ static char *handle_pri_destroy_span(struct ast_cli_entry *e, int cmd,
|
||||
e->command = "pri destroy span";
|
||||
e->usage =
|
||||
"Usage: pri destroy span <span>\n"
|
||||
" Destorys D-channel of span and its B-channels.\n"
|
||||
" Destroys D-channel of span and its B-channels.\n"
|
||||
" DON'T USE THIS UNLESS YOU KNOW WHAT YOU ARE DOING.\n";
|
||||
return NULL;
|
||||
case CLI_GENERATE:
|
||||
@@ -15750,7 +15750,7 @@ static char *handle_mfcr2_destroy_link(struct ast_cli_entry *e, int cmd, struct
|
||||
e->command = "mfcr2 destroy link";
|
||||
e->usage =
|
||||
"Usage: mfcr2 destroy link <index-number>\n"
|
||||
" Destorys D-channel of link and its B-channels.\n"
|
||||
" Destroys D-channel of link and its B-channels.\n"
|
||||
" DON'T USE THIS UNLESS YOU KNOW WHAT YOU ARE DOING.\n";
|
||||
return NULL;
|
||||
case CLI_GENERATE:
|
||||
@@ -18510,7 +18510,7 @@ static int dahdi_datetime_send_option(const char *value)
|
||||
|
||||
/*! process_dahdi() - ignore keyword 'channel' and similar */
|
||||
#define PROC_DAHDI_OPT_NOCHAN (1 << 0)
|
||||
/*! process_dahdi() - No warnings on non-existing cofiguration keywords */
|
||||
/*! process_dahdi() - No warnings on non-existing configuration keywords */
|
||||
#define PROC_DAHDI_OPT_NOWARN (1 << 1)
|
||||
|
||||
static void parse_busy_pattern(struct ast_variable *v, struct ast_dsp_busy_pattern *busy_cadence)
|
||||
@@ -20137,7 +20137,7 @@ static int setup_dahdi_int(int reload, struct dahdi_chan_conf *default_conf, str
|
||||
while (c && (i < SIG_PRI_NUM_DCHANS)) {
|
||||
dchannels[i] = atoi(c + 1);
|
||||
if (dchannels[i] < 0) {
|
||||
ast_log(LOG_WARNING, "D-channel for trunk group %d must be a postiive number at line %d of chan_dahdi.conf\n", trunkgroup, v->lineno);
|
||||
ast_log(LOG_WARNING, "D-channel for trunk group %d must be a positive number at line %d of chan_dahdi.conf\n", trunkgroup, v->lineno);
|
||||
} else
|
||||
i++;
|
||||
c = strchr(c + 1, ',');
|
||||
@@ -20169,13 +20169,13 @@ static int setup_dahdi_int(int reload, struct dahdi_chan_conf *default_conf, str
|
||||
} else
|
||||
ast_verb(2, "Mapped span %d to trunk group %d (logical span %d)\n", spanno, trunkgroup, logicalspan);
|
||||
} else
|
||||
ast_log(LOG_WARNING, "Logical span must be a postive number, or '0' (for unspecified) at line %d of chan_dahdi.conf\n", v->lineno);
|
||||
ast_log(LOG_WARNING, "Logical span must be a positive number, or '0' (for unspecified) at line %d of chan_dahdi.conf\n", v->lineno);
|
||||
} else
|
||||
ast_log(LOG_WARNING, "Trunk group must be a postive number at line %d of chan_dahdi.conf\n", v->lineno);
|
||||
ast_log(LOG_WARNING, "Trunk group must be a positive number at line %d of chan_dahdi.conf\n", v->lineno);
|
||||
} else
|
||||
ast_log(LOG_WARNING, "Missing trunk group for span map at line %d of chan_dahdi.conf\n", v->lineno);
|
||||
} else
|
||||
ast_log(LOG_WARNING, "Span number must be a postive integer at line %d of chan_dahdi.conf\n", v->lineno);
|
||||
ast_log(LOG_WARNING, "Span number must be a positive integer at line %d of chan_dahdi.conf\n", v->lineno);
|
||||
} else {
|
||||
ast_log(LOG_NOTICE, "Ignoring unknown keyword '%s' in trunkgroups\n", v->name);
|
||||
}
|
||||
|
Reference in New Issue
Block a user