Browse code

- Spelling checked

Jan Janak authored on 24/08/2004 09:01:24
Showing 103 changed files
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * Accept and Accept-Language Header Field Name Parsing Macros
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * Allow Header Field Name Parsing Macros
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * Authorization Header Field Name Parsing Macros
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * Call-ID Header Name Parsing Macros
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -4,7 +4,7 @@
4 4
  * Contact, Content-Type, Content-Length, Content-Disposition
5 5
  * Header Field Name Parsing Macros
6 6
  *
7
- * Copyright (C) 2001-2003 Fhg Fokus
7
+ * Copyright (C) 2001-2003 FhG Fokus
8 8
  *
9 9
  * This file is part of ser, a free SIP server.
10 10
  *
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * CSeq Header Field Name Parsing Macros
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * Diversion Header Field Parsing Macros
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * Event Header Field Name Parsing Macros
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * Expires Header Field Name Parsing Macros
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * From Header Field Name Parsing Macros
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * Max-Forwards Header Field Name Parsing Macros
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * Organization Header Field Name Parsing Macros
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * Priority Header Field Name Parsing Macros
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * Proxy-Require, Proxy-Authorization Header Field Name Parsing Macros
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * Record-Route Header Field Name Parsing Macros
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * Remote-Party-ID Header Field Name Parsing Macros
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * Require Header Field Name Parsing Macros
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * Route Header Field Name Parsing Macros
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * Subject Header Field Name Parsing Macros
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * Supported Header Field Name Parsing Macros
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * To Header Field Name Parsing Macros
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * Unsupported Header Field Name Parsing Macros
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * User-Agent Header Field Name Parsing Macros
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * Via Header Field Name Parsing Macros
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * WWW-Authenticate Header Field Name Parsing Macros
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * Parses one Contact in Contact HF body
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -190,7 +190,7 @@ int parse_contacts(str* _s, contact_t** _c)
190 190
 	param_hooks_t hooks;
191 191
 
192 192
 	while(1) {
193
-		     /* Allocate and clear contact stucture */
193
+		     /* Allocate and clear contact structure */
194 194
 		c = (contact_t*)pkg_malloc(sizeof(contact_t));
195 195
 		if (c == 0) {
196 196
 			LOG(L_ERR, "parse_contacts(): No memory left\n");
... ...
@@ -1,9 +1,9 @@
1 1
 /*
2 2
  * $Id$
3 3
  *
4
- * Contact datatype
4
+ * Contact data type
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -41,7 +41,7 @@
41 41
 
42 42
 
43 43
 /*
44
- * Structure representing a Contac HF body
44
+ * Structure representing a Contact HF body
45 45
  */
46 46
 typedef struct contact {
47 47
 	str name;               /* Name part */
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * Contact header field body parser
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * Contact header field body parser
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * Digest credentials parser interface
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -79,7 +79,7 @@ int parse_credentials(struct hdr_field* _h)
79 79
 	}
80 80
 
81 81
 	     /* parse_digest_cred must return < -1 on error otherwise we will be
82
-	      * unable to distinguis if the error was caused by the server or if the
82
+	      * unable to distinguish if the error was caused by the server or if the
83 83
 	      * credentials are broken
84 84
 	      */
85 85
 	res = parse_digest_cred(&(_h->body), &(((auth_body_t*)(_h->parsed))->digest));
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * Digest credentials parser interface
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * This file is automatically generated, do not edit
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * Digest credentials parser
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -117,7 +117,7 @@ static inline int parse_token(str* _s, str* _r)
117 117
 	      */
118 118
 	_r->s = _s->s;
119 119
 
120
-	     /* Iterate throught the
120
+	     /* Iterate through the
121 121
 	      * token body
122 122
 	      */
123 123
 	for(i = 0; i < _s->len; i++) {
... ...
@@ -200,7 +200,7 @@ static inline int parse_digest_param(str* _s, dig_cred_t* _c)
200 200
 	default:            ptr = &dummy;               break;
201 201
 	}
202 202
 
203
-	     /* If the first character is qoute, it is
203
+	     /* If the first character is quote, it is
204 204
 	      * a quoted string, otherwise it is a token
205 205
 	      */
206 206
 	if (_s->s[0] == '\"') {
... ...
@@ -302,7 +302,7 @@ static inline int parse_digest_params(str* _s, dig_cred_t* _c)
302 302
 		comma = q_memchr(_s->s, ',', _s->len);
303 303
 		if (comma) {
304 304
 			     /* Yes, there is another, 
305
-			      * remove any leading whitespaces
305
+			      * remove any leading white-spaces
306 306
 			      * and let _s point to the next
307 307
 			      * parameter name
308 308
 			      */
... ...
@@ -367,7 +367,7 @@ int parse_digest_cred(str* _s, dig_cred_t* _c)
367 367
 		tmp.s += DIG_LEN + 1;
368 368
 		tmp.len -= DIG_LEN + 1;
369 369
 		
370
-		     /* Again, skip all whitespaces */
370
+		     /* Again, skip all white-spaces */
371 371
 		trim_leading(&tmp);
372 372
 
373 373
 		     /* And parse digest parameters */
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * Digest credentials parser
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * 32-bit Digest parameter name parser
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * 32-bit Digest parameter name parser
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -1,7 +1,7 @@
1 1
 /* 
2 2
  * $Id$ 
3 3
  *
4
- * Copyright (C) 2001-2003 Fhg Fokus
4
+ * Copyright (C) 2001-2003 FhG Fokus
5 5
  *
6 6
  * This file is part of ser, a free SIP server.
7 7
  *
... ...
@@ -45,7 +45,6 @@
45 45
 #include "parse_rr.h"
46 46
 #include "contact/parse_contact.h"
47 47
 #include "parse_disposition.h"
48
-#include "parse_allow.h"
49 48
 #include "../ut.h"
50 49
 
51 50
 
... ...
@@ -119,7 +118,6 @@ void clean_hdr_field(struct hdr_field* hf)
119 119
 			break;
120 120
 
121 121
 		case HDR_ALLOW:
122
-			free_allow((unsigned int**)(&(hf->parsed)));
123 122
 			break;
124 123
 
125 124
 		case HDR_EVENT:
... ...
@@ -1,7 +1,7 @@
1 1
 /* 
2 2
  * $Id$ 
3 3
  *
4
- * Copyright (C) 2001-2003 Fhg Fokus
4
+ * Copyright (C) 2001-2003 FhG Fokus
5 5
  *
6 6
  * This file is part of ser, a free SIP server.
7 7
  *
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * Fast 32-bit Header Field Name Parser -- keys
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -4,7 +4,7 @@
4 4
  * sip msg. header proxy parser 
5 5
  *
6 6
  *
7
- * Copyright (C) 2001-2003 Fhg Fokus
7
+ * Copyright (C) 2001-2003 FhG Fokus
8 8
  *
9 9
  * This file is part of ser, a free SIP server.
10 10
  *
... ...
@@ -62,7 +62,7 @@
62 62
 
63 63
 #define parse_hname(_b,_e,_h) parse_hname2((_b),(_e),(_h))
64 64
 
65
-/* number of via's encounteded */
65
+/* number of via's encountered */
66 66
 int via_cnt;
67 67
 
68 68
 /* returns pointer to next header line, and fill hdr_f ;
... ...
@@ -252,8 +252,8 @@ error:
252 252
    for the same HF which is present only once, it will fail the second
253 253
    time; if you call it twice and the HF is found on second time too,
254 254
    it's not replaced in the well-known HF pointer but just added to
255
-   header list; if you want to use a dumbie convenience function which will
256
-   give you the first occurance of a header you are interested in,
255
+   header list; if you want to use a dumb convenience function which will
256
+   give you the first occurrence of a header you are interested in,
257 257
    look at check_transaction_quadruple
258 258
 */
259 259
 int parse_headers(struct sip_msg* msg, int flags, int next)
... ...
@@ -1,7 +1,7 @@
1 1
 /*
2 2
  * $Id$
3 3
  *
4
- * Copyright (C) 2001-2003 Fhg Fokus
4
+ * Copyright (C) 2001-2003 FhG Fokus
5 5
  *
6 6
  * This file is part of ser, a free SIP server.
7 7
  *
... ...
@@ -156,7 +156,7 @@ struct sip_msg {
156 156
 	int parsed_flag;               /* Already parsed header field types */
157 157
 
158 158
 	     /* Via, To, CSeq, Call-Id, From, end of header*/
159
-	     /* pointers to the first occurances of these headers;
159
+	     /* pointers to the first occurrences of these headers;
160 160
 		  * everything is also saved in 'headers'
161 161
 		  * (WARNING: do not deallocate them twice!)*/
162 162
 
... ...
@@ -196,7 +196,7 @@ struct sip_msg {
196 196
 	
197 197
 	struct receive_info rcv; /* source & dest ip, ports, proto a.s.o*/
198 198
 
199
-	char* buf;        /* scratch pad, holds a modfied message,
199
+	char* buf;        /* scratch pad, holds a modified message,
200 200
 					   *  via, etc. point into it */
201 201
 	unsigned int len; /* message len (orig) */
202 202
 
... ...
@@ -225,7 +225,7 @@ struct sip_msg {
225 225
 	char add_to_branch_s[MAX_BRANCH_PARAM_LEN];
226 226
 	int add_to_branch_len;
227 227
 	
228
-	     /* index to TM hash table; stored in core to avoid unnecessary calcs */
228
+	     /* index to TM hash table; stored in core to avoid unnecessary calculations */
229 229
 	unsigned int  hash_index;
230 230
 	unsigned int msg_flags; /* flags used by core */
231 231
 	     /* allows to set various flags on the message; may be used for 
... ...
@@ -14,7 +14,7 @@
14 14
  * Route:             n/a
15 15
  * Record-Route:      n/a
16 16
  *
17
- * Copyright (C) 2001-2003 Fhg Fokus
17
+ * Copyright (C) 2001-2003 FhG Fokus
18 18
  *
19 19
  * This file is part of ser, a free SIP server.
20 20
  *
... ...
@@ -1,7 +1,7 @@
1 1
 /*
2 2
  * $Id$
3 3
  *
4
- * Copyright (C) 2001-2003 Fhg Fokus
4
+ * Copyright (C) 2001-2003 FhG Fokus
5 5
  *
6 6
  * This file is part of ser, a free SIP server.
7 7
  *
... ...
@@ -1,7 +1,7 @@
1 1
 /*
2 2
  * $Id$
3 3
  *
4
- * Copyright (C) 2001-2003 Fhg Fokus
4
+ * Copyright (C) 2001-2003 FhG Fokus
5 5
  *
6 6
  * This file is part of ser, a free SIP server.
7 7
  *
... ...
@@ -31,7 +31,7 @@
31 31
 #define via1 0x3a616976   /* "via:" */
32 32
 /*
33 33
  *
34
- * Copyright (C) 2001-2003 Fhg Fokus
34
+ * Copyright (C) 2001-2003 FhG Fokus
35 35
  *
36 36
  * This file is part of ser, a free SIP server.
37 37
  *
... ...
@@ -2,7 +2,7 @@
2 2
  * $Id$
3 3
  *
4 4
  *
5
- * Copyright (C) 2001-2003 Fhg Fokus
5
+ * Copyright (C) 2001-2003 FhG Fokus
6 6
  *
7 7
  * This file is part of ser, a free SIP server.
8 8
  *
... ...
@@ -287,7 +287,7 @@ int parse_content_type_hdr( struct sip_msg *msg )
287 287
 	if (ret==0)
288 288
 		goto error;
289 289
 	if (ret!=end) {
290
-		LOG(L_ERR,"ERROR:parse_content_type_hdr: CONTENT_TYPE hdr containes "
290
+		LOG(L_ERR,"ERROR:parse_content_type_hdr: CONTENT_TYPE hdr contains "
291 291
 			"more then one mime type :-(!\n");
292 292
 		goto error;
293 293
 	}
... ...
@@ -343,7 +343,7 @@ int parse_accept_hdr( struct sip_msg *msg )
343 343
 		/* a new mime was found  -> put it into array */
344 344
 		if (nr_mimes==MAX_MIMES_NR) {
345 345
 			LOG(L_ERR,"ERROR:parse_accept_hdr: Accept hdr contains more than"
346
-				" %d mime type -> buffer ovrflow!!\n",MAX_MIMES_NR);
346
+				" %d mime type -> buffer overflow!!\n",MAX_MIMES_NR);
347 347
 			goto error;
348 348
 		}
349 349
 		mimes[nr_mimes++] = mime;
... ...
@@ -2,7 +2,7 @@
2 2
  * $Id$
3 3
  *
4 4
  *
5
- * Copyright (C) 2001-2003 Fhg Fokus
5
+ * Copyright (C) 2001-2003 FhG Fokus
6 6
  *
7 7
  * This file is part of ser, a free SIP server.
8 8
  *
... ...
@@ -99,7 +99,7 @@ int parse_accept_hdr( struct sip_msg *msg );
99 99
 
100 100
 
101 101
 /*
102
- *  parse the body of a Content_-Length header. Also tryes to recognize the
102
+ *  parse the body of a Content_-Length header. Also tries to recognize the
103 103
  *  type specified by this header (see th above defines).
104 104
  *  Returns the first chr after the end of the header.
105 105
  */
... ...
@@ -1,7 +1,7 @@
1 1
 /* 
2 2
  * $Id$ 
3 3
  *
4
- * Copyright (C) 2001-2003 Fhg Fokus
4
+ * Copyright (C) 2001-2003 FhG Fokus
5 5
  *
6 6
  * This file is part of ser, a free SIP server.
7 7
  *
... ...
@@ -1,7 +1,7 @@
1 1
 /*
2 2
  * $Id$
3 3
  *
4
- * Copyright (C) 2001-2003 Fhg Fokus
4
+ * Copyright (C) 2001-2003 FhG Fokus
5 5
  *
6 6
  * This file is part of ser, a free SIP server.
7 7
  *
... ...
@@ -1,7 +1,7 @@
1 1
 /*
2 2
  * $Id$
3 3
  *
4
- * Copyright (C) 2001-2003 Fhg Fokus
4
+ * Copyright (C) 2001-2003 FhG Fokus
5 5
  *
6 6
  * This file is part of ser, a free SIP server.
7 7
  *
... ...
@@ -2,7 +2,7 @@
2 2
  * $Id$
3 3
  *
4 4
  *
5
- * Copyright (C) 2001-2003 Fhg Fokus
5
+ * Copyright (C) 2001-2003 FhG Fokus
6 6
  *
7 7
  * This file is part of ser, a free SIP server.
8 8
  *
... ...
@@ -43,7 +43,7 @@
43 43
 
44 44
 /* parse a string that supposed to be a disposition and fills up the structure
45 45
  * Returns: -1 : error
46
- *           o : sucess */
46
+ *           o : success */
47 47
 int parse_disposition( str *s, struct disposition *disp)
48 48
 {
49 49
 	enum { FIND_TYPE, TYPE, END_TYPE, FIND_PARAM, PARAM, END_PARAM, FIND_VAL,
... ...
@@ -364,7 +364,7 @@ void free_disposition( struct disposition **disp)
364 364
 
365 365
 
366 366
 /* looks inside the message, gets the Content-Disposition hdr, parse it, builds
367
- * and fills a disposition strucure for it what will be attached to hdr as
367
+ * and fills a disposition structure for it what will be attached to hdr as
368 368
  * parsed link.
369 369
  * Returns:  -1 : error
370 370
  *            0 : success
... ...
@@ -384,7 +384,7 @@ int parse_content_disposition( struct sip_msg *msg )
384 384
 		}
385 385
 	}
386 386
 
387
-	/* now, we have the headr -> look if it isn't already parsed */
387
+	/* now, we have the header -> look if it isn't already parsed */
388 388
 	if (msg->content_disposition->parsed!=0) {
389 389
 		/* already parsed, nothing more to be done */
390 390
 		return 0;
... ...
@@ -413,7 +413,7 @@ error:
413 413
 }
414 414
 
415 415
 
416
-/* Prints recursiv a disposition structure */
416
+/* Prints recursive a disposition structure */
417 417
 void print_disposition( struct disposition *disp)
418 418
 {
419 419
 	struct disposition_param *param;
... ...
@@ -421,7 +421,7 @@ void print_disposition( struct disposition *disp)
421 421
 	DBG("*** Disposition type=<%.*s>[%d]\n",
422 422
 		disp->type.len,disp->type.s,disp->type.len);
423 423
 	for( param=disp->params; param; param=param->next) {
424
-		DBG("*** DIsposition param: <%.*s>[%d]=<%.*s>[%d] is_quoted=%d\n",
424
+		DBG("*** Disposition param: <%.*s>[%d]=<%.*s>[%d] is_quoted=%d\n",
425 425
 			param->name.len,param->name.s, param->name.len,
426 426
 			param->body.len,param->body.s, param->body.len,
427 427
 			param->is_quoted);
... ...
@@ -2,7 +2,7 @@
2 2
  * $Id$
3 3
  *
4 4
  *
5
- * Copyright (C) 2001-2003 Fhg Fokus
5
+ * Copyright (C) 2001-2003 FhG Fokus
6 6
  *
7 7
  * This file is part of ser, a free SIP server.
8 8
  *
... ...
@@ -55,7 +55,7 @@ struct disposition {
55 55
 
56 56
 
57 57
 /* looks inside the message, gets the Content-Disposition hdr, parse it, builds
58
- * and fills a disposition strucure for it what will be attached to hdr as
58
+ * and fills a disposition structure for it what will be attached to hdr as
59 59
  * parsed link.
60 60
  * Returns:  -1 : error
61 61
  *            0 : success
... ...
@@ -66,14 +66,14 @@ int parse_content_disposition( struct sip_msg *msg );
66 66
 
67 67
 /* parse a string that supposed to be a disposition and fills up the structure
68 68
  * Returns: -1 : error
69
- *           o : sucess */
69
+ *           o : success */
70 70
 int parse_disposition( str *s, struct disposition *disp);
71 71
 
72 72
 
73 73
 /* Frees the entire disposition structure (params + itself) */
74 74
 void free_disposition( struct disposition **disp);
75 75
 
76
-/* Prints recursiv a disposition structure */
76
+/* Prints recursive a disposition structure */
77 77
 void print_disposition( struct disposition *disp);
78 78
 
79 79
 #endif
... ...
@@ -1,7 +1,7 @@
1 1
 /*
2 2
  * $Id$
3 3
  *
4
- * Copyright (C) 2001-2003 Fhg Fokus
4
+ * Copyright (C) 2001-2003 FhG Fokus
5 5
  *
6 6
  * This file is part of ser, a free SIP server.
7 7
  *
... ...
@@ -1,7 +1,7 @@
1 1
 /*
2 2
  * $Id$
3 3
  *
4
- * Copyright (C) 2001-2003 Fhg Fokus
4
+ * Copyright (C) 2001-2003 FhG Fokus
5 5
  *
6 6
  * This file is part of ser, a free SIP server.
7 7
  *
... ...
@@ -3,11 +3,11 @@
3 3
  *
4 4
  * Event header field body parser.
5 5
  * The parser was written for Presence Agent module only.
6
- * it recognize presence package only, no subpackages, no parameters
7
- * It should be replaced by a more generic parser if subpackages or
6
+ * it recognize presence package only, no sub-packages, no parameters
7
+ * It should be replaced by a more generic parser if sub-packages or
8 8
  * parameters should be parsed too.
9 9
  *
10
- * Copyright (C) 2001-2003 Fhg Fokus
10
+ * Copyright (C) 2001-2003 FhG Fokus
11 11
  *
12 12
  * This file is part of ser, a free SIP server.
13 13
  *
... ...
@@ -7,7 +7,7 @@
7 7
  * It should be replaced by a more generic parser if subpackages or
8 8
  * parameters should be parsed too.
9 9
  *
10
- * Copyright (C) 2001-2003 Fhg Fokus
10
+ * Copyright (C) 2001-2003 FhG Fokus
11 11
  *
12 12
  * This file is part of ser, a free SIP server.
13 13
  *
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * Expires header field body parser
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * Expires header field body parser
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -37,7 +37,7 @@
37 37
 
38 38
 typedef struct exp_body {
39 39
 	str text;            /* Original text representation */
40
-	unsigned char valid; /* Was parsing successfull ? */
40
+	unsigned char valid; /* Was parsing successful ? */
41 41
 	int val;             /* Parsed value */
42 42
 } exp_body_t;
43 43
 
... ...
@@ -4,7 +4,7 @@
4 4
  * sip first line parsing automaton
5 5
  * 
6 6
  *
7
- * Copyright (C) 2001-2003 Fhg Fokus
7
+ * Copyright (C) 2001-2003 FhG Fokus
8 8
  *
9 9
  * This file is part of ser, a free SIP server.
10 10
  *
... ...
@@ -79,7 +79,7 @@ char* parse_fline(char* buffer, char* end, struct msg_start* fl)
79 79
 			case ' ':
80 80
 			case '\t':
81 81
 				switch(state){
82
-					case START: /*allow space at the beginnig, althoug not
82
+					case START: /*allow space at the begining, although not
83 83
 								  legal*/
84 84
 						break;
85 85
 					case L_URI:
... ...
@@ -1,7 +1,7 @@
1 1
 /*
2 2
  * $Id$
3 3
  *
4
- * Copyright (C) 2001-2003 Fhg Fokus
4
+ * Copyright (C) 2001-2003 FhG Fokus
5 5
  *
6 6
  * This file is part of ser, a free SIP server.
7 7
  *
... ...
@@ -1,7 +1,7 @@
1 1
 /*
2 2
  * $Id$
3 3
  *
4
- * Copyright (C) 2001-2003 Fhg Fokus
4
+ * Copyright (C) 2001-2003 FhG Fokus
5 5
  *
6 6
  * This file is part of ser, a free SIP server.
7 7
  *
... ...
@@ -1,7 +1,7 @@
1 1
 /*
2 2
  * $Id$
3 3
  *
4
- * Copyright (C) 2001-2003 Fhg Fokus
4
+ * Copyright (C) 2001-2003 FhG Fokus
5 5
  *
6 6
  * This file is part of ser, a free SIP server.
7 7
  *
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * Fast 32-bit Header Field Name Parser
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -43,7 +43,7 @@
43 43
 #define LOWER_DWORD(d) ((d) | 0x20202020)
44 44
 
45 45
 /*
46
- * Skip all whitechars and return position of the first
46
+ * Skip all white-chars and return position of the first
47 47
  * non-white char
48 48
  */
49 49
 static inline char* skip_ws(char* p, unsigned int size)
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * Fast 32-bit Header Field Name Parser
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -1,7 +1,7 @@
1 1
 /*
2 2
  * $Id$
3 3
  *
4
- * Copyright (C) 2001-2003 Fhg Fokus
4
+ * Copyright (C) 2001-2003 FhG Fokus
5 5
  *
6 6
  * This file is part of ser, a free SIP server.
7 7
  *
... ...
@@ -1,7 +1,7 @@
1 1
 /*
2 2
  * $Id$
3 3
  *
4
- * Copyright (C) 2001-2003 Fhg Fokus
4
+ * Copyright (C) 2001-2003 FhG Fokus
5 5
  *
6 6
  * This file is part of ser, a free SIP server.
7 7
  *
... ...
@@ -1,7 +1,7 @@
1 1
 /* 
2 2
  * $Id$
3 3
  *
4
- * Copyright (C) 2001-2003 Fhg Fokus
4
+ * Copyright (C) 2001-2003 FhG Fokus
5 5
  *
6 6
  * This file is part of ser, a free SIP server.
7 7
  *
... ...
@@ -69,7 +69,7 @@ int parse_nameaddr(str* _s, name_addr_t* _a)
69 69
 		return -4;
70 70
 	}
71 71
 
72
-	     /* Totat length of the field including <> */
72
+	     /* Total length of the field including <> */
73 73
 	_a->len = uri_end - _a->name.s + 1;
74 74
 	
75 75
 	_a->uri.len = uri_end - _a->uri.s;
... ...
@@ -1,7 +1,7 @@
1 1
 /* 
2 2
  * $Id$
3 3
  *
4
- * Copyright (C) 2001-2003 Fhg Fokus
4
+ * Copyright (C) 2001-2003 FhG Fokus
5 5
  *
6 6
  * This file is part of ser, a free SIP server.
7 7
  *
... ...
@@ -41,7 +41,7 @@
41 41
 typedef struct name_addr {
42 42
 	str name;   /* Display name part */
43 43
 	str uri;    /* Uri part without surrounding <> */
44
-	int len;    /* Total lenght of the field (including all
44
+	int len;    /* Total length of the field (including all
45 45
 		    * whitechars present in the parsed message */
46 46
 } name_addr_t;
47 47
 
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * Generic Parameter Parser
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -74,9 +74,9 @@ static inline void parse_contact_class(param_hooks_t* _h, param_t* _p)
74 74
 		
75 75
 	case 'm':
76 76
 	case 'M':
77
-		if ((_p->name.len == 7) &&
78
-		    (!strncasecmp(_p->name.s + 1, "ethods", 5))) {
79
-			_p->type = P_METHODS;
77
+		if ((_p->name.len == 6) &&
78
+		    (!strncasecmp(_p->name.s + 1, "ethod", 5))) {
79
+			_p->type = P_METHOD;
80 80
 			_h->contact.method = _p;
81 81
 		}
82 82
 		break;
... ...
@@ -207,7 +207,7 @@ static inline int parse_token_param(str* _s, str* _r)
207 207
 	      */
208 208
 	_r->s = _s->s;
209 209
 
210
-	     /* Iterate throught the
210
+	     /* Iterate through the
211 211
 	      * token body
212 212
 	      */
213 213
 	for(i = 0; i < _s->len; i++) {
... ...
@@ -459,7 +459,7 @@ static inline void print_param(FILE* _o, param_t* _p)
459 459
 	case P_OTHER:     type = "P_OTHER";     break;
460 460
 	case P_Q:         type = "P_Q";         break;
461 461
 	case P_EXPIRES:   type = "P_EXPIRES";   break;
462
-	case P_METHODS:   type = "P_METHODS";   break;
462
+	case P_METHOD:    type = "P_METHOD";    break;
463 463
 	case P_TRANSPORT: type = "P_TRANSPORT"; break;
464 464
 	case P_LR:        type = "P_LR";        break;
465 465
 	case P_R2:        type = "P_R2";        break;
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * Generic Parameter Parser
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -46,7 +46,7 @@ typedef enum ptype {
46 46
 	P_OTHER = 0, /* Unknown parameter */
47 47
 	P_Q,         /* Contact: q parameter */
48 48
 	P_EXPIRES,   /* Contact: expires parameter */
49
-	P_METHODS,   /* Contact: method parameter */
49
+	P_METHOD,    /* Contact: method parameter */
50 50
 	P_TRANSPORT, /* URI: transport parameter */
51 51
 	P_LR,        /* URI: lr parameter */
52 52
 	P_R2,        /* URI: r2 parameter (ser specific) */
... ...
@@ -72,7 +72,7 @@ typedef struct param {
72 72
 	ptype_t type;         /* Type of the parameter */
73 73
 	str name;             /* Parameter name */
74 74
 	str body;             /* Parameter body */
75
-	int len;              /* Total lenght of the parameter including = and quotes */
75
+	int len;              /* Total length of the parameter including = and quotes */
76 76
 	struct param* next;   /* Next parameter in the list */
77 77
 } param_t;
78 78
 
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * Route & Record-Route header field parser
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -30,7 +30,7 @@
30 30
 /**
31 31
  * History:
32 32
  * --------
33
- * 2003-10-07  parse_rr() splited and added parse_rr_body()
33
+ * 2003-10-07  parse_rr() split and added parse_rr_body()
34 34
  * 2003-10-21  duplicate_rr() duplicate the whole linked list of RR
35 35
  */
36 36
 #include <string.h>
... ...
@@ -83,7 +83,7 @@ static inline int do_parse_rr_body(char *buf, int len, rr_t **head)
83 83
 		s.s = r->nameaddr.name.s + r->nameaddr.len;  /* Point just behind > */
84 84
 		s.len -= r->nameaddr.len;
85 85
 
86
-		trim_leading(&s); /* Skip any whitechars */
86
+		trim_leading(&s); /* Skip any white-chars */
87 87
 
88 88
 		if (s.len == 0) goto ok; /* Nothing left, finish */
89 89
 		
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * Route & Record-Route Parser
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -1,7 +1,7 @@
1 1
 /*
2 2
  * $Id$
3 3
  *
4
- * Copyright (C) 2001-2003 Fhg Fokus
4
+ * Copyright (C) 2001-2003 FhG Fokus
5 5
  *
6 6
  * This file is part of ser, a free SIP server.
7 7
  *
... ...
@@ -1,7 +1,7 @@
1 1
 /*
2 2
  * $Id$
3 3
  *
4
- * Copyright (C) 2001-2003 Fhg Fokus
4
+ * Copyright (C) 2001-2003 FhG Fokus
5 5
  *
6 6
  * This file is part of ser, a free SIP server.
7 7
  *
... ...
@@ -1,7 +1,7 @@
1 1
 /*
2 2
  * $Id$
3 3
  *
4
- * Copyright (C) 2001-2003 Fhg Fokus
4
+ * Copyright (C) 2001-2003 FhG Fokus
5 5
  *
6 6
  * This file is part of ser, a free SIP server.
7 7
  *
... ...
@@ -799,7 +799,7 @@ int parse_uri(char* buf, int len, struct sip_uri* uri)
799 799
 						break;
800 800
 					case '?':
801 801
 						if (pass){
802
-							found_user=1; /* no user, pass cannot conaint '?'*/
802
+							found_user=1; /* no user, pass cannot contain '?'*/
803 803
 							pass=0;
804 804
 						}
805 805
 						break;
... ...
@@ -811,7 +811,7 @@ int parse_uri(char* buf, int len, struct sip_uri* uri)
811 811
 	}
812 812
 	/*end of uri */
813 813
 	switch (state){
814
-		case URI_INIT: /* error empy uri */
814
+		case URI_INIT: /* error empty uri */
815 815
 			goto error_too_short;
816 816
 		case URI_USER:
817 817
 			/* this is the host, it can't be the user */
... ...
@@ -1,7 +1,7 @@
1 1
 /*
2 2
  * $Id$
3 3
  *
4
- * Copyright (C) 2001-2003 Fhg Fokus
4
+ * Copyright (C) 2001-2003 FhG Fokus
5 5
  *
6 6
  * This file is part of ser, a free SIP server.
7 7
  *
... ...
@@ -4,7 +4,7 @@
4 4
  * via parsing automaton
5 5
  * 
6 6
  *
7
- * Copyright (C) 2001-2003 Fhg Fokus
7
+ * Copyright (C) 2001-2003 FhG Fokus
8 8
  *
9 9
  * This file is part of ser, a free SIP server.
10 10
  *
... ...
@@ -1,7 +1,7 @@
1 1
 /*
2 2
  * $Id$
3 3
  *
4
- * Copyright (C) 2001-2003 Fhg Fokus
4
+ * Copyright (C) 2001-2003 FhG Fokus
5 5
  *
6 6
  * This file is part of ser, a free SIP server.
7 7
  *
... ...
@@ -4,7 +4,7 @@
4 4
  * parser helper  functions
5 5
  *
6 6
  *
7
- * Copyright (C) 2001-2003 Fhg Fokus
7
+ * Copyright (C) 2001-2003 FhG Fokus
8 8
  *
9 9
  * This file is part of ser, a free SIP server.
10 10
  *
... ...
@@ -41,7 +41,7 @@ char* eat_line(char* buffer, unsigned int len)
41 41
 {
42 42
 	char* nl;
43 43
 
44
-	/* jku .. replace for search with a library function; not conformant
44
+	/* jku .. replace for search with a library function; not conforming
45 45
  		  as I do not care about CR
46 46
 	*/
47 47
 	nl=(char *)q_memchr( buffer, '\n', len );
... ...
@@ -1,7 +1,7 @@
1 1
 /* 
2 2
  * $Id$
3 3
  *
4
- * Copyright (C) 2001-2003 Fhg Fokus
4
+ * Copyright (C) 2001-2003 FhG Fokus
5 5
  *
6 6
  * This file is part of ser, a free SIP server.
7 7
  *
... ...
@@ -51,7 +51,7 @@ inline static char* eat_lws_end(char* p, char* pend)
51 51
 {
52 52
 	while(p<pend) {
53 53
 		if (SP(*p)) p++;
54
-		/* btw--I really dislike line folding; -jiri */
54
+		/* BTW--I really dislike line folding; -jiri */
55 55
 		else if (*p=='\n' && p+1<pend && SP(*(p+1))) p+=2;
56 56
 		else if (*p=='\r' && p+2<pend && *(p+1)=='\n' 
57 57
 					&& SP(*(p+2))) p+=3;
... ...
@@ -86,7 +86,7 @@ inline static int is_empty_end(char* p, char* pend )
86 86
 
87 87
 
88 88
 /*
89
- * Find a character occurence that is not quoted
89
+ * Find a character occurrence that is not quoted
90 90
  */
91 91
 inline static char* find_not_quoted(str* _s, char _c)
92 92
 {
... ...
@@ -2,7 +2,7 @@
2 2
 /* test program -> switch speed */
3 3
 /*
4 4
  *
5
- * Copyright (C) 2001-2003 Fhg Fokus
5
+ * Copyright (C) 2001-2003 FhG Fokus
6 6
  *
7 7
  * This file is part of ser, a free SIP server.
8 8
  *
... ...
@@ -420,7 +420,7 @@ int main(int argc, char** argv)
420 420
 								break;
421 421
 							case UNKNOWN_HEADER:
422 422
 							default:
423
-								/*printf("found unkown header, state=%d\n", 
423
+								/*printf("found unknown header, state=%d\n", 
424 424
 											state);*/
425 425
 								err=1;
426 426
 								state=INITIAL;
... ...
@@ -8,7 +8,7 @@
8 8
  *  (and first compile ser with qm_malloc)
9 9
  * 
10 10
  *
11
- * Copyright (C) 2001-2003 Fhg Fokus
11
+ * Copyright (C) 2001-2003 FhG Fokus
12 12
  *
13 13
  * This file is part of ser, a free SIP server.
14 14
  *
... ...
@@ -1,5 +1,5 @@
1 1
 /*
2
- * Copyright (C) 2001-2003 Fhg Fokus 
2
+ * Copyright (C) 2001-2004 FhG Fokus 
3 3
  *
4 4
  * This file is part of ser, a free SIP server.
5 5
  *
... ...
@@ -2,7 +2,7 @@
2 2
  * $Id$
3 3
  *
4 4
  *
5
- * Copyright (C) 2001-2003 Fhg Fokus
5
+ * Copyright (C) 2001-2003 FhG Fokus
6 6
  *
7 7
  * This file is part of ser, a free SIP server.
8 8
  *
... ...
@@ -94,7 +94,7 @@ int main(int argc, char** argv)
94 94
 	
95 95
 	he=gethostbyname(name);
96 96
 	if (he==0){
97
-			printf("bad adddress <%s>\n", name);
97
+			printf("bad address <%s>\n", name);
98 98
 			goto error;
99 99
 	}
100 100
 	he=gethostbyaddr(he->h_addr_list[0], he->h_length, he->h_addrtype); 
... ...
@@ -2,7 +2,7 @@
2 2
  * $Id$
3 3
  *
4 4
  *
5
- * Copyright (C) 2001-2003 Fhg Fokus
5
+ * Copyright (C) 2001-2003 FhG Fokus
6 6
  *
7 7
  * This file is part of ser, a free SIP server.
8 8
  *
... ...
@@ -28,7 +28,7 @@ status==1 {
28 28
 	}
29 29
 
30 30
 	print " *"
31
-	print " * Copyright (C) 2001-2003 Fhg Fokus"
31
+	print " * Copyright (C) 2001-2004 FhG Fokus"
32 32
 	print " *"
33 33
 	print " * This file is part of ser, a free SIP server."
34 34
 	print " *"
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * test programs, list all interfaces and their ip address
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -314,7 +314,7 @@ int main(int argc, char**argv)
314 314
 				break;
315 315
 			case '?':
316 316
 				if (isprint(optopt))
317
-					fprintf(stderr, "Unknow option `-%c�\n", optopt);
317
+					fprintf(stderr, "Unknown option `-%c�\n", optopt);
318 318
 				else
319 319
 					fprintf(stderr, "Unknown character `\\x%x�\n", optopt);
320 320
 				goto error;
... ...
@@ -1,7 +1,7 @@
1 1
 /* $Id$ */
2 2
 /*
3 3
  *
4
- * Copyright (C) 2001-2003 Fhg Fokus
4
+ * Copyright (C) 2001-2003 FhG Fokus
5 5
  *
6 6
  * This file is part of ser, a free SIP server.
7 7
  *
... ...
@@ -231,14 +231,14 @@ int main (int argc, char** argv)
231 231
 	puts("Initializing SYS V semaphores\n");
232 232
 	semid=semget(IPC_PRIVATE,1,0700);
233 233
 	if(semid==-1){
234
-		fprintf(stderr, "ERROR: could not init sempahore: %s\n",
234
+		fprintf(stderr, "ERROR: could not init semaphore: %s\n",
235 235
 				strerror(errno));
236 236
 		goto error;
237 237
 	}
238 238
 	/*set init value to 1 (mutex)*/
239 239
 	su.val=1;
240 240
 	if (semctl(semid, 0, SETVAL, su)==-1){
241
-		fprintf(stderr, "ERROR: could not set initial sempahore value: %s\n",
241
+		fprintf(stderr, "ERROR: could not set initial semaphore value: %s\n",
242 242
 				strerror(errno));
243 243
 		semctl(semid, 0, IPC_RMID, (union semun)0);
244 244
 		goto error;
... ...
@@ -251,9 +251,9 @@ int main (int argc, char** argv)
251 251
 		goto error;
252 252
 	}
253 253
 #elif defined POSIX_SEM
254
-	puts("Initializing sempahores\n");
254
+	puts("Initializing semaphores\n");
255 255
 	if (sem_init(&sem, 0, 1)<0){
256
-		fprintf(stderr, "ERROR: could not initialize sempahore: %s\n",
256
+		fprintf(stderr, "ERROR: could not initialize semaphore: %s\n",
257 257
 				strerror(errno));
258 258
 		goto error;
259 259
 	}
... ...
@@ -724,7 +724,7 @@ int parse_uri(char* buf, int len, struct sip_uri* uri)
724 724
 						break;
725 725
 					case '?':
726 726
 						if (pass){
727
-							found_user=1; /* no user, pass cannot conaint '?'*/
727
+							found_user=1; /* no user, pass cannot contain '?'*/
728 728
 							pass=0;
729 729
 						}
730 730
 						break;
... ...
@@ -736,7 +736,7 @@ int parse_uri(char* buf, int len, struct sip_uri* uri)
736 736
 	}
737 737
 	/*end of uri */
738 738
 	switch (state){
739
-		case URI_INIT: /* error empy uri */
739
+		case URI_INIT: /* error empty uri */
740 740
 			goto error_too_short;
741 741
 		case URI_USER:
742 742
 			/* this is the host, it can't be the user */
... ...
@@ -2,7 +2,7 @@
2 2
 /* $Id$ */
3 3
 /*
4 4
  *
5
- * Copyright (C) 2001-2003 Fhg Fokus
5
+ * Copyright (C) 2001-2003 FhG Fokus
6 6
  *
7 7
  * This file is part of ser, a free SIP server.
8 8
  *
... ...
@@ -1,7 +1,7 @@
1 1
 /* $Id$ */
2 2
 /*
3 3
  *
4
- * Copyright (C) 2001-2003 Fhg Fokus
4
+ * Copyright (C) 2001-2003 FhG Fokus
5 5
  *
6 6
  * This file is part of ser, a free SIP server.
7 7
  *
... ...
@@ -32,7 +32,7 @@ regex_t* regexp;
32 32
 /* take either a dot.decimal string of ip address or a 
33 33
 domain name and returns a NETWORK ordered long int containing
34 34
 the address. i chose to internally represent the address as long for speedier
35
-comparisions.
35
+comparisons.
36 36
 
37 37
 any changes to getaddress have to be patched back to the net library.
38 38
 contact: farhan@hotfoon.com
... ...
@@ -63,7 +63,7 @@ long getaddress(char *host)
63 63
 		dotcount++;
64 64
 	}
65 65
 
66
-	/* three dots with upto three digits in before, between and after ? */
66
+	/* three dots with up to three digits in before, between and after ? */
67 67
 	if (dotcount == 3 && i > 0 && i <= 3)
68 68
 		return inet_addr(host);
69 69
 
... ...
@@ -72,7 +72,7 @@ long getaddress(char *host)
72 72
 	 inspite of what the rfc2543 :D Using SRV DNS Records recommends,
73 73
 	 we are leaving it to the operating system to do the name caching.
74 74
 
75
-	 this is an important implementational issue especially in the light
75
+	 this is an important implementation issue especially in the light
76 76
 	 dynamic dns servers like dynip.com or dyndns.com where a dial
77 77
 	 ip address is dynamically assigned a sub domain like farhan.dynip.com
78 78
 
... ...
@@ -95,7 +95,7 @@ long getaddress(char *host)
95 95
 shoot:
96 96
 takes:
97 97
 	1. the text message of buff to 
98
-	2. the address (network orderd byte order)
98
+	2. the address (network ordered byte order)
99 99
 	3. and port (not network byte ordered).
100 100
 
101 101
 starting from half a second, times-out on replies and
... ...
@@ -199,7 +199,7 @@ void shoot(char *buff, long address, int lport, int rport )
199 199
 				retryAfter = 5000;
200 200
 			/* we should have retrieved the error code and displayed
201 201
 			we are not doing that because there is a great variation
202
-			in the process of retrieveing error codes between
202
+			in the process of retrieving error codes between
203 203
 			micro$oft and *nix world*/
204 204
 			continue;
205 205
 		} else if ( ret == -1 ) {
... ...
@@ -209,7 +209,7 @@ void shoot(char *buff, long address, int lport, int rport )
209 209
                  else if (FD_ISSET(ssock, &fd)) {
210 210
 			puts ("\nmessage received\n");
211 211
 		} else {
212
-			puts("\nselect returned succesfuly, nothing received\n");
212
+			puts("\nselect returned successfully, nothing received\n");
213 213
 			continue;
214 214
 		}
215 215
 
... ...
@@ -37,7 +37,7 @@ regex_t* regexp;
37 37
 /* take either a dot.decimal string of ip address or a 
38 38
 domain name and returns a NETWORK ordered long int containing
39 39
 the address. i chose to internally represent the address as long for speedier
40
-comparisions.
40
+comparisons.
41 41
 
42 42
 any changes to getaddress have to be patched back to the net library.
43 43
 contact: farhan@hotfoon.com
... ...
@@ -68,7 +68,7 @@ long getaddress(char *host)
68 68
 		dotcount++;
69 69
 	}
70 70
 
71
-	/* three dots with upto three digits in before, between and after ? */
71
+	/* three dots with up to three digits in before, between and after ? */
72 72
 	if (dotcount == 3 && i > 0 && i <= 3)
73 73
 		return inet_addr(host);
74 74
 
... ...
@@ -77,7 +77,7 @@ long getaddress(char *host)
77 77
 	 inspite of what the rfc2543 :D Using SRV DNS Records recommends,
78 78
 	 we are leaving it to the operating system to do the name caching.
79 79
 
80
-	 this is an important implementational issue especially in the light
80
+	 this is an important implementation issue especially in the light
81 81
 	 dynamic dns servers like dynip.com or dyndns.com where a dial
82 82
 	 ip address is dynamically assigned a sub domain like farhan.dynip.com
83 83
 
... ...
@@ -142,7 +142,7 @@ add_via(char *mes)
142 142
 shoot:
143 143
 takes:
144 144
 	1. the text message of buff to 
145
-	2. the address (network orderd byte order)
145
+	2. the address (network ordered byte order)
146 146
 	3. and port (not network byte ordered).
147 147
 
148 148
 starting from half a second, times-out on replies and
... ...
@@ -248,7 +248,7 @@ void shoot(char *buff, long address, int lport, int rport )
248 248
 				retryAfter = 5000;
249 249
 			/* we should have retrieved the error code and displayed
250 250
 			we are not doing that because there is a great variation
251
-			in the process of retrieveing error codes between
251
+			in the process of retrieving error codes between
252 252
 			micro$oft and *nix world*/
253 253
 			continue;
254 254
 		} else if ( ret == -1 ) {
... ...
@@ -258,7 +258,7 @@ void shoot(char *buff, long address, int lport, int rport )
258 258
                  else if (FD_ISSET(ssock, &fd)) {
259 259
 			puts ("\nmessage received\n");
260 260
 		} else {
261
-			puts("\nselect returned succesfuly, nothing received\n");
261
+			puts("\nselect returned successfully, nothing received\n");
262 262
 			continue;
263 263
 		}
264 264
 
... ...
@@ -1,7 +1,7 @@
1 1
 /*
2 2
  * $Id$
3 3
  *
4
- * Copyright (C) 2001-2003 Fhg Fokus
4
+ * Copyright (C) 2001-2003 FhG Fokus
5 5
  *
6 6
  * This file is part of ser, a free SIP server.
7 7
  *
... ...
@@ -1,7 +1,7 @@
1 1
 /*
2 2
  * $Id$
3 3
  *
4
- * Copyright (C) 2001-2003 Fhg Fokus
4
+ * Copyright (C) 2001-2003 FhG Fokus
5 5
  *
6 6
  * This file is part of ser, a free SIP server.
7