Package: opensips / 2.2.2-3.1

fix-spellchecks.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
Description: Fix spellchecks.
Author: Răzvan Crainea <razvan@opensips.org>
Last-Update: 2016-12-02
--- a/error.c
+++ b/error.c
@@ -108,7 +108,7 @@
 			*sip_error=-E_BAD_SERVER;
 			break;
 		case E_OUT_OF_MEM:
-		/* dont disclose lack of mem in release mode */
+		/* don't disclose lack of mem in release mode */
 #ifdef DEBUG
 			error_txt="Excuse me I ran out of memory";
 			*sip_error=-E_BAD_SERVER;
--- a/main.c
+++ b/main.c
@@ -354,7 +354,7 @@
  * it's not in interactive mode and we don't want this. The non-daemonized
  * case can occur when an error is encountered before daemonize is called
  * (e.g. when parsing the config file) or when opensips is started in
- * "dont-fork" mode.
+ * "don't-fork" mode.
  * \param signum signal for killing the children
  */
 static void kill_all_children(int signum)
--- a/modules/acc/acc_extra.c
+++ b/modules/acc/acc_extra.c
@@ -299,7 +299,7 @@
 
 		/* check for overflow */
 		if (n==MAX_ACC_EXTRA) {
-			LM_WARN("array to short -> ommiting extras for accounting\n");
+			LM_WARN("array to short -> omitting extras for accounting\n");
 			goto done;
 		}
 
--- a/modules/avpops/avpops.c
+++ b/modules/avpops/avpops.c
@@ -1369,7 +1369,7 @@
 			}
 
 			if (id2db_url(id,1, is_async, parsed_url)) {
-				LM_ERR("faild to get db url!\n");
+				LM_ERR("failed to get db url!\n");
 				return -1;
 			}
 		} else {
--- a/modules/b2b_entities/dlg.c
+++ b/modules/b2b_entities/dlg.c
@@ -1338,7 +1338,7 @@
 				dlg->state= B2B_TERMINATED;
 			UPDATE_DBFLAG(dlg);
 		}
-		LM_DBG("Reseted transaction- send final reply [%p], uas_tran=0\n", dlg);
+		LM_DBG("Reset transaction- send final reply [%p], uas_tran=0\n", dlg);
 		if(sip_method == METHOD_UPDATE)
 			dlg->update_tran = NULL;
 		else
--- a/modules/call_center/call_center.c
+++ b/modules/call_center/call_center.c
@@ -738,7 +738,7 @@
 
 	/* get the flow name */
 	if (fixup_get_svalue(msg, (gparam_p)flow_var, &val)!=0) {
-		LM_ERR("failed to avaluate the flow name variable\n");
+		LM_ERR("failed to evaluate the flow name variable\n");
 		return -1;
 	}
 
--- a/modules/compression/compression_helpers.c
+++ b/modules/compression/compression_helpers.c
@@ -411,7 +411,7 @@
 {
 	switch (rc) {
 		case Z_OK:
-			LM_DBG("compression succesfull\n");
+			LM_DBG("compression successful\n");
 			return 0;
 		case Z_MEM_ERROR:
 			LM_ERR("not enough memory in compressed buffer\n");
--- a/modules/db_berkeley/bdb_lib.c
+++ b/modules/db_berkeley/bdb_lib.c
@@ -1152,7 +1152,7 @@
 				 KEY was provided; append to buffer;
 				 _k[j] contains a key, but its a key that
 				 corresponds to column k of our schema.
-				 now we know its a match, and we dont need
+				 now we know its a match, and we don't need
 				 index k for anything else
 				*/
 #ifdef BDB_EXTRA_DEBUG
--- a/modules/db_mysql/dbase.c
+++ b/modules/db_mysql/dbase.c
@@ -242,7 +242,7 @@
 	struct prep_stmt *pq_ptr;
 	struct my_stmt_ctx *ctx;
 
-	LM_INFO("reseting all statements on connection: (%p) %p\n",
+	LM_INFO("resetting all statements on connection: (%p) %p\n",
 		conn,(void*)conn->tail);
 	for( pq_ptr=CON_PS_LIST(conn); pq_ptr ; pq_ptr=pq_ptr->next ) {
 		for (ctx = pq_ptr->stmts ; ctx ; ctx=ctx->next ) {
@@ -648,7 +648,7 @@
 			return -1;
 		}
 
-		/* if add succesfull but not yet insertion time
+		/* if add successful but not yet insertion time
 		   return success and wait for number of query rows
 		   to pile up
 		*/
--- a/modules/db_perlvdb/perlvdb_conv.c
+++ b/modules/db_perlvdb/perlvdb_conv.c
@@ -379,7 +379,7 @@
 						break;
 					case DB_STRING:
 					case DB_STR:
-				/* We dont support DB_STR for now.
+				/* We don't support DB_STR for now.
 				 * Set DB_STRING instead */
 						cur_val.type = DB_STRING;
 						currentstring = SvPV(aval, len);
--- a/modules/db_virtual/db_virtual.c
+++ b/modules/db_virtual/db_virtual.c
@@ -700,7 +700,7 @@
 
 
     global->set_list[nindex1].db_list[nindex2].flags = flags;
-    /* dont worry about race conditions */
+    /* don't worry about race conditions */
 
     return init_mi_tree( 200, MI_SSTR(MI_OK));
 }
--- a/modules/dialog/dlg_hash.c
+++ b/modules/dialog/dlg_hash.c
@@ -656,7 +656,7 @@
 		if (match_dialog( dlg, callid, ftag, ttag, dir, dst_leg)==1) {
 			if (dlg->state==DLG_STATE_DELETED)
 				/* even if matched, skip the deleted dialogs as they may be
-				   a previous unsuccessfull attempt of established call
+				   a previous unsuccessful attempt of established call
 				   with the same callid and fromtag - like in auth/challenge
 				   case -bogdan */
 				continue;
--- a/modules/dialog/dlg_profile.c
+++ b/modules/dialog/dlg_profile.c
@@ -1396,7 +1396,7 @@
 					delete_entry = delete_entry->next;
 					pkg_free(deleted);
 				}
-				LM_CRIT("eror while terminating dlg\n");
+				LM_CRIT("error while terminating dlg\n");
 				return init_mi_tree( 400, MI_SSTR("Dialog internal error"));
 			}
 
--- a/modules/dialog/dlg_timer.c
+++ b/modules/dialog/dlg_timer.c
@@ -685,7 +685,7 @@
 	LM_DBG("Status Code received =  [%d]\n", statuscode);
 
 	if (rpl == FAKED_REPLY || statuscode == 408) {
-		/* timeout occured, nothing else to do now
+		/* timeout occurred, nothing else to do now
 		 * next time timer fires, it will detect ping reply was not received
 		 */
 		LM_INFO("terminating dialog ( due to timeout ) "
@@ -778,7 +778,7 @@
 	LM_DBG("Status Code received =  [%d]\n", statuscode);
 
 	if (rpl == FAKED_REPLY || statuscode == 408) {
-		/* timeout occured, nothing else to do now
+		/* timeout occurred, nothing else to do now
 		 * next time timer fires, it will detect ping reply was not received
 		 */
 		LM_INFO("terminating dialog ( due to timeout ) "
--- a/modules/dialplan/dp_db.c
+++ b/modules/dialplan/dp_db.c
@@ -174,7 +174,7 @@
 	start = dp_hlist;
 	if (!start) {
 		LM_BUG("not even default partition defined!"
-				"An error occured!\n");
+				"An error occurred!\n");
 		return -1;
 	}
 
--- a/modules/dispatcher/dispatcher.c
+++ b/modules/dispatcher/dispatcher.c
@@ -422,7 +422,7 @@
 
 	ds_db_head_t *new_partition = pkg_malloc(sizeof (ds_db_head_t));
 	if (new_partition == NULL) {
-		LM_ERR("failed to alocate data in shm\n");
+		LM_ERR("failed to allocate data in shm\n");
 		return -1;
 	}
 
@@ -1458,7 +1458,7 @@
 					return -1;
 				}
 				if (tmp_lst->next != NULL) {
-					LM_ERR("Only one set is allowd\n");
+					LM_ERR("Only one set is allowed\n");
 					return -1;
 				}
 				i_set = tmp_lst->v.ival;
--- a/modules/drouting/dr_cb.c
+++ b/modules/drouting/dr_cb.c
@@ -118,7 +118,7 @@
 		}
 		cb_sort_index = (long int)param;
 		if(cb_sort_index > N_MAX_SORT_CBS) {
-			LM_ERR("Sort cbs array not large enough to accomodate cb at dr\n");
+			LM_ERR("Sort cbs array not large enough to accommodate cb at dr\n");
 			goto error;
 		}
 		if(dr_sort_cbs[cb_sort_index] != NULL) {
--- a/modules/emergency/emergency_methods.c
+++ b/modules/emergency/emergency_methods.c
@@ -700,7 +700,7 @@
 				}else{
 					if(resp == 0){
 						if(call_cell->lro == empty){
-							LM_ERR("dont exits esgwri/ert or lro to routing\n");
+							LM_ERR("don't exits esgwri/ert or lro to routing\n");
 							goto end;
 						}
 					}
@@ -708,7 +708,7 @@
 			}else{
 				LM_DBG("exits lro to routing %d\n", resp);
 				if(call_cell->lro == empty){
-					LM_ERR("dont exits esgwri/ert or lro to routing\n");
+					LM_ERR("don't exits esgwri/ert or lro to routing\n");
 					goto end;
 				}
 			}
@@ -1203,7 +1203,7 @@
 		if(locationHeader && strlen(locationHeader)>1){
 			lie = locationHeader;
 		}else{
-			LM_ERR("INVITE whithout location information\n");
+			LM_ERR("INVITE without location information\n");
 			return -1;
 		}
 	}
--- a/modules/ldap/ldap_api_fn.c
+++ b/modules/ldap/ldap_api_fn.c
@@ -568,7 +568,7 @@
 
 	switch (rc) {
 		case -1:
-			/* Leave the connection for other requests if we're not succesfull */
+			/* Leave the connection for other requests if we're not successful */
 			release_ldap_connection(conn);
 			LM_ERR("[%s]: ldap result failed\n", lds->name);
 			return -1;
@@ -578,7 +578,7 @@
 			return 0;
 		default:
 			/* receive successfull */
-			LM_DBG("Succesfully received response from ldap server!\n");
+			LM_DBG("Successfully received response from ldap server!\n");
 			/* FIXME we release the connection now; calling another async
 			 * operation before calling ldap_result will break this mechanism,
 			 * since the connection is released and the handle is being kept
--- a/modules/load_balancer/lb_db.c
+++ b/modules/load_balancer/lb_db.c
@@ -47,7 +47,7 @@
 #define check_val( _val, _type, _not_null, _is_empty_str) \
 	do{\
 		if ((_val)->type!=_type) { \
-			LM_ERR("bad colum type\n");\
+			LM_ERR("bad column type\n");\
 			goto error;\
 		} \
 		if (_not_null && (_val)->nul) { \
--- a/modules/load_balancer/lb_parser.c
+++ b/modules/load_balancer/lb_parser.c
@@ -103,7 +103,7 @@
 	} while(end && *p);
 
 	if (n==0) {
-		LM_ERR("empty list of resorces\n");
+		LM_ERR("empty list of resources\n");
 		goto error;
 	}
 	LM_DBG("discovered %d resources\n",n);
--- a/modules/mi_fifo/mi_fifo.c
+++ b/modules/mi_fifo/mi_fifo.c
@@ -197,7 +197,7 @@
 	}
 
 	if( init_mi_child()!=0) {
-		LM_CRIT("faild to init the mi process\n");
+		LM_CRIT("failed to init the mi process\n");
 		exit(-1);
 	}
 
--- a/modules/mi_xmlrpc_ng/http_fnc.c
+++ b/modules/mi_xmlrpc_ng/http_fnc.c
@@ -371,7 +371,7 @@
 				html_p_data->buffer.len, tree);
 		break;
 	default:
-		LM_ERR("Version param not set acordingly");
+		LM_ERR("Version param not set accordingly");
 		return -1;
 	
 	}
@@ -862,7 +862,7 @@
 			return -1;
 		break;
 	default:
-		LM_ERR("Version param not set acordingly");
+		LM_ERR("Version param not set accordingly");
 		return -1;
 	
 	}
--- a/modules/osp/destination.c
+++ b/modules/osp/destination.c
@@ -411,10 +411,10 @@
                 if (!dest->endtime) {
                     dest->endtime = time(NULL);
                 } else {
-                    LM_DBG("180, 181, 182 or 183 end allready recorded\n");
+                    LM_DBG("180, 181, 182 or 183 end already recorded\n");
                 }
             } else {
-                LM_DBG("180, 181, 182 or 183 allready recorded\n");
+                LM_DBG("180, 181, 182 or 183 already recorded\n");
             }
             break;
         case 200:
@@ -431,7 +431,7 @@
                     dest->destmedia[0] = '\0';
                 }
             } else {
-                LM_DBG("200 or 202 allready recorded\n");
+                LM_DBG("200 or 202 already recorded\n");
             }
             break;
         case 408:
@@ -439,7 +439,7 @@
             if (!dest->endtime) {
                 dest->endtime = time(NULL);
             } else {
-                LM_DBG("408 or 487 end allready recorded\n");
+                LM_DBG("408 or 487 end already recorded\n");
             }
             break;
         default:
--- a/modules/perl/perlfunc.c
+++ b/modules/perl/perlfunc.c
@@ -108,7 +108,7 @@
 	}
 
 	if (prm && pprm && pv_printf_s(msg, (pv_elem_p)prm, pprm)!=0) {
-		LM_ERR("invalid function paramters given!\n");
+		LM_ERR("invalid function parameters given!\n");
 		return -1;
 	}
 
--- a/modules/pike/ip_tree.c
+++ b/modules/pike/ip_tree.c
@@ -97,7 +97,7 @@
 			lset = 0;
 			continue;
 		}
-		/* alloc and init succesfull */
+		/* alloc and init successful */
 		break;
 	}
 
--- a/modules/presence/presentity.c
+++ b/modules/presence/presentity.c
@@ -73,7 +73,7 @@
 			prefix, (int)startup_time, pid, counter, publ_count);
 	if( etag->len <0 )
 	{
-		LM_ERR("unsuccessfull sprintf\n ");
+		LM_ERR("unsuccessful sprintf\n ");
 		return -1;
 	}
 	if(etag->len > ETAG_LEN)
--- a/modules/presence_dialoginfo/notify_body.c
+++ b/modules/presence_dialoginfo/notify_body.c
@@ -207,7 +207,7 @@
 		/* LM_DBG("[n]=%d, [i]=%d, [j]=%d xml_array[i]=%p\n", n, i, j, xml_array[j] ); */
 		p_root= xmlDocGetRootElement(xml_array[i]);
 			if(p_root ==NULL) {
-				LM_ERR("while geting the xml_tree root element\n");
+				LM_ERR("while getting the xml_tree root element\n");
 				goto error;
 			}
 			if (p_root->children) {
--- a/modules/presence_xml/notify_body.c
+++ b/modules/presence_xml/notify_body.c
@@ -268,7 +268,7 @@
 	if(xml_array== NULL)
 	{
 
-		LM_ERR("while alocating memory");
+		LM_ERR("while allocating memory");
 		return NULL;
 	}
 	memset(xml_array, 0, (n+2)*sizeof(xmlDocPtr)) ;
@@ -301,7 +301,7 @@
 	p_root = xmlDocGetNodeByName( xml_array[j], root_name, NULL);
 	if(p_root ==NULL)
 	{
-		LM_ERR("while geting the xml_tree root\n");
+		LM_ERR("while getting the xml_tree root\n");
 		goto error;
 	}
 
@@ -312,7 +312,7 @@
 		new_p_root= xmlDocGetNodeByName( xml_array[i], root_name, NULL);
 		if(new_p_root ==NULL)
 		{
-			LM_ERR("while geting the xml_tree root\n");
+			LM_ERR("while getting the xml_tree root\n");
 			goto error;
 		}
 
@@ -485,7 +485,7 @@
     xml_array = (xmlDocPtr*)pkg_malloc( (n+2)*sizeof(xmlDocPtr));
     if(xml_array == NULL)
     {
-        LM_ERR("while alocating memory");
+        LM_ERR("while allocating memory");
         return NULL;
     }
     memset(xml_array, 0, (n+2)*sizeof(xmlDocPtr)) ;
@@ -574,7 +574,7 @@
         current_doc_root = xmlDocGetRootElement(xml_array[i]);
         if(current_doc_root == NULL)
         {
-            LM_ERR("while geting the xml_tree root\n");
+            LM_ERR("while getting the xml_tree root\n");
             continue;
         }
 
--- a/modules/proto_bin/proto_bin.c
+++ b/modules/proto_bin/proto_bin.c
@@ -263,8 +263,8 @@
 		buf += n;
 		len -= n;
 	} else {
-		/* succesful write from the first try */
-		LM_DBG("Async succesful write from first try on %p\n",c);
+		/* successful write from the first try */
+		LM_DBG("Async successful write from first try on %p\n",c);
 		return len;
 	}
 
@@ -522,7 +522,7 @@
 
 	if (n<0) {
 		/* error during conn get, return with error too */
-		LM_ERR("failed to aquire connection\n");
+		LM_ERR("failed to acquire connection\n");
 		return -1;
 	}
 
@@ -548,7 +548,7 @@
 				/* connect is still in progress, break the sending
 				 * flow now (the actual write will be done when 
 				 * connect will be completed */
-				LM_DBG("Succesfully started async connection \n");
+				LM_DBG("Successfully started async connection \n");
 				tcp_conn_release(c, 0);
 				return len;
 			}
@@ -879,7 +879,7 @@
 			/* report back we have more writting to be done */
 			return 1;
 		} else {
-			LM_ERR("Error occured while sending async chunk %d (%s)\n",
+			LM_ERR("Error occurred while sending async chunk %d (%s)\n",
 				   errno,strerror(errno));
 			/* report the conn as broken */
 			return -1;
--- a/modules/proto_hep/proto_hep.c
+++ b/modules/proto_hep/proto_hep.c
@@ -388,8 +388,8 @@
 		buf += n;
 		len -= n;
 	} else {
-		/* succesful write from the first try */
-		LM_DBG("Async succesful write from first try on %p\n",c);
+		/* successful write from the first try */
+		LM_DBG("Async successful write from first try on %p\n",c);
 		return len;
 	}
 
@@ -674,7 +674,7 @@
 
 	if (n < 0) {
 		/* error during conn get, return with error too */
-		LM_ERR("failed to aquire connection\n");
+		LM_ERR("failed to acquire connection\n");
 		return -1;
 	}
 
@@ -700,7 +700,7 @@
 				/* connect is still in progress, break the sending
 				 * flow now (the actual write will be done when
 				 * connect will be completed */
-				LM_DBG("Succesfully started async connection \n");
+				LM_DBG("Successfully started async connection \n");
 				tcp_conn_release(c, 0);
 				return len;
 			}
@@ -1121,7 +1121,7 @@
 			/* report back we have more writting to be done */
 			return 1;
 		} else {
-			LM_ERR("Error occured while sending async chunk %d (%s)\n",
+			LM_ERR("Error occurred while sending async chunk %d (%s)\n",
 				   errno,strerror(errno));
 			/* report the conn as broken */
 			return -1;
--- a/modules/proto_wss/proto_wss.c
+++ b/modules/proto_wss/proto_wss.c
@@ -334,7 +334,7 @@
 
 	if (n<0) {
 		/* error during conn get, return with error too */
-		LM_ERR("failed to aquire connection\n");
+		LM_ERR("failed to acquire connection\n");
 		get_time_difference(get,tcpthreshold,tcp_timeout_con_get);
 		return -1;
 	}
--- a/modules/ratelimit/ratelimit_helper.c
+++ b/modules/ratelimit/ratelimit_helper.c
@@ -231,7 +231,7 @@
 	/* resolve the default algorithm */
 	rl_default_algo = get_rl_algo(rl_default_algo_s);
 	if (rl_default_algo == PIPE_ALGO_NOP) {
-		LM_ERR("unknown algoritm <%.*s>\n", rl_default_algo_s.len,
+		LM_ERR("unknown algorithm <%.*s>\n", rl_default_algo_s.len,
 			rl_default_algo_s.s);
 		return -1;
 	}
@@ -890,7 +890,7 @@
 		}
 
 		if (!*pipe) {
-			/* if the pipe does not exist, alocate it in case we need it later */
+			/* if the pipe does not exist, allocate it in case we need it later */
 			*pipe = shm_malloc(sizeof(rl_pipe_t));
 			if (!*pipe) {
 				LM_ERR("no more shm memory\n");
--- a/modules/rest_client/rest_methods.c
+++ b/modules/rest_client/rest_methods.c
@@ -129,7 +129,7 @@
 	CURLMsg *cmsg;
 
 	if (transfers == FD_SETSIZE) {
-		LM_ERR("too many ongoing tranfers: %d\n", FD_SETSIZE);
+		LM_ERR("too many ongoing transfers: %d\n", FD_SETSIZE);
 		clean_header_list;
 		return ASYNC_NO_IO;
 	}
--- a/modules/seas/encode_content_type.c
+++ b/modules/seas/encode_content_type.c
@@ -164,7 +164,7 @@
 	 chsubtype="SUBTYPE_UNKNOWN";
 	 break;
       default:
-	 chsubtype="(didnt know this subtype existed)";
+	 chsubtype="(didn't know this subtype existed)";
    }
 
    fprintf(fp,"%sTYPE:[%s]\n",prefix,chtype);
--- a/modules/seas/encode_msg.c
+++ b/modules/seas/encode_msg.c
@@ -111,7 +111,7 @@
  * parts.
  *
  * RETURNS: LENGTH of structure on success, <0 if failure
- * if there was failure, you dont need to pkg_free the payload (it is done inside).
+ * if there was failure, you don't need to pkg_free the payload (it is done inside).
  * if there was success, you __NEED_TO_PKG_FREE_THE_PAYLOAD__ from the calling function.
  *
  * The encoded meta-info is composed by 3 sections:
--- a/modules/seas/encode_parameters.c
+++ b/modules/seas/encode_parameters.c
@@ -51,7 +51,7 @@
  *
  * TODO this is little shitty, someone should unify all the param flavours
  * to a sigle universal type of parameter (to_param,param,disposition_param)
- * the way is done here, at least, we dont have the parameter-hanling code spread all around.
+ * the way is done here, at least, we don't have the parameter-hanling code spread all around.
  */
 int encode_parameters(unsigned char *where,void *pars,char *hdrstart,void *_body,char to)
 {
--- a/modules/seas/event_dispatcher.c
+++ b/modules/seas/event_dispatcher.c
@@ -177,7 +177,7 @@
       sig_flag=0;
       clean_index=0;
       LM_INFO("polling [2 ServSock] [1 pipe] [%d App Servers]"
-			  " [%d Uncomplete AS]\n",as_nr,unc_as_nr);
+			  " [%d Incomplete AS]\n",as_nr,unc_as_nr);
       poll_events = poll(poll_fds,3+unc_as_nr+as_nr,-1);
       if (poll_events == -1) {
 	 if(errno==EINTR){
@@ -276,19 +276,19 @@
 		   }
 	    }
 	 }
-	 /*now handle data sent from uncompleted AS*/
-	 LM_DBG("Scanning data from %d uncomplete AS \n",unc_as_nr);
+	 /*now handle data sent from incompleted AS*/
+	 LM_DBG("Scanning data from %d incomplete AS \n",unc_as_nr);
 	 clean_index=0;
 	 for(i=0;i<unc_as_nr && poll_events;i++){
 	    poll_tmp=&poll_fds[3+as_nr+i];
 	    if(poll_tmp->revents)
 	       poll_events--;
 	    if(poll_tmp->revents & POLLIN){
-	       LM_DBG("POLLIN found in %d uncomplete AS \n",i);
+	       LM_DBG("POLLIN found in %d incomplete AS \n",i);
 	       poll_tmp->revents &= (~POLLIN);
 	       fd=handle_unc_as_data(poll_tmp->fd);
 	       if(fd>0){
-		  /* there's a new AS, push the uncomplete poll_fds up and set the AS */
+		  /* there's a new AS, push the incomplete poll_fds up and set the AS */
 		  for(k=i;k>0;k--){
 		     j=3+as_nr+k;
 		     poll_fds[j].fd=poll_fds[j-1].fd;
@@ -300,7 +300,7 @@
 		  poll_fds[3+as_nr].revents=0;
 		  as_nr++;/*not very sure if this is thread-safe*/
 		  unc_as_nr--;
-	       }else if(fd<=0){/* pull the upper set of uncomplete AS down and take this one out*/
+	       }else if(fd<=0){/* pull the upper set of incomplete AS down and take this one out*/
 		  poll_tmp->revents=0;
 		  for(k=i;k<(unc_as_nr-1);k++){
 		     j=3+as_nr+k;
@@ -315,7 +315,7 @@
 	       }
 	    }
 	    if(poll_tmp->revents & POLLHUP){
-	       LM_DBG("POLLHUP found in %d uncomplete AS \n",i);
+	       LM_DBG("POLLHUP found in %d incomplete AS \n",i);
 	       close(poll_tmp->fd);
 	       for(k=i;k<(unc_as_nr-1);k++){
 		  j=3+as_nr+k;
@@ -682,7 +682,7 @@
 
 /**
  * Handles data from an AppServer. First searches in the AS table which was the AS
- * that sent the data (we dont already know it because this comes from a poll_fd
+ * that sent the data (we don't already know it because this comes from a poll_fd
  * struct). When the one is found, it calls process_event_reply, which in turn
  * looks if there's a complete event in the buffer, and if there is, processes it.
  *
@@ -877,17 +877,17 @@
    int i,j,k,len;
    char *name1;
    struct as_entry *as;
-   /*first, we see if the data to read is from any of the uncompleted as's*/
+   /*first, we see if the data to read is from any of the incompleted as's*/
    for(i=0;i<2*MAX_UNC_AS_NR ;i++)
       if(unc_as_t[i].valid && unc_as_t[i].fd==fd)
 	 break;
    if(i==2*MAX_UNC_AS_NR){
-      LM_ERR("has received an fd which is not in uncompleted AS array\n");
+      LM_ERR("has received an fd which is not in incompleted AS array\n");
       return -1;
    }
    if(unc_as_t[i].flags & HAS_NAME){/*shouldn't happen, if it has a name, it shouldnt be in fdset[]*/
       LM_WARN("this shouldn't happen\n");
-      return 0;/*already have a name, please take me out the uncompleted AS array*/
+      return 0;/*already have a name, please take me out the incompleted AS array*/
    }
    LM_DBG("Reading client name\n");
 
@@ -966,7 +966,7 @@
 	 return -1;
       }
    }else if(n==0){
-      LM_WARN("uncomplete AS has disconnected before giving its name\n");
+      LM_WARN("incomplete AS has disconnected before giving its name\n");
       return -2;
    }
    if(namelen>dstlen || namelen==0){
@@ -982,7 +982,7 @@
 	 return -1;
       }
    }else if(n==0){
-      LM_WARN("uncomplete AS has disconnected before giving its name\n");
+      LM_WARN("incomplete AS has disconnected before giving its name\n");
       return -2;
    }
    dst[namelen]=0;
@@ -1024,7 +1024,7 @@
       case 'e':
 	 for(i=0;i<MAX_UNC_AS_NR && unc_as_t[i].valid;i++);
 	 if(i==MAX_UNC_AS_NR){
-	    LM_WARN("no more uncomplete connections allowed\n");
+	    LM_WARN("no more incomplete connections allowed\n");
 	    goto error;
 	 }
 	 unc_as_t[i].fd=sock;
@@ -1035,7 +1035,7 @@
       case 'a':
 	 for(i=MAX_UNC_AS_NR;(i<(2*MAX_UNC_AS_NR)) && unc_as_t[i].valid;i++);
 	 if(i==2*MAX_UNC_AS_NR){
-	    LM_WARN("no more uncomplete connections allowed\n");
+	    LM_WARN("no more incomplete connections allowed\n");
 	    goto error;
 	 }
 	 unc_as_t[i].fd=sock;
--- a/modules/seas/seas.c
+++ b/modules/seas/seas.c
@@ -458,7 +458,7 @@
       LM_DBG("new CANCEL\n");
       originalT=seas_f.tmb.t_lookup_original_t(msg);
       if(!originalT || originalT==T_UNDEFINED){
-	 /** we dont even pass the unknown CANCEL to JAIN*/
+	 /** we don't even pass the unknown CANCEL to JAIN*/
 	 LM_WARN("CANCEL does not match any existing transaction!!\n");
 	 goto error;
       }else{
--- a/modules/seas/seas_action.c
+++ b/modules/seas/seas_action.c
@@ -1037,7 +1037,7 @@
       body.s[body.len]=0;
       LM_DBG("Trying to construct a Sip Request with: body:%d[%.*s] headers:%d[%.*s]\n",\
 	    body.len,body.len,body.s,headers.len,headers.len,headers.s);
-      /*t_reply_with_body un-ref-counts the transaction, so dont use it anymore*/
+      /*t_reply_with_body un-ref-counts the transaction, so don't use it anymore*/
    }
    /*Now... create the UAC !!
     * it would be great to know the hash_index and the label that have been assigned
--- a/modules/seas/statistics.c
+++ b/modules/seas/statistics.c
@@ -338,7 +338,7 @@
 	 }
 	 retrn=print_stats_info(f,sock);
 	 if(retrn==-1){
-	    /**simple error happened, dont worry*/
+	    /**simple error happened, don't worry*/
 	       LM_ERR("printing statisticss \n");
 	       continue;
 	 }else if(retrn==-2){
--- a/modules/sipcapture/sipcapture.c
+++ b/modules/sipcapture/sipcapture.c
@@ -3104,7 +3104,7 @@
 		EMPTY_STR(sco.ruri_user);
 	}
 	else {
-		LM_ERR("unknow type [%i]\n", msg->first_line.type);
+		LM_ERR("unknown type [%i]\n", msg->first_line.type);
 		EMPTY_STR(sco.method);
 		EMPTY_STR(sco.reply_reason);
 		EMPTY_STR(sco.ruri);
--- a/modules/sipmsgops/codecs.c
+++ b/modules/sipmsgops/codecs.c
@@ -141,7 +141,7 @@
 
 			if( text.s == NULL )
 			{
-				LM_ERR("Error alocating lump buffer\n");
+				LM_ERR("Error allocating lump buffer\n");
 				return -1;
 			}
 
--- a/modules/snmpstats/openserSIPPortTable.c
+++ b/modules/snmpstats/openserSIPPortTable.c
@@ -193,7 +193,7 @@
 		curIndexOfIP   = (NUM_IP_OCTETS + 1) * curSocketIdx;
 
 		/* Retrieve an existing row, or a new row if one doesn't
-		 * allready exist. */
+		 * already exist. */
 		currentRow = getRow(1, &theList[curIndexOfIP]);
 
 		if (currentRow == NULL) {
--- a/modules/sql_cacher/sql_cacher.c
+++ b/modules/sql_cacher/sql_cacher.c
@@ -638,7 +638,7 @@
 			c_entry->cachedb_url.len, c_entry->cachedb_url.s);
 		return NULL;
 	}
-	/* setting and geting a test key in cachedb */
+	/* setting and getting a test key in cachedb */
 	if (new_db_hdls->cdbf.set(new_db_hdls->cdbcon, &cdb_test_key, &cdb_test_val, 0) < 0) {
 		LM_ERR("Failed to set test key in cachedb: %.*s\n",
 			c_entry->cachedb_url.len, c_entry->cachedb_url.s);
--- a/modules/sst/sst_handlers.c
+++ b/modules/sst/sst_handlers.c
@@ -954,7 +954,7 @@
 	/*
 	 * The parse_supported() will return 0 if found and parsed OK, -1
 	 * if not found or an error parsing the one it did find! So assume
-	 * it is not found if unsuccessfull.
+	 * it is not found if unsuccessful.
 	 */
 	if (msg->supported && parse_supported(msg) == 0 &&
 	(get_supported(msg) & F_SUPPORTED_TIMER))
--- a/modules/stun/stun.c
+++ b/modules/stun/stun.c
@@ -398,7 +398,7 @@
     /*
      * return number of bytes eaten
      * 0					; ok
-     * -1   attribute allready exists		; will be ignored
+     * -1   attribute already exists		; will be ignored
      * -1   non-mandatory unknown attribute	; will be ignored
      * -2   responce address familly != 0x01	; drop msg
      * -3   attribute length overflows buffer	; drop msg
@@ -444,7 +444,7 @@
 		msg->changeRequestFlags = ntohl(*(T32*) b);
 		b+=4;
 	    }else{
-		LM_DBG("Attribute CHANGE_REQUEST allready exists; "
+		LM_DBG("Attribute CHANGE_REQUEST already exists; "
 			"ignore attribute\n");
 		rc = -1;
 	    }
@@ -471,7 +471,7 @@
 		b+=1;
 
 		if(msg->responceAddress->family != 0x01){
-		    LM_DBG("Responce address familly != 0x01\n");
+		    LM_DBG("Response address familly != 0x01\n");
 		    rc = -2;
 		}
 
@@ -482,7 +482,7 @@
 		b+=4;
 
 	    }else{
-		LM_DBG("Attribute RESPONSE_ADDRESS allready exists; "
+		LM_DBG("Attribute RESPONSE_ADDRESS already exists; "
 			"ignore attribute\n");
 		rc = -1;
 	    }
@@ -517,7 +517,7 @@
 		b+=20;
 
 	    }else{
-		LM_DBG("Attribute allready exists, will ignore attribute\n");
+		LM_DBG("Attribute already exists, will ignore attribute\n");
 		rc = -1;
 	    }
 
--- a/modules/tls_mgm/tls_domain.c
+++ b/modules/tls_mgm/tls_domain.c
@@ -318,7 +318,7 @@
 	if (tls_db_enabled)
 		lock_start_read(dom_lock);
 	if (!avp) {
-		LM_DBG("no TLS client doman AVP set, looking "
+		LM_DBG("no TLS client domain AVP set, looking "
 			"for socket based TLS client domain\n");
 		dom = tls_find_client_domain_addr(ip, port);
 		if (dom) {
--- a/modules/uac_redirect/redirect.c
+++ b/modules/uac_redirect/redirect.c
@@ -318,7 +318,7 @@
 	} else {
 		if (set) {
 			if (id!=msg->id) {
-				LM_WARN("filters set but not used -> reseting to default\n");
+				LM_WARN("filters set but not used -> resetting to default\n");
 				reset_filters();
 				id = msg->id;
 			}
--- a/net/net_tcp.c
+++ b/net/net_tcp.c
@@ -979,12 +979,12 @@
 		LM_ERR("maximum number of connections exceeded: %d/%d\n",
 					tcp_connections_no, tcp_max_connections);
 		close(new_sock);
-		return 1; /* success, because the accept was succesfull */
+		return 1; /* success, because the accept was successful */
 	}
 	if (tcp_init_sock_opt(new_sock)<0){
 		LM_ERR("tcp_init_sock_opt failed\n");
 		close(new_sock);
-		return 1; /* success, because the accept was succesfull */
+		return 1; /* success, because the accept was successful */
 	}
 
 	/* add socket to list */
@@ -1011,7 +1011,7 @@
 		LM_ERR("tcpconn_new failed, closing socket\n");
 		close(new_sock);
 	}
-	return 1; /* accept() was succesfull */
+	return 1; /* accept() was successful */
 }
 
 
@@ -1021,7 +1021,7 @@
  * \param    tcpconn - pointer to the tcp_connection for which we have an io ev.
  * \param    fd_i    - index in the fd_array table (needed for delete)
  * \return   handle_* return convention, but on success it always returns 0
- *           (because it's one-shot, after a succesfull execution the fd is
+ *           (because it's one-shot, after a successful execution the fd is
  *            removed from tcp_main's watch fd list and passed to a child =>
  *            tcp_main is not interested in further io events that might be
  *            queued for this fd)
@@ -1746,7 +1746,7 @@
 
 			/* was startup route executed so far ? */
 			if (startup_done!=NULL && *startup_done==0 && r==0) {
-				LM_DBG("runing startup for first TCP\n");
+				LM_DBG("running startup for first TCP\n");
 				if(run_startup_route()< 0) {
 					LM_ERR("Startup route processing failed\n");
 					report_failure_status();
--- a/net/net_udp.c
+++ b/net/net_udp.c
@@ -354,7 +354,7 @@
 
 					/* first UDP proc runs statup_route (if defined) */
 					if(*chd_rank == 1 && startup_done!=NULL) {
-						LM_DBG("runing startup for first UDP\n");
+						LM_DBG("running startup for first UDP\n");
 						if(run_startup_route()< 0) {
 							report_failure_status();
 							*startup_done = -1;
--- a/pvar.c
+++ b/pvar.c
@@ -3214,7 +3214,7 @@
 		reset_proc_log_level();
 	} else {
 		if ((val->flags&PV_TYPE_INT)==0) {
-			LM_ERR("input for $log_level found not to be an interger\n");
+			LM_ERR("input for $log_level found not to be an integer\n");
 			return -1;
 		}
 		set_proc_log_level(val->ri);
--- a/modules/jabber/xjab_worker.c
+++ b/modules/jabber/xjab_worker.c
@@ -1027,7 +1027,7 @@
 		if(!strncasecmp(type, "unsubscribed", 12))
 		{
 #ifdef XJ_EXTRA_DEBUG
-			LM_DBG("user <%s> does not allow to see this"
+			LM_DBG("user <%s> does not allow one to see this"
 				" presence status\n", from);
 #endif
 			if(prc->state != XJ_PS_REFUSED)
--- a/modules/seas/event_dispatcher.h
+++ b/modules/seas/event_dispatcher.h
@@ -29,7 +29,7 @@
    union sockaddr_union su;
 };
 
-/*uncomplete as table, from 0 to MAX_UNC_AS_NR are event, from then on are action*/
+/*incomplete as table, from 0 to MAX_UNC_AS_NR are event, from then on are action*/
 /*should only be modified by the dispatcher process, or we should add a lock*/
 extern struct unc_as unc_as_t[];
 
--- a/osipsconsole.8
+++ b/osipsconsole.8
@@ -300,10 +300,10 @@
 removes the entire dialplan table
 .TP
 .B dialplan rmdpid <dpid> 
-removes all the gived dpid entries
+removes all the given dpid entries
 .TP
 .B dialplan rmrule <dpid> <prio> 
-removes all the gived dpid/prio entries
+removes all the given dpid/prio entries
 
 .TP 16
 .I Command 'unixsock'