From 1bed2095504e9d81eb2b881a2d71216372b3c822 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B8=D0=BB=D1=8F=D0=BD=20=D0=9F=D0=B0=D0=BB=D0=B0?= =?UTF-8?q?=D1=83=D0=B7=D0=BE=D0=B2?= Date: Wed, 8 Feb 2023 13:16:27 +0200 Subject: [PATCH] seas: typos --- src/modules/seas/doc/seas_admin.xml | 2 +- src/modules/seas/encode_content_length.c | 2 +- src/modules/seas/encode_content_length.h | 4 ++-- src/modules/seas/encode_msg.c | 6 +++--- src/modules/seas/encode_parameters.c | 2 +- src/modules/seas/encode_to_body.c | 2 +- src/modules/seas/encode_uri.c | 2 +- src/modules/seas/event_dispatcher.c | 12 ++++++------ src/modules/seas/seas.c | 4 ++-- src/modules/seas/seas_action.c | 10 +++++----- src/modules/seas/statistics.c | 6 +++--- 11 files changed, 26 insertions(+), 26 deletions(-) diff --git a/src/modules/seas/doc/seas_admin.xml b/src/modules/seas/doc/seas_admin.xml index bb89220e345..ecd204f809f 100644 --- a/src/modules/seas/doc/seas_admin.xml +++ b/src/modules/seas/doc/seas_admin.xml @@ -99,7 +99,7 @@ At the moment, the only Application Server that works with SEAS is WeSIP Application Server, which can be downloaded from - www.wesip.eu, and used freely for non-comercial purposes. + www.wesip.eu, and used freely for non-commercial purposes. diff --git a/src/modules/seas/encode_content_length.c b/src/modules/seas/encode_content_length.c index 957d2cf7ff3..807d30b5f1d 100644 --- a/src/modules/seas/encode_content_length.c +++ b/src/modules/seas/encode_content_length.c @@ -47,7 +47,7 @@ * encoding is as follows: * 1: length of the payload. * N: Network-Byte-Ordered(little endian) of the - * multibyte number represeting the length (now, it is + * multibyte number representing the length (now, it is * a long integer) */ int encode_contentlength(char *hdr,int hdrlen,long int len,char *where) diff --git a/src/modules/seas/encode_content_length.h b/src/modules/seas/encode_content_length.h index deb1cc40467..393adf932ae 100644 --- a/src/modules/seas/encode_content_length.h +++ b/src/modules/seas/encode_content_length.h @@ -18,8 +18,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef __ENCODE_CONTENT_LENGHT_H__ -#define __ENCODE_CONTENT_LENGHT_H__ +#ifndef __ENCODE_CONTENT_LENGTH_H__ +#define __ENCODE_CONTENT_LENGTH_H__ int encode_contentlength(char *hdr,int hdrlen,long int len,char *where); int print_encoded_contentlength(FILE* fd,char *hdr,int hdrlen,unsigned char *payload,int paylen,char *prefix); #endif diff --git a/src/modules/seas/encode_msg.c b/src/modules/seas/encode_msg.c index e496397888a..fad4b225fb8 100644 --- a/src/modules/seas/encode_msg.c +++ b/src/modules/seas/encode_msg.c @@ -112,7 +112,7 @@ char get_header_code(struct hdr_field *hf) * parts. * * RETURNS: LENGTH of structure on success, <0 if failure - * if there was failure, you dont need to pkg_free the payload (it is done inside). + * if there was failure, you don't need to pkg_free the payload (it is done inside). * if there was success, you __NEED_TO_PKG_FREE_THE_PAYLOAD__ from the calling function. * * The encoded meta-info is composed by 3 sections: @@ -180,7 +180,7 @@ int encode_msg(struct sip_msg *msg,char *payload,int len) } else { h=(unsigned short)(ms->u.reply.statuscode); } - if(h==32){/*statuscode wont be 32...*/ + if(h==32){/*statuscode won't be 32...*/ myerror="unknown message type\n"; goto error; } @@ -290,7 +290,7 @@ int decode_msg(struct sip_msg *msg,char *code, unsigned int len) memcpy(&h,&code[2],2); h=ntohs(h); - /*TODO use shorcuts in meta-info header.*/ + /*TODO use shortcuts in meta-info header.*/ msg->buf=&code[h]; memcpy(&h,&code[4],2); diff --git a/src/modules/seas/encode_parameters.c b/src/modules/seas/encode_parameters.c index ad29225c1cc..83c0349862f 100644 --- a/src/modules/seas/encode_parameters.c +++ b/src/modules/seas/encode_parameters.c @@ -52,7 +52,7 @@ * * TODO this is little shitty, someone should unify all the param flavours * to a sigle universal type of parameter (to_param,param,disposition_param) - * the way is done here, at least, we dont have the parameter-hanling code spread all around. + * the way is done here, at least, we don't have the parameter-hanling code spread all around. */ int encode_parameters(unsigned char *where,void *pars,char *hdrstart,void *_body,char to) { diff --git a/src/modules/seas/encode_to_body.c b/src/modules/seas/encode_to_body.c index a058ab22bd0..f65c906b791 100644 --- a/src/modules/seas/encode_to_body.c +++ b/src/modules/seas/encode_to_body.c @@ -140,7 +140,7 @@ int print_encoded_to_body(FILE *fd,char *hdr,int hdrlen,unsigned char* payload,i * payload is the payload, * paylen is the payload length, * fd is the file descriptor to which to dump, - * segregationLevel is wether only URIS must be dumped or all the header code. + * segregationLevel is whether only URIS must be dumped or all the header code. * * return 0 on success, <0 on error */ diff --git a/src/modules/seas/encode_uri.c b/src/modules/seas/encode_uri.c index 4932ff0ff66..1677611fbf6 100644 --- a/src/modules/seas/encode_uri.c +++ b/src/modules/seas/encode_uri.c @@ -94,7 +94,7 @@ * the end of the field, will be the place where the * following pointer points to, minus one (note that all the * fields present in a URI are preceded by 1 character, ie - * sip[:user][:passwod][@host][:port][;param1=x][;param2=y][?hdr1=a][&hdr2=b]$p + * sip[:user][:password][@host][:port][;param1=x][;param2=y][?hdr1=a][&hdr2=b]$p * it will be necessary to have a pointer at the end, * pointing two past the end of the uri, so that the length * of the last header can be computed. diff --git a/src/modules/seas/event_dispatcher.c b/src/modules/seas/event_dispatcher.c index 8b2719ec84d..55235afbb15 100644 --- a/src/modules/seas/event_dispatcher.c +++ b/src/modules/seas/event_dispatcher.c @@ -454,7 +454,7 @@ static int dispatch_relay(void) if(use_stats && thepointer.ptr->transaction) event_stat(thepointer.ptr->transaction); if(thepointer.ptr->as == NULL || !thepointer.ptr->as->connected || thepointer.ptr->as->type==CLUSTER_TYPE){ - LM_WARN("tryied to send an event to an App Server" + LM_WARN("tried to send an event to an App Server" " that is scheduled to die!!\n"); retval=-2; goto error; @@ -467,7 +467,7 @@ static int dispatch_relay(void) switch(errno){ case EINTR: if(!thepointer.ptr->as->connected){ - LM_WARN("tryied to send an event to an App Server" + LM_WARN("tried to send an event to an App Server" " that is scheduled to die!!\n"); retval=-2; goto error; @@ -617,7 +617,7 @@ static inline int send_sockinfo(int fd) unsigned char i; char buffer[300]; int k=0,j; - buffer[k++]=16;/*This used to be T_TABLE_POWER in Kamailio 1.0.1, now its hardcoded in config.h*/ + buffer[k++]=16;/*This used to be T_TABLE_POWER in Kamailio 1.0.1, now it is hardcoded in config.h*/ for(i=0,s=udp_listen;s;s=s->next,i++); #ifdef USE_TCP for(s=tcp_listen;s;s=s->next,i++); @@ -665,7 +665,7 @@ static inline int send_sockinfo(int fd) * N: name * 1: address string length * N: address - * 2: NBO unsigned shor int port number + * 2: NBO unsigned short int port number * * TODO buffer overflow risk */ @@ -698,7 +698,7 @@ static inline int print_sock_info(char *buffer,int wheremax,int *idx,struct sock /** * Handles data from an AppServer. First searches in the AS table which was the AS - * that sent the data (we dont already know it because this comes from a poll_fd + * that sent the data (we don't already know it because this comes from a poll_fd * struct). When the one is found, it calls process_event_reply, which in turn * looks if there's a complete event in the buffer, and if there is, processes it. * @@ -744,7 +744,7 @@ static int handle_as_data(int fd) * which says the length of the following message (header and payload). * This way, we avoid multiple small reads() to the socket, which (as we know), consumes * far more processor because of the kernel read(2) system call. The drawback - * is the added complexity of mantaining a buffer, the bytes read, and looking + * is the added complexity of maintaining a buffer, the bytes read, and looking * if there is a complete message already prepared. * * Actions are supposed to be small, that's why BUF_SIZE is 2000 bytes length. diff --git a/src/modules/seas/seas.c b/src/modules/seas/seas.c index 8d95cf408fd..303b7beb10c 100644 --- a/src/modules/seas/seas.c +++ b/src/modules/seas/seas.c @@ -387,7 +387,7 @@ static int w_as_relay_sl(struct sip_msg *msg, char *as_name, char *foo) /** TODO handle this correctly !!!*/ } } - //this shouln't be here, because it will remove the transaction from memory, but + //this shouldn't be here, because it will remove the transaction from memory, but //if transaction isn't unref'ed iw will be released anyway at t_unref if kr (killreason)==0 // a wait timer will be put to run with WT_TIME_OUT (5 seconds, within which the AS should respond) // this is a bug !!! I think this is why we lose calls at high load !! @@ -457,7 +457,7 @@ char * create_as_event_t(struct cell *t,struct sip_msg *msg,char processor_id,in LM_DBG("new CANCEL\n"); originalT=seas_f.tmb.t_lookup_original(msg); if(!originalT || originalT==T_UNDEFINED){ - /** we dont even pass the unknown CANCEL to JAIN*/ + /** we don't even pass the unknown CANCEL to JAIN*/ LM_WARN("CANCEL does not match any existing transaction!!\n"); goto error; }else{ diff --git a/src/modules/seas/seas_action.c b/src/modules/seas/seas_action.c index 1f370f77009..e91c740a319 100644 --- a/src/modules/seas/seas_action.c +++ b/src/modules/seas/seas_action.c @@ -730,7 +730,7 @@ int ac_reply(as_p the_as,unsigned char processor_id,unsigned int flags,char *act LM_DBG("Trying to construct a SipReply with: ReasonPhrase:[%.*s] body:[%.*s] headers:[%.*s] totag:[%.*s]\n",\ my_msg->first_line.u.reply.reason.len,my_msg->first_line.u.reply.reason.s,\ body.len,body.s,new_header.len,new_header.s,totag.len,totag.s); - /* t_reply_with_body un-ref-counts the transaction, so dont use it anymore*/ + /* t_reply_with_body un-ref-counts the transaction, so don't use it anymore*/ if(seas_f.tmb.t_reply_with_body(c,my_msg->first_line.u.reply.statuscode,&(my_msg->first_line.u.reply.reason),&body,&new_header,&totag)<0){ LM_ERR("Failed to t_reply\n"); goto error; @@ -995,7 +995,7 @@ int ac_uac_req(as_p the_as,unsigned char processor_id,unsigned int flags,char *a if(tb->tag_value.s && tb->tag_value.len) shm_str_dup(&my_dlg->id.rem_tag,&tb->tag_value); /**Awful hack: to be able to set our own CSeq, from_tag and call-ID we have - * to use req_within instead of req_outside (it sets it's own CSeq,Call-ID + * to use req_within instead of req_outside (it sets its own CSeq, Call-ID * and ftag), so we have to simulate that the dialog is already in completed * state so... */ @@ -1019,7 +1019,7 @@ int ac_uac_req(as_p the_as,unsigned char processor_id,unsigned int flags,char *a body.s[clen]=0; LM_DBG("Trying to construct a Sip Request with: body:%d[%.*s] headers:%d[%.*s]\n",\ body.len,body.len,body.s,headers.len,headers.len,headers.s); - /*t_reply_with_body un-ref-counts the transaction, so dont use it anymore*/ + /*t_reply_with_body un-ref-counts the transaction, so don't use it anymore*/ }else{ body.s=NULL; body.len=0; @@ -1408,7 +1408,7 @@ int as_action_fail_resp(int uac_id,int sip_error,char *err_buf,int i) /* * This callback function should be used in order to free the parameters passed to uac_cb. - * This callback is called when the transaction is detroyed. + * This callback is called when the transaction is destroyed. */ void uac_cleanup_cb(struct cell* t, int type, struct tmcb_params *rcvd_params) { @@ -1463,7 +1463,7 @@ void uas_e2e_ack_cb(struct cell* t, int type,struct tmcb_params *rcvd_params) /** * This function will be called from a SER process when a reply is received for - * the transaction. The SER processes only have acces to the EventDispatcher + * the transaction. The SER processes only have access to the EventDispatcher * fifo (not to the ActionDispatcher) so EventDispatcher will be the one who * will send the event to the AppServer. */ diff --git a/src/modules/seas/statistics.c b/src/modules/seas/statistics.c index cc9223ad231..2e1006a381d 100644 --- a/src/modules/seas/statistics.c +++ b/src/modules/seas/statistics.c @@ -211,7 +211,7 @@ void action_stat(struct cell *t) /** - * stats socket sould be an IP_address:port or unix://path/to_file + * stats socket should be an IP_address:port or unix://path/to_file * TODO handling unix sockets and IPv6 !! * * returns @@ -297,7 +297,7 @@ int start_stats_server(char *stats_socket) } /** - * stats socket sould be an IP_address:port or unix://path/to_file + * stats socket should be an IP_address:port or unix://path/to_file * TODO handling unix sockets and IPv6 !! * * returns @@ -351,7 +351,7 @@ void serve_stats(int fd) } retrn=print_stats_info(f,sock); if(retrn==-1){ - /**simple error happened, dont worry*/ + /**simple error happened, don't worry*/ LM_ERR("printing statisticss \n"); continue; }else if(retrn==-2){