mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +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`
(cherry picked from commit 32cdce18c2
)
This commit is contained in:
committed by
Asterisk Development Team
parent
3692e33898
commit
350a80a2aa
@@ -434,7 +434,7 @@ static struct unistim_device {
|
||||
int callhistory; /*!< Allowed to record call history */
|
||||
int sharp_dial; /*!< Execute Dial on '#' or not */
|
||||
char lst_cid[TEXT_LENGTH_MAX]; /*!< Last callerID received */
|
||||
char lst_cnm[TEXT_LENGTH_MAX]; /*!< Last callername recevied */
|
||||
char lst_cnm[TEXT_LENGTH_MAX]; /*!< Last callername received */
|
||||
char call_forward[AST_MAX_EXTENSION]; /*!< Forward number */
|
||||
int output; /*!< Handset, headphone or speaker */
|
||||
int previous_output; /*!< Previous output */
|
||||
@@ -459,7 +459,7 @@ static struct unistimsession {
|
||||
ast_mutex_t lock;
|
||||
struct sockaddr_in sin; /*!< IP address of the phone */
|
||||
struct sockaddr_in sout; /*!< IP address of server */
|
||||
int timeout; /*!< time-out in ticks : resend packet if no ack was received before the timeout occured */
|
||||
int timeout; /*!< time-out in ticks : resend packet if no ack was received before the timeout occurred */
|
||||
unsigned short seq_phone; /*!< sequence number for the next packet (when we receive a request) */
|
||||
unsigned short seq_server; /*!< sequence number for the next packet (when we send a request) */
|
||||
unsigned short last_seq_ack; /*!< sequence number of the last ACK received */
|
||||
@@ -467,12 +467,12 @@ static struct unistimsession {
|
||||
int last_buf_available; /*!< number of a free slot */
|
||||
int nb_retransmit; /*!< number of retransmission */
|
||||
int state; /*!< state of the phone (see phone_state) */
|
||||
int size_buff_entry; /*!< size of the buffer used to enter datas */
|
||||
char buff_entry[16]; /*!< Buffer for temporary datas */
|
||||
int size_buff_entry; /*!< size of the buffer used to enter data */
|
||||
char buff_entry[16]; /*!< Buffer for temporary data */
|
||||
char macaddr[18]; /*!< mac address of the phone (not always available) */
|
||||
char firmware[8]; /*!< firmware of the phone (not always available) */
|
||||
struct wsabuf wsabufsend[MAX_BUF_NUMBER]; /*!< Size of each paquet stored in the buffer array & pointer to this buffer */
|
||||
unsigned char buf[MAX_BUF_NUMBER][MAX_BUF_SIZE]; /*!< Buffer array used to keep the lastest non-acked paquets */
|
||||
unsigned char buf[MAX_BUF_NUMBER][MAX_BUF_SIZE]; /*!< Buffer array used to keep the latest non-acked paquets */
|
||||
struct unistim_device *device;
|
||||
struct unistimsession *next;
|
||||
} *sessions = NULL;
|
||||
@@ -947,12 +947,12 @@ static void send_raw_client(int size, const unsigned char *data, struct sockaddr
|
||||
#endif
|
||||
|
||||
if (sendmsg(unistimsock, &msg, 0) == -1) {
|
||||
display_last_error("Error sending datas");
|
||||
display_last_error("Error sending data");
|
||||
}
|
||||
#else
|
||||
if (sendto(unistimsock, data, size, 0, (struct sockaddr *) addr_to, sizeof(*addr_to))
|
||||
== -1)
|
||||
display_last_error("Error sending datas");
|
||||
display_last_error("Error sending data");
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -979,7 +979,7 @@ static void send_client(int size, const unsigned char *data, struct unistimsessi
|
||||
|
||||
/*#ifdef DUMP_PACKET */
|
||||
if (unistimdebug) {
|
||||
ast_verb(0, "Sending datas with seq #0x%04x Using slot #%d :\n", (unsigned)pte->seq_server, buf_pos);
|
||||
ast_verb(0, "Sending data with seq #0x%04x Using slot #%d :\n", (unsigned)pte->seq_server, buf_pos);
|
||||
}
|
||||
/*#endif */
|
||||
send_raw_client(pte->wsabufsend[buf_pos].len, pte->wsabufsend[buf_pos].buf, &(pte->sin),
|
||||
@@ -2176,12 +2176,12 @@ static void rcv_mac_addr(struct unistimsession *pte, const unsigned char *buf)
|
||||
struct unistim_line *line;
|
||||
struct unistim_subchannel *sub;
|
||||
|
||||
ast_verb(3, "Device '%s' successfuly registered\n", pte->device->name);
|
||||
ast_verb(3, "Device '%s' successfully registered\n", pte->device->name);
|
||||
|
||||
AST_LIST_LOCK(&pte->device->subs);
|
||||
AST_LIST_TRAVERSE_SAFE_BEGIN(&pte->device->subs, sub, list) {
|
||||
if (sub) {
|
||||
ast_log(LOG_ERROR, "Subchannel lost sice reboot. Hanged channel may apear!\n");
|
||||
ast_log(LOG_ERROR, "Subchannel lost sice reboot. Hanged channel may appear!\n");
|
||||
AST_LIST_REMOVE_CURRENT(list);
|
||||
ast_free(sub);
|
||||
}
|
||||
@@ -4225,7 +4225,7 @@ static void key_main_page(struct unistimsession *pte, char keycode)
|
||||
sizeof(pte->device->call_forward) - 1);
|
||||
pte->device->call_forward[0] = '\0';
|
||||
send_icon(TEXT_LINE0, FAV_ICON_NONE, pte);
|
||||
pte->device->output = OUTPUT_HANDSET; /* Seems to be reseted somewhere */
|
||||
pte->device->output = OUTPUT_HANDSET; /* Seems to be reset somewhere */
|
||||
show_main_page(pte);
|
||||
break;
|
||||
}
|
||||
@@ -4889,7 +4889,7 @@ static int unistim_call(struct ast_channel *ast, const char *dest, int timeout)
|
||||
}
|
||||
session->state = STATE_RINGING;
|
||||
send_callerid_screen(session, sub);
|
||||
if (ast_strlen_zero(ast_channel_call_forward(ast))) { /* Send ring only if no call forward, otherwise short ring will apear */
|
||||
if (ast_strlen_zero(ast_channel_call_forward(ast))) { /* Send ring only if no call forward, otherwise short ring will appear */
|
||||
send_text(TEXT_LINE2, TEXT_NORMAL, session, ustmtext("is calling you.", session));
|
||||
send_text_status(session, ustmtext("Accept Ignore Hangup", session));
|
||||
|
||||
@@ -5567,7 +5567,7 @@ static int unistim_sendtext(struct ast_channel *ast, const char *text)
|
||||
case 0:
|
||||
if ((cur < '0') && (cur > '5')) {
|
||||
ast_log(LOG_WARNING,
|
||||
"sendtext failed : position must be a number beetween 0 and 5\n");
|
||||
"sendtext failed : position must be a number between 0 and 5\n");
|
||||
return 1;
|
||||
}
|
||||
pos = cur - '0';
|
||||
@@ -5583,7 +5583,7 @@ static int unistim_sendtext(struct ast_channel *ast, const char *text)
|
||||
case 2:
|
||||
if ((cur < '3') && (cur > '6')) {
|
||||
ast_log(LOG_WARNING,
|
||||
"sendtext failed : icon must be a number beetween 32 and 63 (first digit invalid)\n");
|
||||
"sendtext failed : icon must be a number between 32 and 63 (first digit invalid)\n");
|
||||
return 1;
|
||||
}
|
||||
icon = (cur - '0') * 10;
|
||||
@@ -5592,7 +5592,7 @@ static int unistim_sendtext(struct ast_channel *ast, const char *text)
|
||||
case 3:
|
||||
if ((cur < '0') && (cur > '9')) {
|
||||
ast_log(LOG_WARNING,
|
||||
"sendtext failed : icon must be a number beetween 32 and 63 (second digit invalid)\n");
|
||||
"sendtext failed : icon must be a number between 32 and 63 (second digit invalid)\n");
|
||||
return 1;
|
||||
}
|
||||
icon += (cur - '0');
|
||||
@@ -5601,7 +5601,7 @@ static int unistim_sendtext(struct ast_channel *ast, const char *text)
|
||||
case 4:
|
||||
if (cur != '@') {
|
||||
ast_log(LOG_WARNING,
|
||||
"sendtext failed : icon must be a number beetween 32 and 63 (too many digits)\n");
|
||||
"sendtext failed : icon must be a number between 32 and 63 (too many digits)\n");
|
||||
return 1;
|
||||
}
|
||||
tok = 5;
|
||||
@@ -6513,7 +6513,7 @@ static struct unistim_device *build_device(const char *cat, const struct ast_var
|
||||
d = devices;
|
||||
while (d) {
|
||||
if (!strcmp(d->name, cat)) {
|
||||
/* Yep, we alreay have this one */
|
||||
/* Yep, we already have this one */
|
||||
if (unistimsock < 0) {
|
||||
/* It's a dupe */
|
||||
ast_log(LOG_WARNING, "Duplicate entry found (%s), ignoring.\n", cat);
|
||||
@@ -6614,7 +6614,7 @@ static struct unistim_device *build_device(const char *cat, const struct ast_var
|
||||
} else if (!strcasecmp(v->name, "contrast")) {
|
||||
d->contrast = atoi(v->value);
|
||||
if ((d->contrast < 0) || (d->contrast > 15)) {
|
||||
ast_log(LOG_WARNING, "contrast must be beetween 0 and 15\n");
|
||||
ast_log(LOG_WARNING, "contrast must be between 0 and 15\n");
|
||||
d->contrast = 8;
|
||||
}
|
||||
} else if (!strcasecmp(v->name, "nat")) {
|
||||
|
Reference in New Issue
Block a user