Browse Source

- Spelling checked
- READMEs updated

Jan Janak 21 years ago
parent
commit
53c7e0f19a
100 changed files with 300 additions and 300 deletions
  1. 4 4
      ISSUES
  2. 1 1
      Makefile
  3. 1 1
      README
  4. 2 2
      action.c
  5. 1 1
      action.h
  6. 1 1
      ccver.sh
  7. 2 2
      cfg.lex
  8. 3 3
      cfg.y
  9. 1 1
      comp_defs.h
  10. 2 2
      config.h
  11. 1 1
      crc.c
  12. 1 1
      daemonize.c
  13. 1 1
      daemonize.h
  14. 5 5
      data_lump.c
  15. 1 1
      data_lump.h
  16. 2 2
      data_lump_rpl.c
  17. 1 1
      data_lump_rpl.h
  18. 1 1
      db/db.c
  19. 2 2
      db/db.h
  20. 1 1
      db/db_con.h
  21. 9 9
      db/db_fifo.c
  22. 1 1
      db/db_fifo.h
  23. 1 1
      db/db_key.h
  24. 1 1
      db/db_op.h
  25. 1 1
      db/db_res.h
  26. 1 1
      db/db_row.h
  27. 1 1
      db/db_val.h
  28. 2 2
      db/example/dbexample.c
  29. 2 2
      debian/copyright
  30. 9 9
      doc/ser_radius/ser_radius.sgml
  31. 5 5
      doc/serdev/locking.sgml
  32. 5 5
      doc/serdev/modiface.sgml
  33. 12 12
      doc/serdev/serdev.sgml
  34. 3 3
      doc/serfaq/db_faq.sgml
  35. 1 1
      doc/serfaq/licensing_faq.sgml
  36. 12 12
      doc/serfaq/serfaq.sgml
  37. 1 1
      doc/serfaq/serweb_faq.sgml
  38. 9 9
      doc/serhowto/ser-howto.sgml
  39. 10 10
      doc/seruser/apps.sgml
  40. 1 1
      doc/seruser/db_fifo.sgml
  41. 2 2
      doc/seruser/general.sgml
  42. 10 10
      doc/seruser/intro.sgml
  43. 19 19
      doc/seruser/operation.sgml
  44. 2 2
      doc/seruser/otherapps.sgml
  45. 5 5
      doc/seruser/reference.sgml
  46. 5 5
      doc/seruser/voicemail.sgml
  47. 8 8
      doc/sip/sip_introduction.sgml
  48. 1 1
      dprint.c
  49. 1 1
      dprint.h
  50. 1 1
      dset.c
  51. 9 9
      error.c
  52. 6 6
      error.h
  53. 4 4
      fastlock.h
  54. 4 4
      fifo_server.c
  55. 3 3
      fifo_server.h
  56. 2 2
      flags.c
  57. 1 1
      flags.h
  58. 4 4
      forward.c
  59. 2 2
      forward.h
  60. 1 1
      globals.h
  61. 1 1
      hash_func.c
  62. 1 1
      hash_func.h
  63. 3 3
      ip_addr.c
  64. 6 6
      ip_addr.h
  65. 1 1
      lock_alloc.h
  66. 1 1
      lock_ops.h
  67. 2 2
      locking.h
  68. 3 3
      lump_struct.h
  69. 18 18
      main.c
  70. 1 1
      md5utils.h
  71. 1 1
      modparam.c
  72. 1 1
      modparam.h
  73. 7 7
      msg_translator.c
  74. 1 1
      msg_translator.h
  75. 1 1
      name_alias.h
  76. 1 1
      pass_fd.c
  77. 1 1
      pass_fd.h
  78. 1 1
      proxy.c
  79. 3 3
      proxy.h
  80. 2 2
      pt.h
  81. 2 2
      re.c
  82. 1 1
      re.h
  83. 5 5
      receive.c
  84. 1 1
      receive.h
  85. 1 1
      resolve.c
  86. 1 1
      resolve.h
  87. 1 1
      route.c
  88. 1 1
      route.h
  89. 1 1
      route_struct.c
  90. 1 1
      route_struct.h
  91. 1 1
      script_cb.c
  92. 1 1
      script_cb.h
  93. 3 3
      socket_info.c
  94. 3 3
      socket_info.h
  95. 1 1
      sr_module.c
  96. 3 3
      sr_module.h
  97. 2 2
      stats.c
  98. 1 1
      stats.h
  99. 1 1
      str.h
  100. 2 2
      tags.h

+ 4 - 4
ISSUES

@@ -23,7 +23,7 @@ Test:  compile test/re_test.c (gcc re_test.c -o re_test) and try
         echo -e "From:\nTo:" |./re_test -v '^From'
        if your system is ok you should see 1 match, if not (and 
        your libc has this bug), 0 matches.
-Workarround: ?upgrade?
+Workaround: ?upgrade?
 --------------------------------------------------------------
 Desc: textops REs match newline in constructs such [^@]
 Ser version: all 
@@ -33,7 +33,7 @@ Test:  compile test/re_test.c (gcc re_test.c -o re_test) and try
         echo -e "From:\nTo:" |./re_test -v '[^.]+'
        if your system is ok you should see 2 matches, if not (and 
        your libc has this bug), only 1 match.
-Workarround: - use an older or fixed libc6 or avoid [^something]
+Workaround: - use an older or fixed libc6 or avoid [^something]
              - rewrite [^something] as [^something[:cntrl:]]
 ---------------------------------------------------------------
 Desc: memory leaks occurs if SIP requests are processed in which
@@ -183,7 +183,7 @@ CVS status: fixed
 ---------------------------------------------------------------
 Desc: serctl add ... returns "user exists"
 BugId: 374
-Workaround: either use serweb for addding new users or update
+Workaround: either use serweb for adding new users or update
       the serctl utility from CVS; the fixed version is at
       http://www.iptel.org/ser/issues/374/
 Bug reason: phplib_id ignored in sc
@@ -218,7 +218,7 @@ Cvs status: not fixed
 
 ----------------------------------------------------------------
 Desc:  ser won't run on linux kernels <2.4  (fails with EINVAL when
-      intializing the shared memory)
+      initializing the shared memory)
 BugId:  n/a
 Ser version: 0.8.8, 0.8.9, 0.8.10 
 Workaround: Upgrade to a 2.4.* kernel (older kernels don't support shared 

+ 1 - 1
Makefile

@@ -47,7 +47,7 @@ exclude_modules?= 			cpl ext extcmd \
 							postgres snmp \
 							im \
 							jabber \
-							cpl-c pa \
+							cpl-c \
 							auth_radius group_radius uri_radius 
 # always exclude the CVS dir
 override exclude_modules+= CVS $(skip_modules)

+ 1 - 1
README

@@ -10,7 +10,7 @@ I.   About SIP Express Router (ser)
 II.  Feature List
 III. About iptel.org
 IV.  Obtaining Help
-V.   Contact, Licencing and More Information
+V.   Contact, Licensing and More Information
 
 
  SIP Express Router (SER) is an industrial-strength, free VoIP 

+ 2 - 2
action.c

@@ -1,7 +1,7 @@
 /*
  * $Id$
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *
@@ -93,7 +93,7 @@ int do_action(struct action* a, struct sip_msg* msg)
 	int proto;
 
 	/* reset the value of error to E_UNSPEC so avoid unknowledgable
-	   functions to return with errror (status<0) and not setting it
+	   functions to return with error (status<0) and not setting it
 	   leaving there previous error; cache the previous value though
 	   for functions which want to process it */
 	prev_ser_error=ser_error;

+ 1 - 1
action.h

@@ -2,7 +2,7 @@
  * $Id$
  *
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 1 - 1
ccver.sh

@@ -76,7 +76,7 @@ if [ -z "$NAME" ]
 then
 	NAME="unknown"
 	VER="unknown"
-	MAJOR_VER="unkown"
+	MAJOR_VER="unknown"
 fi
 
 

+ 2 - 2
cfg.lex

@@ -3,7 +3,7 @@
  *
  * scanner for cfg files
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *
@@ -129,7 +129,7 @@ MAX_LEN			"max_len"
 
 /* condition keywords */
 METHOD	method
-/* hack -- the second element in first line is referrable
+/* hack -- the second element in first line is referable
    as either uri or status; it only would makes sense to
    call it "uri" from route{} and status from onreply_route{}
 */

+ 3 - 3
cfg.y

@@ -3,7 +3,7 @@
  *
  *  cfg grammar
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *
@@ -325,7 +325,7 @@ statement:	assign_stm
 listen_id:	ip			{	tmp=ip_addr2a($1);
 		 					if(tmp==0){
 								LOG(L_CRIT, "ERROR: cfg. parser: bad ip "
-										"addresss.\n");
+										"address.\n");
 								$$=0;
 							}else{
 								$$=pkg_malloc(strlen(tmp)+1);
@@ -1483,7 +1483,7 @@ cmd:		FORWARD LPAREN host RPAREN	{ $$=mk_action(	FORWARD_T,
                 | APPEND_BRANCH LPAREN STRING COMMA STRING RPAREN { 
 		    {   qvalue_t q;
 			if (str2q(&q, $5, strlen($5)) < 0) {
-				yyerror("bad arqument, q value expected");
+				yyerror("bad argument, q value expected");
 			}
 			$$=mk_action(APPEND_BRANCH_T, STRING_ST, NUMBER_ST, $3, (void *)q); } 
 		}

+ 1 - 1
comp_defs.h

@@ -1,7 +1,7 @@
 /*
  * $Id$
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 2 - 2
config.h

@@ -1,7 +1,7 @@
 /*
  *  $Id$
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *
@@ -155,7 +155,7 @@
 /* max length of the text of fifo 'print' command */
 #define MAX_PRINT_TEXT 256
 
-/* maximum length of Contact heder field in redirection replies */
+/* maximum length of Contact header field in redirection replies */
 #define MAX_REDIRECTION_LEN 512
 
 /* used by FIFO statistics in module to terminate line;

+ 1 - 1
crc.c

@@ -3,7 +3,7 @@
  *
  *  Crc - 32 + 16 BIT ANSI X3.66 + CCITT CRC checksum files
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 1 - 1
daemonize.c

@@ -1,7 +1,7 @@
 /*
  * $Id$
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 1 - 1
daemonize.h

@@ -1,7 +1,7 @@
 /*
  * $Id$
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 5 - 5
data_lump.c

@@ -1,7 +1,7 @@
 /* $Id$
  *
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *
@@ -28,7 +28,7 @@
  * --------
  *  2003-01-19  support for duplication lump lists added (jiri)
  *  2003-03-31  added subst lumps --they expand in ip addr, port a.s.o (andrei)
- *  2003-04-01  added conditional lump suport functions (andrei)
+ *  2003-04-01  added conditional lump support functions (andrei)
  *  2003-10-20  anchor_lump & del_lump will automatically choose the lump list
  *              based on  msg->eoh comparisons (andrei)
  *  2003-10-28  added extra checks (paranoia) for {anchor,del}_lump (andrei)
@@ -257,7 +257,7 @@ struct lump* insert_cond_lump_before(	struct lump* before,
 
 
 /* removes an already existing header/data lump */
-/* WARNING: thist function adds the lump either to the msg->add_rm or
+/* WARNING: this function adds the lump either to the msg->add_rm or
  * msg->body_lumps list, depending on the offset being greater than msg->eoh,
  * so msg->eoh must be parsed (parse with HDR_EOH) if you think your lump
  *  might affect the body!! */
@@ -313,7 +313,7 @@ struct lump* del_lump(struct sip_msg* msg, int offset, int len, int type)
 
 
 /* add an anchor
- * WARNING: thist function adds the lump either to the msg->add_rm or
+ * WARNING: this function adds the lump either to the msg->add_rm or
  * msg->body_lumps list, depending on the offset being greater than msg->eoh,
  * so msg->eoh must be parsed (parse with HDR_EOH) if you think your lump
  *  might affect the body!! */
@@ -513,7 +513,7 @@ void free_duped_lump_list(struct lump* l)
 			foo=r; r=r->before;
 			/* (+): if a new item was introduced to the shallow-ly
 			 * duped list, remove it completely, preserve it
-			 * othewise (it is still refered by original list)
+			 * otherwise (it is still referred by original list)
 			 */
 			if (foo->flags!=LUMPFLAG_DUPED) 
 					free_lump(foo);

+ 1 - 1
data_lump.h

@@ -3,7 +3,7 @@
  *
  * adding/removing headers or any other data chunk from a message
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 2 - 2
data_lump_rpl.c

@@ -2,7 +2,7 @@
  * $Id$
  *
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *
@@ -45,7 +45,7 @@ struct lump_rpl* add_lump_rpl(struct sip_msg *msg, char *s, int len, int flags)
 	struct lump_rpl *lump = 0;
 	struct lump_rpl *foo;
 
-	/* some checkings */
+	/* some checking */
 	if ( (flags&(LUMP_RPL_HDR|LUMP_RPL_BODY))==(LUMP_RPL_HDR|LUMP_RPL_BODY)
 	|| (flags&(LUMP_RPL_HDR|LUMP_RPL_BODY))==0 || (flags&LUMP_RPL_SHMEM) ) {
 		LOG(L_ERR,"ERROR:add_lump_rpl: bad flags combination (%d)!\n",flags);

+ 1 - 1
data_lump_rpl.h

@@ -2,7 +2,7 @@
  * $Id$
  *
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 1 - 1
db/db.c

@@ -1,7 +1,7 @@
 /*
  * $Id$
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 2 - 2
db/db.h

@@ -1,7 +1,7 @@
 /*
  * $Id$
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *
@@ -135,7 +135,7 @@ typedef int (*db_update_f) (db_con_t* _h, db_key_t* _k, db_op_t* _o, db_val_t* _
 
 typedef struct db_func {
 	db_use_table_f   use_table;    /* Specify table name */
-	db_init_f        init;         /* Initialize dabase connection */
+	db_init_f        init;         /* Initialize database connection */
 	db_close_f       close;        /* Close database connection */
 	db_query_f       query;        /* query a table */
 	db_raw_query_f   raw_query;    /* Raw query - SQL */

+ 1 - 1
db/db_con.h

@@ -1,7 +1,7 @@
 /* 
  * $Id$ 
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 9 - 9
db/db_fifo.c

@@ -1,7 +1,7 @@
 /*
  * $Id$
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *
@@ -219,7 +219,7 @@ static inline int parse_db_value( str *s, db_val_t *val, str **ret_s)
 		s->len -= n+2;
 	}
 
-	/* string has at least one caracter */
+	/* string has at least one character */
 	DBG("DEBUG:parse_db_value: value id <%.*s>\n",s->len,s->s);
 	if ( s->s[0]=='\"' && s->s[s->len-1]=='\"' && s->len!=1) {
 		/* can be DB_STR, DB_STRING, DB_BLOB */
@@ -265,11 +265,11 @@ static inline int parse_db_value( str *s, db_val_t *val, str **ret_s)
 		td.tm_yday = 0;
 		/* get year */
 		get_int( p, end, td.tm_year, n, "Missing year in date format",error);
-		td.tm_year -= 1900; /* corection */
+		td.tm_year -= 1900; /* correction */
 		if (*(p++)!='-') goto date_error;
 		/* get month */
 		get_int( p, end, td.tm_mon, n, "Missing month in date format",error);
-		td.tm_mon --; /* corection */
+		td.tm_mon --; /* correction */
 		if (*(p++)!='-') goto date_error;
 		/* get day */
 		get_int( p, end, td.tm_mday, n, "Missing day in date format",error);
@@ -369,7 +369,7 @@ static inline int get_avps( FILE *fifo , db_key_t *keys, db_op_t *ops,
 		/* read a new line */
 		line.s = buf;
 		if (read_line( line.s, MAX_SIZE_LINE, fifo, &line.len)!=1) {
-			double_log("Comamnd end when reading AVPs - missing . at after "
+			double_log("Command end when reading AVPs - missing . at after "
 				"AVP list?");
 			goto error;
 		}
@@ -650,7 +650,7 @@ int db_fifo( FILE *fifo, char *response_file )
 	nr2 = 0;
 
 	if (db_cmd==SELECT_CMD) {
-		/* read the colums to be fetched */
+		/* read the columns to be fetched */
 		if ( get_keys( fifo, keys1, &nr1, MAX_ARRAY)!=0 )
 			goto error;
 	} else if (db_cmd==UPDATE_CMD) {
@@ -666,7 +666,7 @@ int db_fifo( FILE *fifo, char *response_file )
 		/* all the operators must be '=' */
 		for(n=0;n<nr1;n++) {
 			if (ops1[n][0]!='=' || ops1[n][1]!='\0') {
-				double_log("Invalid operator in updated fileds (expected = )");
+				double_log("Invalid operator in updated fields (expected = )");
 				goto error1;
 			}
 		}/*end for*/
@@ -740,7 +740,7 @@ int db_fifo( FILE *fifo, char *response_file )
 			/* all the operators must be '=' in the first avp list */
 			for(n=0;n<nr1;n++) {
 				if (ops1[n][0]!='=' || ops1[n][1]!='\0') {
-					double_log("Invalid operator in updated fileds "
+					double_log("Invalid operator in updated fields "
 						"(expected = )");
 					goto error;
 				}
@@ -770,7 +770,7 @@ int db_fifo( FILE *fifo, char *response_file )
 			/* all the operators must be '=' */
 			for(n=0;n<nr2;n++) {
 				if (ops2[n][0]!='=' || ops2[n][1]!='\0') {
-					double_log("Invalid operator in inserted fileds "
+					double_log("Invalid operator in inserted fields "
 						"(expected = )");
 					goto error;
 				}

+ 1 - 1
db/db_fifo.h

@@ -1,7 +1,7 @@
 /*
  * $Id$
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 1 - 1
db/db_key.h

@@ -1,7 +1,7 @@
 /* 
  * $Id$ 
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 1 - 1
db/db_op.h

@@ -1,7 +1,7 @@
 /* 
  * $Id$ 
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 1 - 1
db/db_res.h

@@ -1,7 +1,7 @@
 /* 
  * $Id$ 
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 1 - 1
db/db_row.h

@@ -1,7 +1,7 @@
 /* 
  * $Id$ 
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 1 - 1
db/db_val.h

@@ -1,7 +1,7 @@
 /* 
  * $Id$ 
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 2 - 2
db/example/dbexample.c

@@ -1,7 +1,7 @@
 /*
  * $Id$
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *
@@ -39,7 +39,7 @@
 
 
 /*
- * Dabase module client example
+ * Database module client example
  */
 
 

+ 2 - 2
debian/copyright

@@ -6,11 +6,11 @@ It was downloaded from http://iptel.org/ser.
 Upstream Authors: Andrei Pelinescu-Onciul
 <[email protected]>, Bogdan Iancu
 <[email protected]>, Daniel-Constantin Mierla, Jan Janak
-<[email protected]>, Jiri Kuthan <[email protected]>, Juha Heinanen, Maxim
+<[email protected]>, Jiri Kuthan <[email protected]>, Juha Heinanen, Maxim
 Sobolev, Miklos Tirpak, Nils Ohlmeier, Ramona-Elena Modroiu, Raphael Coeffic,
 Ricardo Baratto, Stelios Sidiroglou-Douskos  (see AUTHORS file for details)
 
-This software is copyright (c) 2002-2003 by Fhg Fokus
+This software is copyright (c) 2002-2003 by FhG Fokus
 
 You are free to distribute this software under the terms of
 the GNU General Public License.

+ 9 - 9
doc/ser_radius/ser_radius.sgml

@@ -40,16 +40,16 @@
 	<simpara>
 	    &ser can be configured to use &rad; server for authentication, accounting, and group
 	    membership checking. Since configuration of &rad; seems to be a common source of
-	    problems, we decided to put together this howto.
+	    problems, we decided to put together this HOWTO.
 	</simpara>
 	<simpara>
-	    The howto covers installation and configuration of FreeRADIUS server only. There are
+	    The HOWTO covers installation and configuration of FreeRADIUS server only. There are
 	    also other &rad; servers available and as long as they support digest authentication,
 	    they should work too. Any volunteers willing to describe setup of other &rad; servers
 	    are encouraged to contact the author.
 	</simpara>
 	<section>
-	    <title>Prerequisities</title>
+	    <title>Prerequisites</title>
 	    <simpara>
 		To setup &rad; support in &ser; you will need the following:
 	    </simpara>
@@ -57,7 +57,7 @@
 		<listitem>
 		    <simpara>
 			FreeRADIUS server, you can get it from <ulink
-			    url="http://www.freeradius.org">FreeRADIUS website</ulink>. The howto
+			    url="http://www.freeradius.org">FreeRADIUS website</ulink>. The HOWTO
 			    describes installation and setup of release 0.9.1.
 		    </simpara>
 		</listitem>
@@ -134,7 +134,7 @@ root@localhost:/usr/local/src/radiusclient-0.3.2# make install
 	    <simpara>
 		The main configuration file of the library is <filename
 		    moreinfo="none">/usr/local/etc/radiusclient/radiusclient.conf</filename>, open
-		    the file in your favourite text editor and find lines containing the following:
+		    the file in your favorite text editor and find lines containing the following:
 	    </simpara>
 	    <programlisting format="linespecific">
 authserver      localhost
@@ -324,7 +324,7 @@ test Auth-Type := Digest, User-Password == "test"
 	    <simpara>
 		The basic configuration of FreeRADIUS server is done it now we are going to test if
 		it really works. Start the server with parameter -X. That will cause the server to
-		stay in the foreground (it will not turn into daemon) and produce a lot of debuging
+		stay in the foreground (it will not turn into daemon) and produce a lot of debugging
 		information on the standard output:
 	    </simpara>
 	    <screen format="linespecific">
@@ -459,7 +459,7 @@ [email protected] Sip-Group == "pstn", Auth-Type := Accept
 	<title>&ser; Configuration</title>
 	<simpara>
 	    We will describe installation from sources here. If you use binary packages then there
-	    is an additional package containg &rad; related modules. You will need to install the
+	    is an additional package containing &rad; related modules. You will need to install the
 	    package.
 	</simpara>
 	<warning>
@@ -471,7 +471,7 @@ [email protected] Sip-Group == "pstn", Auth-Type := Accept
 	    <simpara>
 		If you need accounting over &rad; then you will have to compile &rad;-enabled
 		version of acc module from the sources. This will be fixed in one of future
-		releases, we apologize for any incovenience.
+		releases, we apologize for any inconvenience.
 	    </simpara>
 	</warning>
 	<simpara>
@@ -561,7 +561,7 @@ libradiusclient.so.0: cannot open shared object file: No such file or directory
 		<question>
 		    <simpara>
 			I configured everything as described in this HOWTO, but I get the following
-			message from radiusclient librarary <quote> check_radius_reply: received
+			message from radiusclient library <quote> check_radius_reply: received
 			invalid reply digest from RADIUS server</quote>. What does that mean ?
 		    </simpara>
 		</question>

+ 5 - 5
doc/serdev/locking.sgml

@@ -20,10 +20,10 @@
 		    <simpara>
 			Fast inline assembly locks, defined in <filename
 			moreinfo="none">fast_lock.h</filename>. They are currently available for
-			x86, sparc64, strongarm (amv4l) and ppc (external untested contributed
+			x86, sparc64, strong-arm (amv4l) and ppc (external untested contributed
 			code). In general if the assembly code exists for a given architecture and
 			the compiler knows inline assembly (for example sun cc does not) FAST_LOCK
-			is prefered. The main advantage of using FAST_LOCK is very low memory
+			is preferred. The main advantage of using FAST_LOCK is very low memory
 			overhead and extremely fast lock/unlock operations (like 20 times faster
 			then SYSV semaphores on linux & 40 times on solaris). The only thing that
 			comes close to them are pthread mutexes (which are about 3-4 times slower).
@@ -42,7 +42,7 @@
 			Uses posix semaphores (<function
 			moreinfo="none">sem_wait</function>/<function
 			moreinfo="none">sem_post</function>). They are slower then the previous
-			methods but still way faster then SYSV sempahores. Unfortunately they also
+			methods but still way faster then SYSV semaphores. Unfortunately they also
 			do not work on all the systems (e.g. linux).
 		    </simpara>
 		</listitem>
@@ -50,7 +50,7 @@
 		    <simpara><emphasis>SYSV_SEM</emphasis></simpara>
 		    <simpara>
 			This is the most portable but also the slowest locking method. Another
-			problem is that the number of semaphores that can be alocated by a process
+			problem is that the number of semaphores that can be allocated by a process
 			is limited. One also has to free them before exiting.
 		    </simpara>
 		</listitem>
@@ -140,7 +140,7 @@ if (lock_init(&amp;bar->lock)==0){
 		    free the lock shared memory part. Think of sysv <command
 		    moreinfo="none">rmid</command>.  Please don't forget to call this function, or
 		    you can leave allocated resources in some cases (e.g sysv semaphores). Be
-		    carefull to call it in your module destroy function if you use any global module
+		    careful to call it in your module destroy function if you use any global module
 		    locks.
 		</simpara>
 		<simpara>

+ 5 - 5
doc/serdev/modiface.sgml

@@ -15,7 +15,7 @@
 		footprint. Modules can be also provided by 3rd party developers and distributed
 		separately from the main server. Most of the functionality that &ser; provides is
 		available through modules, the core itself contains only minimum set of functions
-		that is essential for proper server's behaviour or that is needed by all modules.
+		that is essential for proper server's behavior or that is needed by all modules.
 	    </para>
 	    <para>
 		This chapter provides detailed information on module interface of &ser;, which is
@@ -139,7 +139,7 @@ typedef int (*cmd_function)(struct sip_msg*, char*, char*);
 		    </simpara>
 		    <simpara>
 			If you provide pointer to a fixup function in this field, the fixup function
-			will be called for each occurence of the exported function in the
+			will be called for each occurrence of the exported function in the
 			configuration script.
 		    </simpara>
 		    <simpara>
@@ -198,7 +198,7 @@ typedef int (*cmd_function)(struct sip_msg*, char*, char*);
 	    <abstract>
 		<simpara>
 		    Each module can provide zero or more parameters, which can affect the module's
-		    behaviour. This section gives a detailed description of structures describing
+		    behavior. This section gives a detailed description of structures describing
 		    exported parameters and passing this information to the core through the module
 		    interface.
 		</simpara>
@@ -230,7 +230,7 @@ typedef struct param_export_ param_export_t;
 		<listitem>
 		    <simpara><varname>char* name</varname></simpara>
 		    <simpara>
-			This is null-terminated name of the parametes as it will be used in the
+			This is null-terminated name of the parameters as it will be used in the
 			scripts. Usually this is the same as the name of the variable holding the
 			value.
 		    </simpara>
@@ -314,7 +314,7 @@ struct module_exports{
     char* name;                     /* null terminated module name */
     cmd_export_t* cmds;             /* null terminated array of the exported commands */
     param_export_t* params;         /* null terminated array of the exported module parameters */
-    init_function init_f;           /* Initilization function */
+    init_function init_f;           /* Initialization function */
     response_function response_f;   /* function used for responses, returns yes or no; can be null */
     destroy_function destroy_f;     /* function called when the module should be "destroyed", e.g: on ser exit; can be null */
     onbreak_function onbreak_f;

+ 12 - 12
doc/serdev/serdev.sgml

@@ -112,7 +112,7 @@
 	<section id="parser-init">
 	    <title>Parser Initialization</title>
 	    <para>
-		<acronym>SER</acronym> contains a fast 32-bit parser. The parser uses precalculated hash table that needs to be
+		<acronym>SER</acronym> contains a fast 32-bit parser. The parser uses pre-calculated hash table that needs to be
 		filled in upon startup. The initialization is done here, there are two functions that do the
 		job. Function <function moreinfo="none">init_hfname_parser</function> initializes hash table
 		in header field name parser and function <function moreinfo="none">init_digest_parser</function>
@@ -595,7 +595,7 @@ module_stm = "loadmodule" STRING
 		be called every time a message is processed and that is not necessary.
 	    </para>
 	    <para>
-		Instead of that the length of the string parameter could be precalculated upon server startup, saved
+		Instead of that the length of the string parameter could be pre-calculated upon server startup, saved
 		and reused later. The processing of the request will be faster because 
 		<function moreinfo="none">append_hf</function> doesn't need
 		to call <function moreinfo="none">strlen</function> every time, I can just reuse the saved value.
@@ -2342,7 +2342,7 @@ struct sip_msg {
 		    to lower case first and then compare. Since converting byte by byte would slow down the parser a lot, we
 		    have implemented a hash table, that can again convert 4 bytes at once. Since set of keys that need to be
 		    converted to lowercase is known (the set consists of all possible 4-byte parts of all recognized header
-		    field names) we can precalculate size of the hash table to be synonym-less. That will simplify (and speed
+		    field names) we can pre-calculate size of the hash table to be synonym-less. That will simplify (and speed
 		    up) the lookup a lot. The hash table must be initialized upon the server startup (function
 		    <function moreinfo="none">init_hfname_parser</function>).
 		</para>
@@ -4188,7 +4188,7 @@ typedef struct db_con {
 		<para>
 		    Each cell in a database table can be of a different type. To distinguish
 		    among these types, the <type>db_type_t</type> enumeration is used. Every 
-		    value of the enumeration represents one datatype that is recognized by the 
+		    value of the enumeration represents one data-type that is recognized by the 
 		    database <acronym>API</acronym>. This enumeration is used in conjunction 
 		    with <type>db_type_t</type>. For more information, see the next section.
 		</para>
@@ -4210,7 +4210,7 @@ typedef enum {
 	    <section id="type-db-val">
 		<title>Type <type>db_val_t</type></title>
 		<para>
-		    This structure represents a value in the database. Several datatypes are
+		    This structure represents a value in the database. Several data-types are
 		    recognized and converted by the database <acronym>API</acronym>:
 		    <itemizedlist>
 			<listitem>
@@ -4244,7 +4244,7 @@ typedef enum {
 			    </para>
 			</listitem>
 		    </itemizedlist>
-		    These datatypes are automatically recognized, converted from internal database
+		    These data-types are automatically recognized, converted from internal database
 		    representation and stored in a variable of corresponding type.
 		</para>
 		<programlisting format="linespecific">
@@ -5165,7 +5165,7 @@ int n = RES_ROW_N(res);
 			<para>
 			    <varname>calculate_ha1</varname> - If set to true, auth module assumes that 
 			    <quote>password_column</quote> contains plaintext passwords and ha1 string will be calculated
-			    at runtime. If set to false, "password_column" must contain precalculated ha1 strings.
+			    at runtime. If set to false, "password_column" must contain pre-calculated ha1 strings.
 			</para>
 			<para>
 			    Type: <type>integer</type>
@@ -5983,7 +5983,7 @@ end of body
 			    <varname>wt_timer</varname> - Time for which a transaction stays in memory to absorb
 			    delayed messages after it completed; also, when this
 			    timer hits, retransmission of local cancels is stopped
-			    (a puristic but complex behaviour would be not to enter
+			    (a puristic but complex behavior would be not to enter
 			    wait state until local branches are finished by a final
 			    reply or FR timer -- we simplified)
 			</para>
@@ -6035,9 +6035,9 @@ end of body
 		    <listitem>
 			<para>
 			    <varname>noisy_ctimer</varname> - If set, on FR timer INVITE transactions will be 
-			    explicitly cancelled if possible, silently dropped
+			    explicitly canceled if possible, silently dropped
 			    otherwise; preferably, it is turned off to allow
-			    very long ringing; this behaviour is overridden if
+			    very long ringing; this behavior is overridden if
 			    a request is forked, or some functionality explicitly
 			    turned it off for a transaction (like acc does to avoid
 			    unaccounted transactions due to expired timer).
@@ -6147,7 +6147,7 @@ if (!t_relay()) {
 			    set of command which are usable within reply_routes is
 			    strictly limited to rewriting URI, initiating new branches,
 			    logging, and sending 'unsafe' replies (t_reply_unsafe). Any 
-			    other commands may result in unpredictable behaviour and 
+			    other commands may result in unpredictable behavior and 
 			    possible server failure.
 			    Note that whenever reply_route is entered, uri is reset to
 			    value which it had on relaying. If it temporarily changed
@@ -6584,7 +6584,7 @@ if (t_newtran()) {
 			<para>
 			    <varname>db_mode</varname> - The usrloc module can utilize database for persistent
 			    contact storage. If you use database, your contacts
-			    will survive machine restarts or sw crashes. The
+			    will survive machine restarts or SW crashes. The
 			    disadvantage is that accessing database can be very
 			    time consuming. Therefore, usrloc module implements
 			    three database accessing modes:

+ 3 - 3
doc/serfaq/db_faq.sgml

@@ -61,7 +61,7 @@
 	    <answer>
 		<simpara>
 		    Many modules need the database. Authentication modules retrieve users'
-		    crecentials from the database, user location module can be configured to store
+		    credentials from the database, user location module can be configured to store
 		    registered bindings into the database, accounting module can use database to
 		    store CDR and so on.
 		</simpara>
@@ -93,7 +93,7 @@
 		    well with this database.
 		</simpara>
 		<simpara>
-		    Another option is postgres support which was donated by Greg Faustak. The module
+		    Another option is postgres support which was donated by Greg Fausak. The module
 		    still new and not that mature (read proven) yet. People using the module
 		    reported that it worked well.
 		</simpara>
@@ -101,7 +101,7 @@
 		    Last option is dbtext module which uses plaintext files to store the data. This
 		    module is somewhat experimental and shouldn't be used for any serious
 		    deployment. The module is quite slow, but it can fit well into small
-		    instalations containing only a couple of users or demos where you need to change
+		    installations containing only a couple of users or demos where you need to change
 		    the content of the database often by hand.
 		</simpara>
 	    </answer>

+ 1 - 1
doc/serfaq/licensing_faq.sgml

@@ -6,7 +6,7 @@
 	<qandaentry>
 	    <question>
 		<simpara>
-		    Is the &sername; (&ser;) free ? Or do we need to pay ? Becaure my boss worry
+		    Is the &sername; (&ser;) free ? Or do we need to pay ? Because my boss worry
 		    about that, please help me.
 		</simpara>
 	    </question>

+ 12 - 12
doc/serfaq/serfaq.sgml

@@ -49,7 +49,7 @@
 		    <simpara>
 			Not easily. &ser; has built-in some functions that allow to use it as user
 			agent, but our primary goal is to develop a server so this is without
-			guarantee and can even dissapear in future versions.
+			guarantee and can even disappear in future versions.
 		    </simpara>
 		</answer>
 	    </qandaentry>
@@ -62,7 +62,7 @@
 		<answer>
 		    <simpara>
 			&ser;'s built-in location server uses in-<acronym>RAM</acronym> database for
-			high performance and optionally MySQL for persistency. More database
+			high performance and optionally MySQL for persistence. More database
 			protocols may be supplied on contractual basis. As far as I know,
 			<acronym>DNS</acronym> is not used in the industry for user location.
 		    </simpara>
@@ -94,7 +94,7 @@
 		    </simpara>
 		    <simpara>
 			A B2BUA acts merely as connection of two or more user agents which are
-			connected through some means. B2BUAs keep some state (usualy some structures
+			connected through some means. B2BUAs keep some state (usually some structures
 			in the memory) during the whole call.
 		    </simpara>
 		    <para>
@@ -313,13 +313,13 @@
 	    <qandaentry>
 		<question>
 		    <simpara>
-			Is it necesarry to have a <acronym>DNS SVR</acronym> Resource Record, as
+			Is it necessary to have a <acronym>DNS SVR</acronym> Resource Record, as
 			mentioned in the ser-Howto guide for connecting to &ser; ?
 		    </simpara>
 		</question>
 		<answer>
 		    <simpara>
-			No. It's nice to have it, but you can work arround it setting a normal A
+			No. It's nice to have it, but you can work around it setting a normal A
 			record for your domain. The <acronym>SRV</acronym> lookup will fall back to
 			normal A lookup.
 		    </simpara>
@@ -340,7 +340,7 @@
 	    <qandaentry>
 		<question>
 		    <simpara>
-			Are you going to provide intergration support from &sip; to H.323 and vice
+			Are you going to provide integration support from &sip; to H.323 and vice
 			versa ?
 		    </simpara>
 		</question>
@@ -456,7 +456,7 @@
 	    <qandaentry>
 		<question>
 		    <simpara>
-			Can you send me detail for me to sign up for the comercial program. I would
+			Can you send me detail for me to sign up for the commercial program. I would
 			also like detail on your levels of support you offer (ie...paid support)?
 		    </simpara>
 		</question>
@@ -548,7 +548,7 @@
 	    <qandaentry>
 		<question>
 		    <simpara>
-			Is there any way to change the defaul log file to a special SER.log file ?
+			Is there any way to change the default log file to a special SER.log file ?
 		    </simpara>
 		</question>
 		<answer>
@@ -616,7 +616,7 @@ ser -E     2>/tmp/ser.log
 	    <qandaentry>
 		<question>
 		    <simpara>
-			I would like know if &ser; support also the trasmission protocol
+			I would like know if &ser; support also the transmission protocol
 			<acronym>TCP</acronym>, or <acronym>TLS</acronym>.
 		    </simpara>
 		</question>
@@ -654,7 +654,7 @@ ser -E     2>/tmp/ser.log
 			error occurs:
 		    </simpara>
 		    <simpara>
-			<quote>ERROR: Your message was not sent. You do not have permision to use the
+			<quote>ERROR: Your message was not sent. You do not have permissions to use the
 			    gateway.</quote>
 		    </simpara>
 		    <simpara>
@@ -1206,7 +1206,7 @@ out_uri=sip:addaline.com via_cnt==1".
 	    <qandaentry>
 		<question>
 		    <simpara>
-			It is posible to process the voicemail request on the same instance I use to
+			It is possible to process the voicemail request on the same instance I use to
 			forward/register users ?
 		    </simpara>
 		</question>
@@ -1243,7 +1243,7 @@ out_uri=sip:addaline.com via_cnt==1".
 	    <qandaentry>
 		<question>
 		    <simpara>
-			What is symetric signalling ?
+			What is symmetric signaling ?
 		    </simpara>
 		</question>
 		<answer>

+ 1 - 1
doc/serfaq/serweb_faq.sgml

@@ -45,7 +45,7 @@
 	</question>
 	    <answer>
 		<simpara>
-		    Dan Austin's howto (see &ser; webpage) is probably the currently most extensive
+		    Dan Austin's HOWTO (see &ser; webpage) is probably the currently most extensive
 		    documentation available.
 		</simpara>
 	    </answer>

+ 9 - 9
doc/serhowto/ser-howto.sgml

@@ -8,7 +8,7 @@
 
 <book>
     <bookinfo>
-	<title>&ser; HowTo</title>
+	<title>&ser; HOWTO</title>
 	<authorgroup>
 	    <author>
 		<firstname>Dan</firstname>
@@ -519,7 +519,7 @@ modparam ("usrloc", "db_mode", 2)
 		</itemizedlist>
 	    </para>
 	    <para>
-		To enable digest authentication we additionaly need to uncomment the following two lines:
+		To enable digest authentication we additionally need to uncomment the following two lines:
 	    </para>
 	    <screen format="linespecific">
 loadmodule "/usr/lib/ser/modules/auth.so"
@@ -580,7 +580,7 @@ if (!www_authorize("mydomain.com", "subscriber")) {
 		<quote>heslo</quote>
 	    </para>
 	    <para>
-		To make JoeUser an administrator, we need to logon to MySQL and modify the database.
+		To make JoeUser an administrator, we need to login to MySQL and modify the database.
 	    </para>
 	    <para>
 		<screen format="linespecific">
@@ -598,7 +598,7 @@ mysql&gt; select * from subscriber;
 		The third from last field shows that Joe has been assigned admin privileges.
 	    </para>
 	    <para>
-		At this point Joe can logon to our server, but since he is the only user, there is
+		At this point Joe can login to our server, but since he is the only user, there is
 		not much he can do. We can now add additional users using the serctl script, or now
 		is a good time to look at installing serweb, which will allow users to subscribe to
 		our service.
@@ -631,12 +631,12 @@ usage:
            * usrloc *
  ul show [&lt;username&gt;]................ show in-RAM online users
  ul rm &lt;username&gt; ................... delete user's UsrLoc entries
- ul add &lt;username&gt; &lt;uri&gt; ............ introduce a permanent UrLoc entry
+ ul add &lt;username&gt; &lt;uri&gt; ............ introduce a permanent UsrLoc entry
  showdb [&lt;username&gt;] ................ show online users flushed in DB
 
 		   * control and diagnostic *
  moni ... show internal status     start .... start ser
- ps ..... show runnig processes    stop ..... stop ser
+ ps ..... show running processes    stop ..... stop ser
  fifo ... send raw FIFO commands   restart .. restart ser
  ping &lt;uri&gt; .. ping a URI (OPTIONS)
  cisco_restart &lt;uri&gt; .. restart a Cisco phone (NOTIFY)
@@ -952,7 +952,7 @@ $this->mail_header_from=<quote>Registration@ mydomain.com</quote>;
 		Some &sip; client providers are building in options into their products that allow the
 		user to identify the &ip; address that their phone will appear as to the public.  This
 		is a nice simple approach, but presumes that the person installing the client knows
-		what that IP address is, and that it doesn?t change.  Cisco has built this feature
+		what that IP address is, and that it doesn't change.  Cisco has built this feature
 		into their 79XX series &sip; phones.
 	    </para>
 	    <para>
@@ -1091,7 +1091,7 @@ ngrep  -n 5060 -d eth0 joe
 			</listitem>
 			<listitem>
 			    <para>
-				SIPmacaddress.cnf - Phone specific settings, including logon name
+				SIPmacaddress.cnf - Phone specific settings, including login name
 				and password.  Example: SIP000A8A93D466.cnf
 			    </para>
 			</listitem>
@@ -1105,7 +1105,7 @@ ngrep  -n 5060 -d eth0 joe
 		<para>
 		    Each time the phone is powered on it will tftp download OS79XX and determine if
 		    it needs a firmware update.  If no update is needed the next step is to download
-		    SIPDefault.cnf, SIPmacaddress.cnf, and optionally a dialplan, ringlist and ring
+		    SIPDefault.cnf, SIPmacaddress.cnf, and optionally a dial plan, ringlist and ring
 		    tones.
 		</para>
 		<para>

+ 10 - 10
doc/seruser/apps.sgml

@@ -126,7 +126,7 @@ if (uri=~"^sip:jiri@") {
 		<para>
 		    This example shows how to display caller's address
 		    in email notification. The trick is easy: process
-		    request received on shell programm's input
+		    request received on shell program's input
 		    and grep From header field.
 		</para>
 		<programlisting format="linespecific">
@@ -246,7 +246,7 @@ SIP_HF_CONTACT=<sip:123.20.128.35:9315>
 		<title>Adding Stateful Processing</title>
 		<para>
 		    The previously improved example still features a shortcoming.
-		    When a message retransmission arrives due to a nework
+		    When a message retransmission arrives due to a network
 		    mistake such as lost reply, the email notification is
 		    executed again and again. That happens because the script
 		    is stateless, i.e., no track of current transactions is
@@ -261,7 +261,7 @@ SIP_HF_CONTACT=<sip:123.20.128.35:9315>
 		    a reply is sent statefully.
 		    <note>
 			<para>
-			    Note carefuly: it is important that the stateful
+			    Note carefully: it is important that the stateful
 			    reply processing (<command moreinfo="none">t_reply</command>)
 			    is used as opposed to using stateless replies
 			    (<command moreinfo="none">sl_send_reply</command>).
@@ -307,7 +307,7 @@ SIP_HF_CONTACT=<sip:123.20.128.35:9315>
 		    is used for. It does not matter what caused the transaction
 		    to fail -- it may be unresponsive downstream server,
 		    server responding with 6xx, or server sending a 487
-		    reply, because an INVITE was cancelled. When any such
+		    reply, because an INVITE was canceled. When any such
 		    circumstances occur (i.e., transaction does not complete
 		    with a 2xx status code), <command moreinfo="none">failure_route</command>
 		    is entered.
@@ -481,7 +481,7 @@ print
 # call this script to send an instant message; script parameters
 # will be displayed in message body
 #
-# paremeters mean: message type, request-URI, outbound server is
+# parameters mean: message type, request-URI, outbound server is
 # left blank ("."), required header fields From and To follow,
 # then optional header fields terminated by dot and optional
 # dot-terminated body
@@ -517,7 +517,7 @@ EOF
 		    The web interface needs to have the ability to upload new user's
 		    contacts to <application moreinfo="none">ser</application>.
 		    This is what the <command moreinfo="none">ul_add</command> FIFO
-		    command is good for. Paremeterized by user's name, table name,
+		    command is good for. Parameterized by user's name, table name,
 		    expiration time and weight, it allows external applications to
 		    introduce new contacts to server's in-memory user location table.
 		</para>
@@ -618,11 +618,11 @@ function write2fifo($fifo_cmd, &$errors, &$status){
 		<para>
 		    There are basically two ways how to build such a feature:
 		    distributed and centralized. We prefer the distributed
-		    approach since it is very robust and leight-weighted.
+		    approach since it is very robust and light-weighted.
 		    The "click-to-dial" application just needs to instruct
 		    the calling user to call a destination and that's it.
 		    (That's done using "REFER" method.)
-		    Then, the calling user takes over whereas the initating
+		    Then, the calling user takes over whereas the initiating
 		    application disappears from signaling and
 		    is no longer involved in subsequent communication. Which
 		    is good because such a simple design scales well. 
@@ -668,9 +668,9 @@ function write2fifo($fifo_cmd, &$errors, &$status){
 				<note>
 					<para>
 						The wrapper INVITE may or may not be used
-						in future. The internet draft
+						in future. The Internet draft
 						draft-ietf-sipping-service-examples
-						mentiones the click-to-dial application
+						mentions the click-to-dial application
 						without use of the dummy INVITE. As of
 						today, most telephones do need it.
 					</para>

+ 1 - 1
doc/seruser/db_fifo.sgml

@@ -47,7 +47,7 @@
 	</para>
 	<para>
 	Also the size (can fit on only one line) and the the content (\n or \r
-	charecters must be escaped) of a BLOB value is restricted.
+	characters must be escaped) of a BLOB value is restricted.
 	</para>
 </section>
 

+ 2 - 2
doc/seruser/general.sgml

@@ -20,7 +20,7 @@
 		In this way, plug-ins such as RADIUS accounting,
 		SMS gateway, ENUM queries, or presence agent have already been developed and are provided as 
 		advanced features. Other modules are underway: 
-		firewall control, postgress and LDAP database drivers and more.
+		firewall control, postgres and LDAP database drivers and more.
 	    </para>
 	    <para>
 		Its performance and robustness allows it to serve millions of users 
@@ -317,7 +317,7 @@
 		</para>
 
 	    <para>
-		Additionaly, help may be obtained from our user forum. The community
+		Additionally, help may be obtained from our user forum. The community
 		of <application>SER</application> users is subscribed to the
 		[email protected] mailing list and discusses issues related to
 		<application>SER</application> operation.

+ 10 - 10
doc/seruser/intro.sgml

@@ -539,7 +539,7 @@ if (uri=~"^sip:(.+@)?(192\.168\.0\.10|(sip\.)?foo\.bar)([:;\?].*)?$")
 			callers who can only
 			use numeric keypads. Next-hop destination of IP users is looked up dynamically
 			using user location database. On the other hand, PSTN destinations are 
-			always indicated by nummerical usernames. Requests to PSTN are statically 
+			always indicated by numerical usernames. Requests to PSTN are statically 
 			forwarded to well-known PSTN gateways.
 		    </para>
 		    <example>
@@ -547,11 +547,11 @@ if (uri=~"^sip:(.+@)?(192\.168\.0\.10|(sip\.)?foo\.bar)([:;\?].*)?$")
 			<para>
 			    This example shows a simple dialing plan which reserves
 			    dialing prefix "8" for IP users, other numbers
-			    are used for PSTN destinations and all other non-nummerical
+			    are used for PSTN destinations and all other non-numerical
 			    usernames are used for IP users.
 			</para>
 			<programlisting format="linespecific">
-# is it a PSTN destination? (is username nummerical and does not begin with 8?)
+# is it a PSTN destination? (is username numerical and does not begin with 8?)
 if (uri=~"^sip:[0-79][0-9]*@") { # ... forward to gateways then;
       # check first to which PSTN destination the requests goes;
       # if it is US (prefix "1"), use the gateway 192.168.0.1...
@@ -818,7 +818,7 @@ forward(uri:host, uri:port);
 		allows translation of a single request URI into multiple
 		outgoing URIs. The ability to forward a request to multiple
 		destinations is known as <emphasis>forking</emphasis>
-		in SIP language. All outogoing URIs (in trivial case one of them)
+		in SIP language. All outgoing URIs (in trivial case one of them)
 		are called <emphasis>destination set</emphasis>. The destination
 		set always includes one default URI, to which additional URIs
 		can be appended. Maximum size of a destination set is limited by 
@@ -927,7 +927,7 @@ Expires: 600
 		(usrloc module's parameter <varname>timer_interval</varname> determines
 		their length), all changes to the in-memory table are backed up in
 		<application moreinfo="none">mysql</application> database to achieve
-		peristence accross server reboots. Administrators or application writers
+		persistence across server reboots. Administrators or application writers
 		can lookup list of current user's contacts stored in memory using the
 		<application moreinfo="none">serctl</application> tool (see <xref linkend="serctl">).
 		<example>
@@ -1070,7 +1070,7 @@ t_relay_to_udp("192.168.99.100", "5060");
 		for accessing mysql databases and sl module for generating
 		authentication challenges. We recommend that modules are
 		loaded in dependency order to avoid ambiguous server
-		behaviour.
+		behavior.
 	    </para>	    
 	    <para>
 		<example id="moduleparameters">
@@ -1114,7 +1114,7 @@ route{
 	    <title>Writing Scripts</title>
 	    <para>
 		This section demonstrates simple examples
-		how to configure server's behaviour using the
+		how to configure server's behavior using the
 		<application moreinfo="none">ser</application>
 		request routing language. All configuration scripts follow the 
 		<application moreinfo="none">ser</application> language 
@@ -1123,7 +1123,7 @@ route{
 		    <listitem>
 			<para>
 			    <emphasis>global configuration parameters</emphasis> --
-			    these value affect behaviour of the server such as port
+			    these value affect behavior of the server such as port
 			    number at which it listens, number of spawned children
 			    processes, and log-level. See <xref linkend="coreoptions">
 			    for a list of available options.
@@ -1184,7 +1184,7 @@ route{
 		<para>
 		    The configuration script, <filename moreinfo="none">ser.cfg</filename>,
 		    is a part of every <application moreinfo="none">ser</application>
-		    distribution and defines default behaviour. It allows users
+		    distribution and defines default behavior. It allows users
 		    to register with the server and have requests proxied to each
 		    other.
 		</para>
@@ -1424,7 +1424,7 @@ route{
 		    The primitives used are <command moreinfo="none">t_on_failure(r)</command>
 		    and <command moreinfo="none">failure_route[r]{}.</command> If
 		    <command>t_on_failure</command> is called before
-		    a request is statefuly forwarded and a forwarding failure occurs, 
+		    a request is statefully forwarded and a forwarding failure occurs, 
 		    <application moreinfo="none">ser</application>
 		    will return to request processing in a <command moreinfo="none">failure_route</command>
 		    block. Failures include receipt of a SIP error

+ 19 - 19
doc/seruser/operation.sgml

@@ -159,7 +159,7 @@ Warning: 392 127.0.0.1:5060 "Noisy feedback tells: pid=31604 req_src_ip=153.96.1
 				    <para>
 					Server's process id. That is useful for
 					debugging to discover situations when
-					mutliple servers listen at the same
+					multiple servers listen at the same
 					address.
 				    </para>
 				</listitem>
@@ -347,7 +347,7 @@ warning: IP extract from warning activated to be more informational
 			    <application>ser</application> by default logs
 			    to <application>syslog</application> facility.
 			    It is very useful to watch log messages for
-			    abnormal behaviour. Log messages, subject to
+			    abnormal behavior. Log messages, subject to
 			    <application>syslog</application> configuration
 			    may be stored at different files, or even at remote
 			    systems. A typical location of the log file is
@@ -377,7 +377,7 @@ warning: IP extract from warning activated to be more informational
 				</listitem>
 				<listitem>
 				    <para>
-					Set explicitely at which address 
+					Set explicitly at which address 
 					<application moreinfo="none">ser</application>
 					should be listening, e.g., <varname>listen=192.168.2.16</varname>.
 				    </para>
@@ -607,7 +607,7 @@ sip:[email protected]
 			<para>
 			    Frequently, it is desirable for a user to have multiple
 			    addresses in a domain. For example, a user with username "john.doe" wants to be
-			    reachable at a shorter address "john" or at a nummerical address
+			    reachable at a shorter address "john" or at a numerical address
 			    "12335", so that PSTN callers with digits-only key-pad can reach
 			    him too.
 			</para>
@@ -668,7 +668,7 @@ sip:[email protected]
 			    </screen>
 			</para>
 			<para>
-			    Note that persitence needs to be turned on in usrloc
+			    Note that persistence needs to be turned on in usrloc
 			    module. All changes to aliases will be otherwise lost
 			    on server reboot. To enable persistence, set the
 			    db_mode usrloc parameter to a non-zero value.
@@ -778,7 +778,7 @@ MySql Password:
 			</para>
 			<para>
 			    To enable call accounting, tm and acc modules need to be loaded,
-			    requests need to be processed statefuly and labeled for
+			    requests need to be processed statefully and labeled for
 			    accounting. That means, if you want a transaction to be reported,
 				the initial request must have taken the path 
 				"<command>setflag(X)</command>, <command>t_relay</command>"
@@ -789,7 +789,7 @@ MySql Password:
 			<para>
 				Also note, that by default only transactions that initiate
 				a SIP dialog (typically INVITE) visit a proxy server.
-				Subsequent transactions are exhanged directly between
+				Subsequent transactions are exchanged directly between
 				end-devices, do not visit proxy server and cannot be
 				reported. To be able to report on subsequent transactions,
 				you need to force them visit proxy server by turning 
@@ -935,7 +935,7 @@ MySql Password:
 					<emphasis>Forwarding Services</emphasis>. All sort of services 
 					with the "forward_on_event" logic, which rely on 
 					<command moreinfo="none">t_on_failure</command> tm
-					action must be processed statefuly.
+					action must be processed statefully.
 				    </para>
 				</listitem>
 			<listitem>
@@ -953,8 +953,8 @@ MySql Password:
 				    <para>
 					Positive return value of stateless
 					<command moreinfo="none">forward</command> action only indicates that
-					a request was successfuly sent out, and does not gain any knowledge
-					about whether it was successfuly received or replied. Neither does
+					a request was successfully sent out, and does not gain any knowledge
+					about whether it was successfully received or replied. Neither does
 					the return value of
 					the stateful <command moreinfo="none">t_relay</command> action family
 					gain you this knowledge. However, these actions store transactional
@@ -1055,7 +1055,7 @@ modparam("acc", "log_missed_flag", 3 );
 if (!lookup("location")) {
      # call invitations to off-line users are reported using the
      # acc_request action; to avoid duplicate reports on request
-     # retransmissions, request is processed statefuly (t_newtran,
+     # retransmissions, request is processed statefully (t_newtran,
      # t_reply)
      if ((method=="INVITE" || method=="ACK") && t_newtran() ) {
           t_reply("404", "Not Found");
@@ -1088,14 +1088,14 @@ if (!lookup("location")) {
 		    and save money charged for IP addresses. Unfortunately, they
 		    translate addresses in a way which is not compatible with SIP.
 		    SIP advertises receiver addresses in its payload. The advertised
-		    addresses are invalid out of NATted networks. As a result,
-		    SIP communication does not work accross NATs without extra
+		    addresses are invalid out of NATed networks. As a result,
+		    SIP communication does not work across NATs without extra
 		    effort.
 		</para>
 		<para>
 		    There are few methods that may be deployed to traverse NATs.
 		    How proper their use is depends on the deployment scenario.
-		    Unfortunatelly, all the methods have some limitations and
+		    Unfortunately, all the methods have some limitations and
 		    there is no straight-forward solution addressing all
 		    scenarios. Note that none of these methods takes explicit
 		    support in <application moreinfo="none">ser</application>.
@@ -1171,9 +1171,9 @@ if (!lookup("location")) {
 		<title>Authentication Policy: Prevention of Unauthorized Domain 
 		    Name Use in From and More</title>
 		<para>
-		    Malicous users can claim a name of domain, to which they do 
+		    Malicious users can claim a name of domain, to which they do 
 		    not administratively belong, in From header field. This
-		    behaviour cannot be generally prevented. The reason is
+		    behavior cannot be generally prevented. The reason is
 		    that requests with such a faked header field do not need
 		    to visit servers of the domain in question. However, if they
 		    do so, it is desirable to assure that users claiming
@@ -1184,7 +1184,7 @@ if (!lookup("location")) {
 		    the proxy server.
 		</para>
 		<para>
-		    Preventing unathorized domain name use in relayed requests 
+		    Preventing unauthorized domain name use in relayed requests 
 		    is not difficult.
 		    One needs to authenticate each request with name of the
 		    served domain in From header field. To do so, one can
@@ -1271,7 +1271,7 @@ if (to me):
 		    is guarding PSTN gateways (see <xref linkend="acl">). There
 		    may be destinations that are given away for free whereas
 		    other destinations may require access control using
-		    group membership, to which  authentication is a prerequisity.
+		    group membership, to which  authentication is a prerequisite.
 		</para>
 
 	    </section> <!-- authentication policy, faked froms -->
@@ -1332,7 +1332,7 @@ if (to me):
 	    <para>
 		This section gathers practices how to deal with errors
 		known to occur frequently. To understand how to watch
-		SIP messages, server logs, and in genereal how to
+		SIP messages, server logs, and in general how to
 		troubleshoot, read also <xref linkend="operationalpractices">. 
 	    </para>
 	    <qandaset>

+ 2 - 2
doc/seruser/otherapps.sgml

@@ -31,12 +31,12 @@ usage:
            * usrloc *
  serctl ul show [&lt;username&gt;]................ show in-RAM online users
  serctl ul rm &lt;username&gt; ................... delete user's UsrLoc entries
- serctl ul add &lt;username&gt; &lt;uri&gt; ............ introduce a permanent UrLoc entry
+ serctl ul add &lt;username&gt; &lt;uri&gt; ............ introduce a permanent UsrLoc entry
  serctl showdb [&lt;username&gt;] ................ show online users flushed in DB
 
            * server health *
  serctl monitor ............................ show internal status
- serctl ps ................................. show runnig processes 
+ serctl ps ................................. show running processes 
  serctl fifo ............................... send raw commands to FIFO
 
    Commands labeled with (*) will prompt for a MySQL password.

+ 5 - 5
doc/seruser/reference.sgml

@@ -3,7 +3,7 @@
 	<section id="coreoptions">
 	    <title>Core Options</title>
 	    <para>Core options are located in beginning of configuration file and
-	    affect behaviour of the server.</para>
+	    affect behavior of the server.</para>
 	    <itemizedlist>
 		<listitem>
 		    <para>
@@ -595,7 +595,7 @@ if (len_gt(1024)) {
 		<listitem>
 		    <para>
 			<emphasis>-l address</emphasis> - Listens on the specified address. Multiple -l mean listening 
-			on multiple addresses. The default behaviour is to listen on all the ipv4 interfaces.
+			on multiple addresses. The default behavior is to listen on all the ipv4 interfaces.
 		    </para>
 		</listitem>
 		<listitem>
@@ -1067,7 +1067,7 @@ if (len_gt(1024)) {
 				RegExp, Substitute
 			    </entry>
 			    <entry>
-				find the first occurence of a string matching the regular 
+				find the first occurrence of a string matching the regular 
 				expression in header or body and replace it with a substitute
 			    </entry>
 			</row>
@@ -1082,7 +1082,7 @@ if (len_gt(1024)) {
 				RegExp, Substitute
 			    </entry>
 			    <entry>
-				find all occurences of a string matching the regular 
+				find all occurrences of a string matching the regular 
 				expression in header or body and replace it with a substitute
 			    </entry>
 			</row>
@@ -1284,7 +1284,7 @@ if (len_gt(1024)) {
 			    <entry>t_uac_dlg</entry>
 			    <entry>tm</entry>
 			    <entry>method, request URI, outbound URI (if none, empty line with a single dot),
-					dot-line-terminated header fields, optionaly dot-line terminated message
+					dot-line-terminated header fields, optionally dot-line terminated message
 					body. 
 				</entry>
 					

+ 5 - 5
doc/seruser/voicemail.sgml

@@ -43,7 +43,7 @@
 			<para>
 			    If you want your voicemail system to support
 			    other codecs, a simple plugin system with
-			    SDK alows you to integrate them fast and
+			    SDK allows you to integrate them fast and
 			    simply (see the basis plugins for examples). 
 			</para>
 	        </listitem>
@@ -58,8 +58,8 @@
 		<listitem>
 		    <para>
 		            The sound conversion engine doesn't
-			    support yet resampling. It means that
-			    input and ouput files have to be
+			    support yet re-sampling. It means that
+			    input and output files have to be
 			    compatible with the sampling rate of the
 			    codec. All codecs included with the
 			    distribution work at 8kHz, which means
@@ -85,7 +85,7 @@
 		<listitem>
 			<para>
 			First, you need to compile Ser with voicemail
-			support. Thatfor, you must edit Ser's
+			support. Therefore, you must edit Ser's
 			Makefile.defs file and uncomment the line with
 			'-DVOICE_MAIL' and '-D_TOTAG'.
 			</para>
@@ -156,7 +156,7 @@
 </section>
 <section>
 
-<title>Availabilty, report bugs, contact the author</title>
+<title>Availability, report bugs, contact the author</title>
 <para>
         Ser's Voicemail's home page is hosted at
 	http://sems.berlios.de. A snapshot may be downloaded directly

+ 8 - 8
doc/sip/sip_introduction.sgml

@@ -65,7 +65,7 @@
 	    </simpara>
 	    <simpara>
 		&sip; has been designed in conformance with the Internet model. It is an end-to-end
-		oriented signalling protocol which means, that all the logic is stored in end
+		oriented signaling protocol which means, that all the logic is stored in end
 		devices (except routing of &sip; messages). State is also stored in end-devices
 		only, there is no single point of failure and networks designed this way scale
 		well. The price that we have to pay for the distributiveness and scalability is
@@ -84,7 +84,7 @@
 		&sip; is based on &http; protocol. The &http; protocol inherited format of message
 		headers from &rfc822;. &http; is probably the most successful and widely used
 		protocol in the Internet. It tries to combine the best of the both. In fact, &http;
-		can be classified as a signalling protocol too, because user agents use the protocol
+		can be classified as a signaling protocol too, because user agents use the protocol
 		to tell a &http; server in which documents they are interested in. &sip; is used to
 		carry the description of session parameters, the description is encoded into a
 		document using &sdp;. Both protocols (&http; and &sip;) have inherited encoding of
@@ -129,7 +129,7 @@
 		    <acronym>IVR</acronym> systems and so on.
 		</simpara>
 		<simpara>
-		    User agents are often reffered to as <emphasis>User Agent Server</emphasis>
+		    User agents are often referred to as <emphasis>User Agent Server</emphasis>
 		    (&uas;) and <emphasis>User Agent Client</emphasis> (&uac;). &uas; and &uac; are
 		    logical entities only, each user agent contains a &uac; and &uas;. &uac; is the
 		    part of the user agent that sends requests and receives responses. &uas; is the
@@ -275,7 +275,7 @@
 			outbound traffic to the company &sip; proxy server proxy.a.com. The proxy
 			server figures out that user sip:[email protected] is in a different company so it
 			will look up B's &sip; proxy server and send the invitation there. B's proxy
-			server can be either preconfigured at proxy.a.com or the proxy will use
+			server can be either pre-configured at proxy.a.com or the proxy will use
 			<acronym>DNS SRV</acronym> records to find B's proxy server. The invitation
 			reaches proxy.bo.com. The proxy knows that Bob is currently sitting in his
 			office and is reachable through phone on his desk, which has &ip; address
@@ -363,7 +363,7 @@
 	<section id="sec-sip-messages">
 	    <title>&sip; Messages</title>
 	    <simpara>
-		Communication using &sip; (often called signalling) comprises of series of
+		Communication using &sip; (often called signaling) comprises of series of
 		<emphasis>messages</emphasis>. Messages can be transported independently by the
 		network. Usually they are transported in a separate &udp; datagram each. Each
 		message consist of <quote>first line</quote>, message header, and message body. The
@@ -440,7 +440,7 @@ a=fmtp:101 0-16
 		messages so that recipient can identify retransmissions and out of order requests.
 	    </simpara>
 	    <simpara>
-		Contact header field contains &ip; aaddress and port on which the sender is awaiting
+		Contact header field contains &ip; address and port on which the sender is awaiting
 		further requests sent by callee. Other header fields are not important and will be
 		not described here.
 	    </simpara>
@@ -961,7 +961,7 @@ Warning: 392 195.37.77.101:5060 "Noisy feedback tells:
 			&rfc2643; rewrote the Request-URI. That means the Request-URI always
 			contained &uri; of the next hop (which can be either next proxy server which
 			inserted Record-Route header field or destination user agent). Because of
-			that it was necesarry to save the original Request-URI as the last Route
+			that it was necessary to save the original Request-URI as the last Route
 			header field. This approach is called <emphasis>strict routing</emphasis>.
 		    </simpara>
 		    <simpara>
@@ -975,7 +975,7 @@ Warning: 392 195.37.77.101:5060 "Noisy feedback tells:
 		    </simpara>
 		    <simpara>
 			Because transit from strict routing to loose routing would break backwards
-			compatibility and older user agents wouldn't work, it is necesarry to make
+			compatibility and older user agents wouldn't work, it is necessary to make
 			loose routing backwards compatible. The backwards compatibility
 			unfortunately adds a lot of overhead and is often source of major problems.
 		    </simpara>

+ 1 - 1
dprint.c

@@ -4,7 +4,7 @@
  * debug print 
  *
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 1 - 1
dprint.h

@@ -1,7 +1,7 @@
 /*
  * $Id$
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 1 - 1
dset.c

@@ -72,7 +72,7 @@ static qvalue_t ruri_q = Q_UNSPECIFIED;
 
 
 /*
- * Intialize the branch iterator, the next
+ * Initialize the branch iterator, the next
  * call to next_branch will return the first
  * contact from the dset array
  */

+ 9 - 9
error.c

@@ -2,7 +2,7 @@
  * $Id$
  *
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *
@@ -43,7 +43,7 @@ int ser_error=-1;
 int prev_ser_error=-1;
 
 int err2reason_phrase( 
-	int ser_error,  /* current itnernal ser error */
+	int ser_error,  /* current internal ser error */
 	int *sip_error,  /* the sip error code to which ser 	
 					    ser error will be turned */
 	char *phrase,    /* resulting error text */
@@ -55,11 +55,11 @@ int err2reason_phrase(
 
 	switch( ser_error ) {
 		case E_SEND:
-			error_txt="Unfortunately error on sending to next hop occured";
+			error_txt="Unfortunately error on sending to next hop occurred";
 			*sip_error=-ser_error;
 			break;
 		case E_BAD_ADDRESS:
-			error_txt="Unresolveable destination";
+			error_txt="Unresolvable destination";
 			*sip_error=-ser_error;
 			break;
 		case E_BAD_REQ:
@@ -67,11 +67,11 @@ int err2reason_phrase(
 			*sip_error=-ser_error;
 			break;
 		case E_BAD_URI:
-			error_txt="Regretfuly, we were not able to process the URI";
+			error_txt="Regretfully, we were not able to process the URI";
 			*sip_error=-ser_error;
 			break;
 		case E_BAD_TUPEL:
-			error_txt="Transaction tupel incomplete";
+			error_txt="Transaction tuple incomplete";
 			*sip_error=-E_BAD_REQ;
 			break;
 		case E_BAD_TO:
@@ -115,7 +115,7 @@ int err2reason_phrase(
 			break;
 #endif
 		default:
-			error_txt="I'm terribly sorry, server error occured";
+			error_txt="I'm terribly sorry, server error occurred";
 			*sip_error=500;
 			break;
 	}
@@ -143,7 +143,7 @@ char *error_text( int code )
 
 		case 400: return "Bad Request";
 		case 401: return "Unauthorized";
-		case 402: return "Payement Required";
+		case 402: return "Payment Required";
 		case 403: return "Forbidden";
 		case 404: return "Not Found";
 		case 405: return "Method not Allowed";
@@ -163,7 +163,7 @@ char *error_text( int code )
 		case 482: return "Loop Detected";
 		case 483: return "Too Many Hops";
 		case 484: return "Address Incomplete";
-		case 485: return "Ambigous";
+		case 485: return "Ambiguous";
 		case 486: return "Busy Here";
 		case 487: return "Request Terminated";
 		case 488: return "Not Acceptable Here";

+ 6 - 6
error.h

@@ -1,7 +1,7 @@
 /*
  * $Id$
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *
@@ -36,13 +36,13 @@
 #define E_BUG         -5
 #define E_CFG         -6
 #define E_NO_SOCKET		-7
-/* unresolveable topmost Via */
+/* unresolvable topmost Via */
 #define E_BAD_VIA		-8
-/* incomplete transaction tupel */
+/* incomplete transaction tuple */
 #define E_BAD_TUPEL		-9
 /* script programming error */
 #define E_SCRIPT		-10
-/* error in excecution of external tools */
+/* error in execution of external tools */
 #define E_EXEC			-11
 /* too many branches demanded */
 #define E_TOO_MANY_BRANCHES -12
@@ -57,13 +57,13 @@
 
 
 #define E_SEND		  -477
-/* unresolveable next-hop address */
+/* unresolvable next-hop address */
 #define E_BAD_ADDRESS -478
 /* unparseable URI */
 #define E_BAD_URI 	  -479
 /* bad protocol, like */
 #define E_BAD_PROTO	  -480
-/* misformated request */
+/* malformed request */
 #define E_BAD_REQ	  -400
 
 /* error in server */

+ 4 - 4
fastlock.h

@@ -1,11 +1,11 @@
 /*
- * fast arhitecture specific locking
+ * fast architecture specific locking
  *
  * $Id$
  *
  * 
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *
@@ -107,7 +107,7 @@ inline static int tsl(fl_lock_t* lock)
 			"memory", "cc"
         );
 #else
-#error "unknown arhitecture"
+#error "unknown architecture"
 #endif
 	return val;
 }
@@ -169,7 +169,7 @@ inline static void release_lock(fl_lock_t* lock)
         );
 	*lock = 0;
 #else
-#error "unknown arhitecture"
+#error "unknown architecture"
 #endif
 }
 

+ 4 - 4
fifo_server.c

@@ -2,7 +2,7 @@
  * $Id$
  *
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *
@@ -58,7 +58,7 @@
  *  2003-01-29  new built-in fifo commands: arg and pwd (jiri)
  *  2003-10-07  fifo security fixes: permissions, always delete old fifo,
  *               reply fifo checks -- added fifo_check (andrei)
- *  2003-10-13  addef fifo_dir for reply fifos (andrei)
+ *  2003-10-13  added fifo_dir for reply fifos (andrei)
  *  2003-10-30  DB interface exported via FIFO (bogdan)
  *  2004-03-09  open_fifo_server split into init_ and start_ (andrei)
  *  2004-04-29  added chown(sock_user, sock_group)  (andrei)
@@ -601,7 +601,7 @@ int init_fifo_server()
 	}
 	memcpy(up_since_ctime,t,strlen(t)+1);
 	/* open it non-blocking or else wait here until someone
-	 * opens it for writting */
+	 * opens it for writing */
 	fifo_read=open(fifo, O_RDONLY|O_NONBLOCK, 0);
 	if (fifo_read<0) {
 		LOG(L_ERR, "ERROR: init_fifo_server: fifo_read did not open: %s\n",
@@ -674,7 +674,7 @@ int start_fifo_server()
 		signal(SIGPIPE, SIG_IGN);
 		LOG(L_INFO, "SER: open_uac_fifo: fifo server up at %s...\n",
 			fifo);
-		fifo_server( fifo_stream ); /* never retruns */
+		fifo_server( fifo_stream ); /* never returns */
 	}
 	/* dad process */
 	pt[process_no].pid=fifo_pid;

+ 3 - 3
fifo_server.h

@@ -2,7 +2,7 @@
  * $Id$
  *
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *
@@ -77,12 +77,12 @@ int read_body(char *buf, int max_len, FILE *fifo, int *len);
 int init_fifo_server();
 int start_fifo_server();
 
-/* regsiter core FIFO command set */
+/* register core FIFO command set */
 int register_core_fifo();
 
 FILE *open_reply_pipe( char *pipe_name );
 
-/* tell FIFO client an error occured via reply pipe */
+/* tell FIFO client an error occurred via reply pipe */
 void fifo_reply( char *reply_fifo, char *reply_fmt, ... );
 
 /* memory deallocation */

+ 2 - 2
flags.c

@@ -1,7 +1,7 @@
 /*
  * $Id$
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *
@@ -89,7 +89,7 @@ static int fixup_t_flag(void** param, int param_no)
 
 	*code = 0;
 	c = *param;
-	while ( *c && (*c==' ' || *c=='\t')) c++; /* intial whitespaces */
+	while ( *c && (*c==' ' || *c=='\t')) c++; /* initial whitespaces */
 
 	token=1;
 	if (strcasecmp(c, "white")==0) *code=FL_WHITE;

+ 1 - 1
flags.h

@@ -1,7 +1,7 @@
 /*
  * $Id$
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 4 - 4
forward.c

@@ -1,7 +1,7 @@
 /*
  * $Id$
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *
@@ -214,7 +214,7 @@ struct socket_info* get_send_socket(union sockaddr_union* to, int proto)
 			}else send_sock=bind_address;
 			break;
 		default:
-			LOG(L_CRIT, "BUG: get_send_socket: unkown proto %d\n", proto);
+			LOG(L_CRIT, "BUG: get_send_socket: unknown proto %d\n", proto);
 	}
 	return send_sock;
 }
@@ -364,7 +364,7 @@ int forward_request( struct sip_msg* msg, struct proxy_l * p, int proto)
 	send_sock=get_send_socket(to, proto);
 	if (send_sock==0){
 		LOG(L_ERR, "forward_req: ERROR: cannot forward to af %d, proto %d "
-				"no coresponding listening socket\n", to->s.sa_family, proto);
+				"no corresponding listening socket\n", to->s.sa_family, proto);
 		ser_error=E_NO_SOCKET;
 		goto error1;
 	}
@@ -522,7 +522,7 @@ int forward_reply(struct sip_msg* msg)
 			goto error;
 		}
 	}
-	/* quick hack, slower for mutliple modules*/
+	/* quick hack, slower for multiple modules*/
 	for (mod=modules;mod;mod=mod->next){
 		if ((mod->exports) && (mod->exports->response_f)){
 			DBG("forward_reply: found module %s, passing reply to it\n",

+ 2 - 2
forward.h

@@ -1,7 +1,7 @@
 /*
  *  $Id$
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *
@@ -78,7 +78,7 @@ int forward_reply( struct sip_msg* msg);
  *  to = destination,
  *  id - only used on tcp, it will force sending on connection "id" if id!=0 
  *       and the connection exists, else it will send to "to" 
- *       (usefull for sending replies on  the same connection as the request
+ *       (useful for sending replies on  the same connection as the request
  *       that generated them; use 0 if you don't want this)
  * returns: 0 if ok, -1 on error*/
 static inline int msg_send(	struct socket_info* send_sock, int proto,

+ 1 - 1
globals.h

@@ -4,7 +4,7 @@
  * global variables
  *
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 1 - 1
hash_func.c

@@ -1,7 +1,7 @@
 /*
  * $Id$
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 1 - 1
hash_func.h

@@ -1,7 +1,7 @@
 /*
  * $Id$
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 3 - 3
ip_addr.c

@@ -4,7 +4,7 @@
  *
  * ip address & address family related functions
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *
@@ -119,7 +119,7 @@ void print_ip(char* p, struct ip_addr* ip, char *s)
 				);
 			break;
 		default:
-			DBG("print_ip: warning unknown adress family %d\n", ip->af);
+			DBG("print_ip: warning unknown address family %d\n", ip->af);
 	}
 }
 
@@ -146,7 +146,7 @@ void stdout_print_ip(struct ip_addr* ip)
 				);
 			break;
 		default:
-			DBG("print_ip: warning unknown adress family %d\n", ip->af);
+			DBG("print_ip: warning unknown address family %d\n", ip->af);
 	}
 }
 

+ 6 - 6
ip_addr.h

@@ -1,8 +1,8 @@
 /* $Id$
  *
- * ip address family realted structures
+ * ip address family related structures
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *
@@ -52,7 +52,7 @@ struct ip_addr{
 	unsigned int af; /* address family: AF_INET6 or AF_INET */
 	unsigned int len;    /* address len, 16 or 4 */
 	
-	/* 64 bits alligned address */
+	/* 64 bits aligned address */
 	union {
 		unsigned long  addrl[16/sizeof(long)]; /* long format*/
 		unsigned int   addr32[4];
@@ -103,7 +103,7 @@ struct receive_info{
 	int proto;
 	int proto_reserved1; /* tcp stores the connection id here */
 	int proto_reserved2;
-	union sockaddr_union src_su; /* usefull for replies*/
+	union sockaddr_union src_su; /* useful for replies*/
 	struct socket_info* bind_address; /* sock_info structure on which 
 									  the msg was received*/
 	/* no need for dst_su yet */
@@ -171,7 +171,7 @@ int is_mcast(struct ip_addr* ip);
 #endif /* USE_MCAST */
 
 /* returns 1 if ip & net.mask == net.ip ; 0 otherwise & -1 on error 
-	[ diff. adress fams ]) */
+	[ diff. address families ]) */
 inline static int matchnet(struct ip_addr* ip, struct net* net)
 {
 	unsigned int r;
@@ -385,7 +385,7 @@ static inline int hostent2su( union sockaddr_union* su,
 
 /* maximum size of a str returned by ip_addr2a (including \0) */
 #define IP_ADDR_MAX_STR_SIZE 40 /* 1234:5678:9012:3456:7890:1234:5678:9012\0 */
-/* fast ip_addr -> string convertor;
+/* fast ip_addr -> string converter;
  * it uses an internal buffer
  */
 static inline char* ip_addr2a(struct ip_addr* ip)

+ 1 - 1
lock_alloc.h

@@ -1,7 +1,7 @@
 /* $Id$ */
 /*
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 1 - 1
lock_ops.h

@@ -1,7 +1,7 @@
 /* $Id$ */
 /*
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 2 - 2
locking.h

@@ -1,7 +1,7 @@
 /* $Id$ */
 /*
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *
@@ -32,7 +32,7 @@
  *  2003-02-20  s/gen_lock_t/gen_lock_t/ to avoid a type conflict 
  *               on solaris  (andrei)
  *  2003-03-05  lock set support added for FAST_LOCK & SYSV (andrei)
- *  2003-03-06  splited in two: lock_ops.h & lock_alloc.h, to avoid
+ *  2003-03-06  split in two: lock_ops.h & lock_alloc.h, to avoid
  *               shm_mem.h<->locking.h interdependency (andrei)
  *  2004-07-28  s/lock_set_t/gen_lock_set_t/ because of a type conflict
  *              on darwin (andrei)

+ 3 - 3
lump_struct.h

@@ -3,7 +3,7 @@
  *
  * adding/removing headers or any other data chunk from a message
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *
@@ -33,7 +33,7 @@
  *  2003-04-01  added opt (condition) lumps (andrei)
  *  2003-04-02  added more subst lumps: SUBST_{SND,RCV}_ALL  
  *              => ip:port;transport=proto (andrei)
- *  2003-10-20  splitted from data_lump.h (andrei)
+ *  2003-10-20  split from data_lump.h (andrei)
  *
  */
 
@@ -113,7 +113,7 @@ struct lump{
  *  op=ADD.
  * before and after must contain only ADD ops!
  * 
- * Difference between "after" & "next" when ADDing:
+ * Difference between "after" & "next" when Adding:
  * "after" forces the new header immediately after the current one while
  * "next" means another header can be inserted between them.
  * 

+ 18 - 18
main.c

@@ -1,7 +1,7 @@
 /*
  * $Id$
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *
@@ -210,9 +210,9 @@ Options:\n\
     -c           Check configuration file for errors\n\
     -p port      Listen on the specified port (default: 5060)\n\
                   applies to the last address in -l and to all \n\
-                  following that do not have a corespponding -p\n\
+                  following that do not have a corresponding -p\n\
     -l address   Listen on the specified address/interface (multiple -l\n\
-                  mean listening on more addresses). The default behaviour\n\
+                  mean listening on more addresses). The default behavior\n\
                   is to listen on all the interfaces\n\
     -n processes Number of child processes to fork per interface\n\
                   (default: 8)\n\
@@ -239,7 +239,7 @@ Options:\n\
     -g gid       Change gid \n\
     -P file      Create a pid file\n\
     -G file      Create a pgid file\n\
-    -i fifo_path Create a fifo (usefull for monitoring " NAME ") \n\
+    -i fifo_path Create a fifo (useful for monitoring " NAME ") \n\
     -x socket    Create a unix domain socket \n"
 #ifdef STATS
 "    -s file     File to which statistics is dumped (disabled otherwise)\n"
@@ -263,7 +263,7 @@ void print_ct_constants()
 		BUF_SIZE );
 }
 
-/* debuging function */
+/* debugging function */
 /*
 void receive_stdin_loop()
 {
@@ -286,7 +286,7 @@ int own_pgid = 0; /* whether or not we have our own pgid (and it's ok
 					 to use kill(0, sig) */
 char* cfg_file = 0;
 unsigned int maxbuffer = MAX_RECV_BUFFER_SIZE; /* maximum buffer size we do
-												  not want to exceed durig the
+												  not want to exceed during the
 												  auto-probing procedure; may 
 												  be re-configured */
 int children_no = 0;			/* number of children processing requests */
@@ -297,7 +297,7 @@ int tcp_disable = 0; /* 1 if tcp is disabled */
 #ifdef USE_TLS
 int tls_disable = 0; /* 1 if tls is disabled */
 #endif
-struct process_table *pt=0;		/*array with childrens pids, 0= main proc,
+struct process_table *pt=0;		/*array with children pids, 0= main proc,
 									alloc'ed in shared mem if possible*/
 int sig_flag = 0;              /* last signal received */
 int debug = L_NOTICE;
@@ -415,7 +415,7 @@ char* pid_file = 0; /* filename as asked by use */
 char* pgid_file = 0;
 
 
-/* callit before exiting; if show_status==1, mem status is displayed */
+/* call it before exiting; if show_status==1, mem status is displayed */
 void cleanup(show_status)
 {
 	/*clean-up*/
@@ -742,7 +742,7 @@ int main_loop()
 			LOG(L_WARN, "WARNING: using only the first listen address"
 						" (no fork)\n");
 		}
-		/* intialize fifo server -- we need to open the fifo before
+		/* initialize fifo server -- we need to open the fifo before
 		 * do_suid() and start the fifo server after all the socket 
 		 * are initialized, to inherit them*/
 		if (init_fifo_server()<0) {
@@ -754,7 +754,7 @@ int main_loop()
 			LOG(L_ERR, "Error while creating unix domain sockets\n");
 			goto error;
 		}
-		if (do_suid()==-1) goto error; /* try to drop priviledges */
+		if (do_suid()==-1) goto error; /* try to drop privileges */
 		/* process_no now initialized to zero -- increase from now on
 		   as new processes are forked (while skipping 0 reserved for main 
 		*/
@@ -789,13 +789,13 @@ int main_loop()
 						timer_ticker();
 					}
 				}else{
-						pt[process_no].pid=pid; /*should be shared mem anway*/
+						pt[process_no].pid=pid; /*should be shared mem anyway*/
 						strncpy(pt[process_no].desc, "timer", MAX_PT_DESC );
 				}
 		}
 
 		/* if configured, start a server for accepting FIFO commands,
-		 * we need to do it after all the sockets are intialized, to 
+		 * we need to do it after all the sockets are initialized, to 
 		 * inherit them*/
 		if (start_fifo_server()<0) {
 			LOG(L_ERR, "starting fifo server failed\n");
@@ -880,7 +880,7 @@ int main_loop()
 #endif /* USE_TLS */
 #endif /* USE_TCP */
 
-		/* intialize fifo server -- we need to open the fifo before
+		/* initialize fifo server -- we need to open the fifo before
 		 * do_suid() and start the fifo server after all the socket 
 		 * are initialized, to inherit them*/
 		if (init_fifo_server()<0) {
@@ -894,12 +894,12 @@ int main_loop()
 			goto error;
 		}
 
-			/* all procs should have access to all the sockets (for sending)
+			/* all processes should have access to all the sockets (for sending)
 			 * so we open all first*/
-		if (do_suid()==-1) goto error; /* try to drop priviledges */
+		if (do_suid()==-1) goto error; /* try to drop privileges */
 
 		/* if configured, start a server for accepting FIFO commands,
-		 * we need to do it after all the sockets are intialized, to 
+		 * we need to do it after all the sockets are initialized, to 
 		 * inherit them*/
 		if (start_fifo_server()<0) {
 			LOG(L_ERR, "starting fifo server failed\n");
@@ -1006,7 +1006,7 @@ int main_loop()
 			}
 			
 			for(;;){
-				/* debug:  instead of doing something usefull */
+				/* debug:  instead of doing something useful */
 				/* (placeholder for timers, etc.) */
 				sleep(TIMER_TICK);
 				/* if we received a signal => TIMER_TICK may have not elapsed*/
@@ -1384,7 +1384,7 @@ try_again:
 		}
 	}
 	if (fix_all_socket_lists()!=0){
-		fprintf(stderr,  "failed to initialize liste addresses\n");
+		fprintf(stderr,  "failed to initialize list addresses\n");
 		goto error;
 	}
 	/* print all the listen addresses */

+ 1 - 1
md5utils.h

@@ -2,7 +2,7 @@
  * $Id$
  *
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 1 - 1
modparam.c

@@ -2,7 +2,7 @@
  * $Id$
  *
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 1 - 1
modparam.h

@@ -2,7 +2,7 @@
  * $Id$
  *
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 7 - 7
msg_translator.c

@@ -2,7 +2,7 @@
  * $Id$
  *
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *
@@ -63,7 +63,7 @@
  * - if the address in via is different from the src_ip or an existing
  *   received=something is found, received=src_ip is added (and any preexisting
  *   received is deleted). received is added as the first via parameter if no
- *   receive is previoulsy present or over the old receive.
+ *   receive is previously present or over the old receive.
  * - if the original via contains rport / rport=something or msg->msg_flags
  *   FL_FORCE_RPORT is set (e.g. script force_rport() cmd) rport=src_port
  *   is added (over previous rport / as first via param or after received
@@ -1185,7 +1185,7 @@ skip_nop_after:
 
 
 /*
- * Adjust/insert Content-Length if necesarry
+ * Adjust/insert Content-Length if necessary
  */
 static inline int adjust_clen(struct sip_msg* msg, int body_delta, int proto)
 {
@@ -1238,7 +1238,7 @@ static inline int adjust_clen(struct sip_msg* msg, int body_delta, int proto)
 		 * existing Content-Length
 		 */
 		/* no need for Content-Length if it's and UDP packet and
-		 * it hasn't Content-Lentgh already */
+		 * it hasn't Content-Length already */
 		if ((msg->content_length==0)){
 		    /* content-length doesn't exist, append it */
 			/* msg->unparsed should point just before the final crlf
@@ -1616,7 +1616,7 @@ char * build_res_buf_from_sip_req( unsigned int code, char *text ,str *new_tag,
 		goto error00;
 	}
 
-	/*computes the lenght of the new response buffer*/
+	/*computes the length of the new response buffer*/
 	len = 0;
 
 	/* check if received needs to be added */
@@ -1861,7 +1861,7 @@ error00:
 
 
 /* return number of chars printed or 0 if space exceeded;
-   assumes buffer sace of at least MAX_BRANCH_PARAM_LEN
+   assumes buffer size of at least MAX_BRANCH_PARAM_LEN
  */
 int branch_builder( unsigned int hash_index,
 	/* only either parameter useful */
@@ -1952,7 +1952,7 @@ char* via_builder( unsigned int *len,
 
 	memcpy(line_buf, MY_VIA, MY_VIA_LEN); 
 	if (proto==PROTO_UDP){
-		/* dop nothing */
+		/* do nothing */
 	}else if (proto==PROTO_TCP){
 		memcpy(line_buf+MY_VIA_LEN-4, "TCP ", 4);
 	}else if (proto==PROTO_TLS){

+ 1 - 1
msg_translator.h

@@ -1,7 +1,7 @@
 /*$Id$
  * 
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 1 - 1
name_alias.h

@@ -2,7 +2,7 @@
  * $Id$
  *
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 1 - 1
pass_fd.c

@@ -1,7 +1,7 @@
 /*
  * $Id$
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 1 - 1
pass_fd.h

@@ -1,7 +1,7 @@
 /*
  * $Id$
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 1 - 1
proxy.c

@@ -4,7 +4,7 @@
  * proxy list & assoc. functions
  *
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 3 - 3
proxy.h

@@ -2,7 +2,7 @@
  * $Id$
  *
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *
@@ -28,7 +28,7 @@
  /*
   * History:
   * -------
-  *  2003-02-13  added proto to struct proxy_l & to *_proxy fucntions (andrei)
+  *  2003-02-13  added proto to struct proxy_l & to *_proxy functions (andrei)
   */
 
 
@@ -51,7 +51,7 @@ struct proxy_l{
 
 	int addr_idx;	/* crt. addr. idx. */
 	int ok; /* 0 on error */
-	/*statisticis*/
+	/*statistics*/
 	int tx;
 	int tx_bytes;
 	int errors;

+ 2 - 2
pt.h

@@ -5,7 +5,7 @@
  *
  *
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *
@@ -88,7 +88,7 @@ inline static int process_count()
 }
 
 
-/* retun processes's pid */
+/* return processes pid */
 inline static int my_pid()
 {
 	return pt ? pt[process_no].pid : getpid();

+ 2 - 2
re.c

@@ -3,7 +3,7 @@
  *
  * regexp and regexp substitutions implementations
  * 
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *
@@ -326,7 +326,7 @@ static int replace_build(char* match, int nmatch, regmatch_t* pmatch,
 	
 	rpl->len=replace_len(match, nmatch, pmatch, se, msg);
 	if (rpl->len==0){
-		rpl->s=0; /* emtpy string */
+		rpl->s=0; /* empty string */
 		return 0;
 	}
 	rpl->s=pkg_malloc(rpl->len);

+ 1 - 1
re.h

@@ -3,7 +3,7 @@
  *
  * regexp and regexp substitutions implementations
  * 
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 5 - 5
receive.c

@@ -1,7 +1,7 @@
 /* 
  *$Id$
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *
@@ -103,7 +103,7 @@ int receive_msg(char* buf, unsigned int len, struct receive_info* rcv_info)
 	msg->buf=buf;
 	msg->len=len;
 	/* zero termination (termination of orig message bellow not that
-	   useful as most of the work is done with scrath-pad; -jiri  */
+	   useful as most of the work is done with scratch-pad; -jiri  */
 	/* buf[len]=0; */ /* WARNING: zero term removed! */
 	msg->rcv=*rcv_info;
 	msg->id=msg_no;
@@ -127,7 +127,7 @@ int receive_msg(char* buf, unsigned int len, struct receive_info* rcv_info)
 			LOG(L_ERR, "ERROR: receive_msg: no via found in request\n");
 			goto error;
 		}
-		/* check if neccesarry to add receive?->moved to forward_req */
+		/* check if necessary to add receive?->moved to forward_req */
 		/* check for the alias stuff */
 #ifdef USE_TCP
 		if (msg->via1->alias && tcp_accept_aliases && 
@@ -173,7 +173,7 @@ int receive_msg(char* buf, unsigned int len, struct receive_info* rcv_info)
 		diff = (tve.tv_sec-tvb.tv_sec)*1000000+(tve.tv_usec-tvb.tv_usec);
 		stats->processed_requests++;
 		stats->acc_req_time += diff;
-		DBG("succesfully ran routing scripts...(%d usec)\n", diff);
+		DBG("successfully ran routing scripts...(%d usec)\n", diff);
 		STATS_RX_REQUEST( msg->first_line.u.request.method_value );
 #endif
 	}else if (msg->first_line.type==SIP_REPLY){
@@ -218,7 +218,7 @@ int receive_msg(char* buf, unsigned int len, struct receive_info* rcv_info)
 		diff = (tve.tv_sec-tvb.tv_sec)*1000000+(tve.tv_usec-tvb.tv_usec);
 		stats->processed_responses++;
 		stats->acc_res_time+=diff;
-		DBG("succesfully ran reply processing...(%d usec)\n", diff);
+		DBG("successfully ran reply processing...(%d usec)\n", diff);
 #endif
 	}
 end:

+ 1 - 1
receive.h

@@ -1,7 +1,7 @@
 /*
  * $Id$
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 1 - 1
resolve.c

@@ -1,7 +1,7 @@
 /* $Id$*/
 /*
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 1 - 1
resolve.h

@@ -3,7 +3,7 @@
  *
  * resolver related functions
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 1 - 1
route.c

@@ -4,7 +4,7 @@
  * SIP routing engine
  *
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 1 - 1
route.h

@@ -1,7 +1,7 @@
 /*
  * $Id$
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 1 - 1
route_struct.c

@@ -3,7 +3,7 @@
  *
  * route structures helping functions
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 1 - 1
route_struct.h

@@ -2,7 +2,7 @@
  * $Id$
  *
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 1 - 1
script_cb.c

@@ -6,7 +6,7 @@
  * processing is entered or left
  *
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 1 - 1
script_cb.h

@@ -1,7 +1,7 @@
 /*
  * $Id$
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 3 - 3
socket_info.c

@@ -2,7 +2,7 @@
  *
  * find & manage listen addresses 
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *
@@ -421,7 +421,7 @@ static int fix_socket_list(struct socket_info **list)
 							si->port_no, si->proto)<0){
 				LOG(L_ERR, "ERROR: fix_socket_list: add_alias failed\n");
 			}
-			/* change the oficial name */
+			/* change the official name */
 			pkg_free(si->name.s);
 			si->name.s=(char*)pkg_malloc(strlen(he->h_name)+1);
 			if (si->name.s==0){
@@ -452,7 +452,7 @@ static int fix_socket_list(struct socket_info **list)
 								si->address_str.len)==0)
 			){
 				si->flags|=SI_IS_IP;
-				/* do rev. dns on it (for aliases)*/
+				/* do rev. DNS on it (for aliases)*/
 				he=rev_resolvehost(&si->address);
 				if (he==0){
 					LOG(L_WARN, "WARNING: fix_socket_list:"

+ 3 - 3
socket_info.h

@@ -2,7 +2,7 @@
  *
  * find & manage listen addresses 
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *
@@ -60,7 +60,7 @@ void print_aliases();
 
 /* helper function:
  * returns next protocol, if the last one is reached return 0
- * usefull for cycling on the supported protocols */
+ * useful for cycling on the supported protocols */
 static inline int next_proto(unsigned short proto)
 {
 	switch(proto){
@@ -93,7 +93,7 @@ static inline int next_proto(unsigned short proto)
 
 
 /* gets first non-null socket_info structure
- * (usefull if for. e.g we are not listening on any udp sockets )
+ * (useful if for. e.g we are not listening on any udp sockets )
  */
 inline static struct socket_info* get_first_socket()
 {

+ 1 - 1
sr_module.c

@@ -1,6 +1,6 @@
 /* $Id$
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 3 - 3
sr_module.h

@@ -1,9 +1,9 @@
 /* $Id$
  *
- * modules/plugin strtuctures declarations
+ * modules/plug-in structures declarations
  *
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *
@@ -108,7 +108,7 @@ struct module_exports{
 	param_export_t* params;         /* null terminated array of the exported
 									   module parameters */
 
-	init_function init_f;           /* Initilization function */
+	init_function init_f;           /* Initialization function */
 	response_function response_f;   /* function used for responses,
 									   returns yes or no; can be null */
 	destroy_function destroy_f;     /* function called when the module should

+ 2 - 2
stats.c

@@ -4,7 +4,7 @@
  * Stats reporting code. It reports through SIG_USR1 and if loaded
  * through the SNMP module
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *
@@ -261,7 +261,7 @@ static int collect_stats(struct stats_s *s)
 		return -1;
 	}
 	if(!global_stats || stats_segments == -1) {
-		LOG(L_ERR, "Can't collect statistics, not initalized!!\n");
+		LOG(L_ERR, "Can't collect statistics, not initialized!!\n");
 		return -1;
 	}
 

+ 1 - 1
stats.h

@@ -2,7 +2,7 @@
  * $Id$
  *
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 1 - 1
str.h

@@ -1,7 +1,7 @@
 /*
  * $Id$
  *
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *

+ 2 - 2
tags.h

@@ -10,7 +10,7 @@
  *   the variable part varies because it depends on 
  *   via
  *   
- * Copyright (C) 2001-2003 Fhg Fokus
+ * Copyright (C) 2001-2003 FhG Fokus
  *
  * This file is part of ser, a free SIP server.
  *
@@ -54,7 +54,7 @@
 
 /* generate variable part of to-tag for a request;
  * it will have length of CRC16_LEN, sufficiently
- * long buffer must be passed to the fucntion */
+ * long buffer must be passed to the function */
 static inline void calc_crc_suffix( struct sip_msg *msg, char *tag_suffix)
 {
 	int ss_nr;

Some files were not shown because too many files changed in this diff