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 */
}
/*!
- * \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
}
/*!
- * \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)
}
/*!
- * \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)
}
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;
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;
}
}
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;
}
}
/* 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;
}
/* 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;
}
}
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;
}
}
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);
}
}
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);
}
if (!ast_strlen_zero(p->exten)) {
- if (ooIsDailedDigit(p->exten)) {
+ if (ooIsDialedDigit(p->exten)) {
ooCallSetCalledPartyNumber(call, p->exten);
ooCallAddRemoteAliasDialedDigits(call, p->exten);
} else {
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
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. */
{
/* 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 */
/* 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. */
* 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
* 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
* 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
*/
} m;
H225NonStandardParameter nonStandard;
H225SecurityServiceMode encryption;
- H225SecurityServiceMode authenticaton;
+ H225SecurityServiceMode authentication;
H225SecurityServiceMode integrity;
} H225SecurityCapabilities;
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 */
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 */
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 ==
/* 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));
-/* 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;
* 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.
* 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.
* 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
/**
* 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
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.
*/
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));
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));
(&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;
(&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);
/**
- * 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.
*
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.
/**
* 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.
}
-OOBOOL ooIsDailedDigit(const char* str)
+OOBOOL ooIsDialedDigit(const char* str)
{
if(str == NULL || *str =='\0') { return FALSE; }
while(*str != '\0')
* @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
/**
* 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.
*
{
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 */
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;
}
* 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.
*/
(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.
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);
}
}
/* 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;
pChannel = ooFindLogicalChannelByLogicalChannelNo
(pCall, olc->forwardLogicalChannelNumber);
- /* start receive and tramsmit channel listening */
+ /* start receive and transmit channel listening */
if(dir & OORX)
{
strcpy(pChannel->remoteIP, remoteMediaControlIP);
/* 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)
}
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);
* @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.
*/