Skip to content

Commit

Permalink
seas: typos
Browse files Browse the repository at this point in the history
  • Loading branch information
dilyanpalauzov authored and miconda committed Feb 8, 2023
1 parent c13b8d4 commit 1bed209
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion src/modules/seas/doc/seas_admin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@

<para>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.</para>
www.wesip.eu, and used freely for non-commercial purposes.</para>
</section>
</section>

Expand Down
2 changes: 1 addition & 1 deletion src/modules/seas/encode_content_length.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions src/modules/seas/encode_content_length.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions src/modules/seas/encode_msg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/modules/seas/encode_parameters.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion src/modules/seas/encode_to_body.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion src/modules/seas/encode_uri.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
12 changes: 6 additions & 6 deletions src/modules/seas/event_dispatcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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++);
Expand Down Expand Up @@ -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
*/
Expand Down Expand Up @@ -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.
*
Expand Down Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions src/modules/seas/seas.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 !!
Expand Down Expand Up @@ -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{
Expand Down
10 changes: 5 additions & 5 deletions src/modules/seas/seas_action.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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...
*/
Expand All @@ -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;
Expand Down Expand Up @@ -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)
{
Expand Down Expand Up @@ -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.
*/
Expand Down
6 changes: 3 additions & 3 deletions src/modules/seas/statistics.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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){
Expand Down

0 comments on commit 1bed209

Please sign in to comment.