addons: Spelling fixes

Correct typos of the following word families:

definition
listener
fastcopy
logical
registration
classify
documentation
explicitly
dialed
endpoint
elements
arithmetic
might
prepend
byte
terminal
inquiry
skipping
aliases
calling
absent
authentication
transmit
their
ericsson
disconnecting
redir
items
client
adapter
transmitter
existing
satisfies
pointer
interval
supplied

ASTERISK-29714

Change-Id: I8548438246f7b718d88e0b9e0a1eb384bbec88e4
This commit is contained in:
Josh Soref 2021-10-30 21:04:34 -04:00 committed by Joshua Colp
parent b9e888418e
commit 01697d4836
27 changed files with 56 additions and 56 deletions

View File

@ -102,7 +102,7 @@ struct adapter_pvt {
char id[31]; /* the 'name' from mobile.conf */
bdaddr_t addr; /* adddress of adapter */
unsigned int inuse:1; /* are we in use ? */
unsigned int alignment_detection:1; /* do alignment detection on this adpater? */
unsigned int alignment_detection:1; /* do alignment detection on this adapter? */
struct io_context *io; /*!< io context for audio connections */
struct io_context *accept_io; /*!< io context for sco listener */
int *sco_id; /*!< the io context id of the sco listener socket */
@ -2006,7 +2006,7 @@ static int at_match_prefix(char *buf, char *prefix)
}
/*!
* \brief Read an AT message and clasify it.
* \brief Read an AT message and classify it.
* \param rsock an rfcomm socket
* \param buf the buffer to store the result in
* \param count the size of the buffer or the maximum number of characters to read
@ -2176,7 +2176,7 @@ static int hfp_parse_ecav(struct hfp_pvt *hfp, char *buf)
}
/*!
* \brief Enable Sony Erricson extensions / indications.
* \brief Enable Sony Ericsson extensions / indications.
* \param hfp an hfp_pvt struct
*/
static int hfp_send_ecam(struct hfp_pvt *hfp)
@ -3040,7 +3040,7 @@ static void msg_queue_free_and_pop(struct mbl_pvt *pvt)
}
/*!
* \brief Remove all itmes from the queue and free them.
* \brief Remove all items from the queue and free them.
* \param pvt a mbl_pvt structure
*/
static void msg_queue_flush(struct mbl_pvt *pvt)
@ -3347,7 +3347,7 @@ static int handle_response_ok(struct mbl_pvt *pvt, char *buf)
}
break;
case AT_CLIP:
ast_debug(1, "[%s] caling line indication enabled\n", pvt->id);
ast_debug(1, "[%s] calling line indication enabled\n", pvt->id);
if (hfp_send_ecam(pvt->hfp) || msg_queue_push(pvt, AT_OK, AT_ECAM)) {
ast_debug(1, "[%s] error enabling Sony Ericsson call monitoring extensions\n", pvt->id);
goto e_return;
@ -3567,7 +3567,7 @@ static int handle_response_ciev(struct mbl_pvt *pvt, char *buf)
if (pvt->owner) {
ast_debug(1, "[%s] hanging up owner\n", pvt->id);
if (mbl_queue_hangup(pvt)) {
ast_log(LOG_ERROR, "[%s] error queueing hangup, disconnectiong...\n", pvt->id);
ast_log(LOG_ERROR, "[%s] error queueing hangup, disconnecting...\n", pvt->id);
return -1;
}
}
@ -3601,7 +3601,7 @@ static int handle_response_ciev(struct mbl_pvt *pvt, char *buf)
handle_response_busy(pvt);
}
if (mbl_queue_hangup(pvt)) {
ast_log(LOG_ERROR, "[%s] error queueing hangup, disconnectiong...\n", pvt->id);
ast_log(LOG_ERROR, "[%s] error queueing hangup, disconnecting...\n", pvt->id);
return -1;
}
}
@ -4431,7 +4431,7 @@ static struct adapter_pvt *mbl_load_adapter(struct ast_config *cfg, const char *
/* bind the sco listener socket */
if (sco_bind(adapter) < 0) {
ast_log(LOG_ERROR, "Skipping adapter %s. Error binding audio connection listerner socket.\n", adapter->id);
ast_log(LOG_ERROR, "Skipping adapter %s. Error binding audio connection listener socket.\n", adapter->id);
goto e_destroy_io;
}
@ -4443,7 +4443,7 @@ static struct adapter_pvt *mbl_load_adapter(struct ast_config *cfg, const char *
/* start the sco listener for this adapter */
if (ast_pthread_create_background(&adapter->sco_listener_thread, NULL, do_sco_listen, adapter)) {
ast_log(LOG_ERROR, "Skipping adapter %s. Error creating audio connection listerner thread.\n", adapter->id);
ast_log(LOG_ERROR, "Skipping adapter %s. Error creating audio connection listener thread.\n", adapter->id);
goto e_remove_sco;
}
@ -4499,7 +4499,7 @@ static struct mbl_pvt *mbl_load_device(struct ast_config *cfg, const char *cat)
}
AST_RWLIST_UNLOCK(&adapters);
if (!adapter) {
ast_log(LOG_ERROR, "Skiping device %s. Unknown adapter '%s' specified.\n", cat, adapter_str);
ast_log(LOG_ERROR, "Skipping device %s. Unknown adapter '%s' specified.\n", cat, adapter_str);
goto e_return;
}

View File

@ -2055,7 +2055,7 @@ int onOutgoingCall(ooCallData *call)
}
ooCallAddAliasDialedDigits(call, p->caller_dialedDigits);
} else if (!ast_strlen_zero(p->callerid_num)) {
if (ooIsDailedDigit(p->callerid_num)) {
if (ooIsDialedDigit(p->callerid_num)) {
if (gH323Debug) {
ast_verb(0, "setting callid number %s\n", p->callerid_num);
}
@ -2136,7 +2136,7 @@ int onNewCallCreated(ooCallData *call)
}
ooCallAddAliasDialedDigits(call, p->caller_dialedDigits);
} else if (!ast_strlen_zero(p->callerid_num)) {
if (ooIsDailedDigit(p->callerid_num)) {
if (ooIsDialedDigit(p->callerid_num)) {
if (gH323Debug) {
ast_verb(0, "setting callid number %s\n", p->callerid_num);
}
@ -2148,7 +2148,7 @@ int onNewCallCreated(ooCallData *call)
if (!ast_strlen_zero(p->exten)) {
if (ooIsDailedDigit(p->exten)) {
if (ooIsDialedDigit(p->exten)) {
ooCallSetCalledPartyNumber(call, p->exten);
ooCallAddRemoteAliasDialedDigits(call, p->exten);
} else {

View File

@ -75,7 +75,7 @@ To run the stack test application chansetup
3. For running calling instance
./h323peer [--use-ip ip] -n <number of calls> -duration <call duration>
-interval <inetrval between successive calls> destination
-interval <interval between successive calls> destination
where all times are in seconds. Interval of 0 means next call will be placed
after current call finishes. "destination" is the dotted ip address of the

View File

@ -417,7 +417,7 @@ int decodeDynBitString (OOCTXT* pctxt, ASN1DynBitStr* pBitStr)
ASN1OCTET* ptmp;
int nbits, stat = ASN_OK;
/* If "fast copy" option is not set (ASN1FATSCOPY) or if constructed,
/* If "fast copy" option is not set (ASN1FASTCOPY) or if constructed,
* copy the bit string value into a dynamic memory buffer;
* otherwise, store the pointer to the value in the decode
* buffer in the data pointer argument. */

View File

@ -1007,7 +1007,7 @@ int encode2sCompBinInt (OOCTXT* pctxt, ASN1INT value)
{
/* 10.4.6 A minimum octet 2's-complement-binary-integer encoding */
/* of the whole number has a field width that is a multiple of 8 */
/* bits and also satisifies the condition that the leading 9 bits */
/* bits and also satisfies the condition that the leading 9 bits */
/* field shall not be all zeros and shall not be all ones. */
/* first encode integer value into a local buffer */
@ -1048,7 +1048,7 @@ static int encodeNonNegBinInt (OOCTXT* pctxt, ASN1UINT value)
/* 10.3.6 A minimum octet non-negative binary integer encoding of */
/* the whole number (which does not predetermine the number of */
/* octets to be used for the encoding) has a field which is a */
/* multiple of 8 bits and also satisifies the condition that the */
/* multiple of 8 bits and also satisfies the condition that the */
/* leading eight bits of the field shall not be zero unless the */
/* field is precisely 8 bits long. */

View File

@ -49,7 +49,7 @@ extern "C" {
* SEQUENCE OF, SET OF, or CHOICE construct is parsed.
*
* @param name For SEQUENCE, SET, or CHOICE, this is the name of the
* element as defined in the ASN.1 defination. For
* element as defined in the ASN.1 definition. For
* SEQUENCE OF or SET OF, this is set to the name
* "element".
* @param index For SEQUENCE, SET, or CHOICE, this is not used and is
@ -68,7 +68,7 @@ typedef void (*StartElement) (const char* name, int index) ;
* SEQUENCE, SET, SEQUENCE OF, SET OF, or CHOICE construct.
*
* @param name For SEQUENCE, SET, or CHOICE, this is the name of the
* element as defined in the ASN.1 defination. For
* element as defined in the ASN.1 definition. For
* SEQUENCE OF or SET OF, this is set to the name
* "element".
* @param index For SEQUENCE, SET, or CHOICE, this is not used and is
@ -194,7 +194,7 @@ typedef void (*EnumValue) (ASN1UINT value) ;
* within a decode function when an ASN.1 open type is parsed.
*
* @param numocts Number of octets in the parsed value.
* @param data Pointer to byet array contain in tencoded ASN.1
* @param data Pointer to byte array contain in tencoded ASN.1
* value.
* @return - none
*/

View File

@ -1926,7 +1926,7 @@ typedef struct EXTERN H225SecurityCapabilities {
} m;
H225NonStandardParameter nonStandard;
H225SecurityServiceMode encryption;
H225SecurityServiceMode authenticaton;
H225SecurityServiceMode authentication;
H225SecurityServiceMode integrity;
} H225SecurityCapabilities;

View File

@ -6357,14 +6357,14 @@ EXTERN int asn1PD_H225SecurityCapabilities (OOCTXT* pctxt, H225SecurityCapabilit
invokeEndElement (pctxt, "encryption", -1);
/* decode authenticaton */
/* decode authentication */
invokeStartElement (pctxt, "authenticaton", -1);
invokeStartElement (pctxt, "authentication", -1);
stat = asn1PD_H225SecurityServiceMode (pctxt, &pvalue->authenticaton);
stat = asn1PD_H225SecurityServiceMode (pctxt, &pvalue->authentication);
if (stat != ASN_OK) return stat;
invokeEndElement (pctxt, "authenticaton", -1);
invokeEndElement (pctxt, "authentication", -1);
/* decode integrity */

View File

@ -4408,9 +4408,9 @@ EXTERN int asn1PE_H225SecurityCapabilities (OOCTXT* pctxt, H225SecurityCapabilit
stat = asn1PE_H225SecurityServiceMode (pctxt, &pvalue->encryption);
if (stat != ASN_OK) return stat;
/* encode authenticaton */
/* encode authentication */
stat = asn1PE_H225SecurityServiceMode (pctxt, &pvalue->authenticaton);
stat = asn1PE_H225SecurityServiceMode (pctxt, &pvalue->authentication);
if (stat != ASN_OK) return stat;
/* encode integrity */

View File

@ -265,7 +265,7 @@ void* memHeapAlloc (void** ppvMemHeap, int nbytes)
if (nunits <= (ASN1UINT)pElem_nunits (pElem)) {
RTMEMDIAG3
("memHeapAlloc: "
"found an exisiting free element 0x%x, size %d\n",
"found an existing free element 0x%x, size %d\n",
pElem, (pElem_nunits (pElem) * 8u));
if (pMemBlk->freeElemOff ==
@ -1214,7 +1214,7 @@ static OSMemLink* memHeapAddBlock (OSMemLink** ppMemLink,
/* if pMemBlk has RTMEMLINK flags it means that it is allocated
* cooperatively with OSMemLink, and we don't need to do additional
* allocations for it. Just use pointer's arithemtic. */
* allocations for it. Just use pointer's arithmetic. */
if (blockType & RTMEMLINK)
pMemLink = (OSMemLink*) (((ASN1OCTET*)pMemBlk) - sizeof (OSMemLink));

View File

@ -783,7 +783,7 @@ OOH323CallData* ooFindCallByToken(const char *callToken)
/* Checks whether session with suplied ID and direction is already active*/
/* Checks whether session with supplied ID and direction is already active*/
ASN1BOOL ooIsSessionEstablished(OOH323CallData *call, int sessionID, char* dir)
{
OOLogicalChannel * temp = NULL;

View File

@ -294,7 +294,7 @@ EXTERN int ooCapabilityDisableDTMFQ931Keypad(struct OOH323CallData *call);
* and txframes parameters to the endpoint or call.(ex. G711, G728, G723.1,
* G729)
* @param call Handle to a call. If this is not Null, then
* capability is added to call's remote enpoint
* capability is added to call's remote endpoint
* capability list, else it is added to local H323
* endpoint list.
* @param cap Type of G711 capability to be added.
@ -326,7 +326,7 @@ EXTERN int ooCapabilityAddSimpleCapability
* to local endpoints capability list or to remote endpoints capability list or
* to a call's capability list.
* @param call Handle to a call. If this is not Null, then
* capability is added to call's remote enpoint
* capability is added to call's remote endpoint
* capability list, else it is added to local H323
* endpoint list.
* @param cap Type of GSM capability to be added.
@ -357,7 +357,7 @@ int ooCapabilityAddGSMCapability(struct OOH323CallData *call, int cap,
* capability list or to remote endpoints capability list or to a call's
* capability list.
* @param call Handle to a call. If this is not Null, then
* capability is added to call's remote enpoint
* capability is added to call's remote endpoint
* capability list, else it is added to local H323
* endpoint list.
* @param sqcifMPI Minimum picture interval for encoding/decoding
@ -396,7 +396,7 @@ EXTERN int ooCapabilityAddH263VideoCapability(struct OOH323CallData *call,
/**
* This function is an helper function to ooCapabilityAddH263VideoCapability.
* @param call Handle to a call. If this is not Null, then
* capability is added to call's remote enpoint
* capability is added to call's remote endpoint
* capability list, else it is added to local H323
* endpoint list.
* @param sqcifMPI Minimum picture interval for encoding/decoding
@ -717,11 +717,11 @@ EXTERN int ooAppendCapToCapPrefs(struct OOH323CallData *call, int cap);
EXTERN int ooChangeCapPrefOrder(struct OOH323CallData *call, int cap, int pos);
/**
* This function is used to preppend a particular capability to preference
* This function is used to prepend a particular capability to preference
* list.
* @param call Handle to call, if call's preference list has to be modified
* else NULL, to modify endpoint's preference list.
* @param cap Capability to be preppended.
* @param cap Capability to be prepended.
*
* @return OO_OK, on success. OO_FAILED, otherwise.
*/

View File

@ -186,7 +186,7 @@ int ooReadAndProcessStackCommand()
if(!pCall) {
OOTRACEINFO2("Call \"%s\" does not exist\n",
(char*)cmd.param1);
OOTRACEINFO1("Call migth be cleared/closed\n");
OOTRACEINFO1("Call might be cleared/closed\n");
}
else {
ooSendProgress(ooFindCallByToken((char*)cmd.param1));
@ -200,7 +200,7 @@ int ooReadAndProcessStackCommand()
if(!pCall) {
OOTRACEINFO2("Call \"%s\" does not exist\n",
(char*)cmd.param1);
OOTRACEINFO1("Call migth be cleared/closed\n");
OOTRACEINFO1("Call might be cleared/closed\n");
}
else {
ooSendAlerting(ooFindCallByToken((char*)cmd.param1));

View File

@ -1231,7 +1231,7 @@ int ooGkClientHandleRegistrationConfirm
(&pGkClient->ctxt, sizeof(ooGkClientTimerCb));
if(!cbData)
{
OOTRACEERR1("Error:Failed to allocate memory for Regisration timer."
OOTRACEERR1("Error:Failed to allocate memory for Registration timer."
"\n");
pGkClient->state = GkClientFailed;
return OO_FAILED;
@ -1927,7 +1927,7 @@ int ooGkClientSendAdmissionRequest
(&pGkClient->ctxt, sizeof(ooGkClientTimerCb));
if(!cbData)
{
OOTRACEERR1("Error:Failed to allocate memory for Regisration timer."
OOTRACEERR1("Error:Failed to allocate memory for Registration timer."
"\n");
pGkClient->state = GkClientFailed;
ast_mutex_unlock(&pGkClient->Lock);

View File

@ -318,7 +318,7 @@ EXTERN int ooGkClientHandleRASMessage
/**
* This function is used to send a message on Gatekeeper clien't RAS channel.
* This function is used to send a message on Gatekeeper client RAS channel.
* @param pGkClient Handle to the gatekeeper client.
* @param pRasMsg Handle to Ras message to be sent.
*

View File

@ -78,7 +78,7 @@ OOLogicalChannel* ooAddNewLogicalChannel(OOH323CallData *call, int channelNo,
OOTRACEDBGC3("Using configured media info (%s, %s)\n", call->callType,
call->callToken);
pNewChannel->localRtpPort = pMediaInfo->lMediaRedirPort ? pMediaInfo->lMediaRedirPort : pMediaInfo->lMediaPort;
/* check MediaRedirPort here because RedirCPort is ReditPort + 1 and can't be 0 ;) */
/* check MediaRedirPort here because RedirCPort is RedirPort + 1 and can't be 0 ;) */
pNewChannel->localRtcpPort = pMediaInfo->lMediaRedirPort ? pMediaInfo->lMediaRedirCPort : pMediaInfo->lMediaCntrlPort;
/* If user application has not specified a specific ip and is using
multihomed mode, substitute appropriate ip.

View File

@ -318,7 +318,7 @@ EXTERN int ooSocketSendTo(OOSOCKET socket, const ASN1OCTET* pdata,
/**
* This function is used for synchronous monitoring of multiple sockets.
* For more information refer to documnetation of "select" system call.
* For more information refer to documentation of "select" system call.
*
* @param nfds The highest numbered descriptor to be monitored
* plus one.

View File

@ -30,7 +30,7 @@ OOBOOL ooUtilsIsStrEmpty (const char* str)
}
OOBOOL ooIsDailedDigit(const char* str)
OOBOOL ooIsDialedDigit(const char* str)
{
if(str == NULL || *str =='\0') { return FALSE; }
while(*str != '\0')

View File

@ -48,6 +48,6 @@ EXTERN OOBOOL ooUtilsIsStrEmpty (const char * str);
* @param str String to test
* @return TRUE if string contains all digits; FALSE otherwise
*/
EXTERN OOBOOL ooIsDailedDigit(const char* str);
EXTERN OOBOOL ooIsDialedDigit(const char* str);
#endif

View File

@ -607,7 +607,7 @@ EXTERN int initContextBuffer
/**
* This function initializes a context block. It makes sure that if the block
* was not previosly initialized, that all key working parameters are set to
* thier correct initial state values (i.e. declared within a function as a
* their correct initial state values (i.e. declared within a function as a
* normal working variable), it is required that they invoke this function
* before using it.
*

View File

@ -297,7 +297,7 @@ int ooCreateH225Connection(OOH323CallData *call)
{
call->pH225Channel->sock = channelSocket;
OOTRACEINFO3("H2250 transmiter channel creation - successful "
OOTRACEINFO3("H2250 transmitter channel creation - successful "
"(%s, %s)\n", call->callType, call->callToken);
/* If multihomed, get ip from socket */

View File

@ -2559,7 +2559,7 @@ int ooOnReceivedRequestChannelClose(OOH323CallData *call,
if (lChannel->state == OO_LOGICALCHAN_ESTABLISHED) {
ret = ooSendCloseLogicalChannel(call, lChannel);
if (ret != OO_OK) {
OOTRACEERR3("ERROR:Failed to build CloseLgicalChannel message(%s, %s)\n",
OOTRACEERR3("ERROR:Failed to build CloseLogicalChannel message(%s, %s)\n",
call->callType, call->callToken);
return OO_FAILED;
}

View File

@ -174,7 +174,7 @@ EXTERN int ooSendMasterSlaveDeterminationReject (struct OOH323CallData* call);
* MasterSlaveDetermination procedure.
* @param call Handle to the call for which MasterSlaveReject is
* received.
* @param reject Poinetr to the received reject message.
* @param reject Pointer to the received reject message.
*
* @return OO_OK, on success. OO_FAILED, on failure.
*/
@ -271,7 +271,7 @@ EXTERN int ooOnReceivedUserInputIndication
(OOH323CallData *call, H245UserInputIndication *indication);
/**
* This function is called on receiving a TreminalCapabilitySetAck message.
* This function is called on receiving a TerminalCapabilitySetAck message.
* If the MasterSlaveDetermination process is also over, this function
* initiates the process of opening logical channels.
* @param call Pointer to call for which TCSAck is received.

View File

@ -616,7 +616,7 @@ int ooOnReceivedSetup(OOH323CallData *call, Q931Message *q931Msg)
removeEventHandler(call->pctxt);
return OO_FAILED;
}
/* For now, just add decoded fast start elemts to list. This list
/* For now, just add decoded fast start elements to list. This list
will be processed at the time of sending CONNECT message. */
dListAppend(call->pctxt, &call->remoteFastStartOLCs, olc);
}

View File

@ -65,7 +65,7 @@ int ooH323EpInitialize
}
/* Initialize default port ranges that will be used by stack.
Apps can override these by explicitely setting port ranges
Apps can override these by explicitly setting port ranges
*/
gH323ep.tcpPorts.start = TCPPORTSSTART;

View File

@ -1210,7 +1210,7 @@ int ooSetFastStartResponse(OOH323CallData *pCall, Q931Message *pQ931msg,
pChannel = ooFindLogicalChannelByLogicalChannelNo
(pCall, olc->forwardLogicalChannelNumber);
/* start receive and tramsmit channel listening */
/* start receive and transmit channel listening */
if(dir & OORX)
{
strcpy(pChannel->remoteIP, remoteMediaControlIP);
@ -2025,7 +2025,7 @@ int ooSendStatusInquiry(OOH323CallData *call)
/* OOCTXT *pctxt = &gH323ep.msgctxt; */
OOCTXT *pctxt = call->msgctxt;
OOTRACEDBGC3("Building StatusInquryMsg (%s, %s)\n", call->callType,
OOTRACEDBGC3("Building StatusInquiryMsg (%s, %s)\n", call->callType,
call->callToken);
ret = ooCreateQ931Message(pctxt, &q931msg, Q931StatusEnquiryMsg);
if(ret != OO_OK)
@ -2987,7 +2987,7 @@ int ooH323MakeCall_helper(OOH323CallData *call)
}
if(!epCap)
{
OOTRACEWARN4("Warn:Preferred capability %s is abscent in "
OOTRACEWARN4("Warn:Preferred capability %s is absent in "
"capability list. (%s, %s)\n",
ooGetCapTypeText(call->capPrefs.order[k]),
call->callType, call->callToken);

View File

@ -582,7 +582,7 @@ EXTERN int ooH323MakeCall_helper(struct OOH323CallData *call);
* @param dest Destination string to be parsed.
* @param parsedIP Pointer to buffer in which parsed ip:port will be returned.
* @param len Length of the buffer passed.
* @param aliasList Aliase List in which new aliases will be added.
* @param aliasList Aliases List in which new aliases will be added.
*
* @return OO_OK, on success. OO_FAILED, on failure.
*/