Дилян Палаузов пре 2 година
родитељ
комит
e0a058b081
53 измењених фајлова са 114 додато и 113 уклоњено
  1. 1 1
      misc/examples/exec/exec_s5b.cfg
  2. 1 1
      misc/examples/ims/icscf/README.md
  3. 2 2
      misc/examples/ims/icscf/kamailio.cfg
  4. 1 1
      misc/examples/ims/pcscf/README.md
  5. 2 2
      misc/examples/ims/pcscf/kamailio.cfg
  6. 1 1
      misc/examples/ims/pcscf/pcscf.cfg.sample
  7. 1 1
      misc/examples/ims/pcscf/route/mo.cfg
  8. 1 1
      misc/examples/ims/pcscf/sems/sems.conf
  9. 1 1
      misc/examples/ims/scscf/README.md
  10. 3 3
      misc/examples/ims/scscf/kamailio.cfg
  11. 1 1
      misc/examples/ims/scscf/scscf.cfg.sample
  12. 1 1
      misc/examples/kamailio/acc-mysql.cfg
  13. 1 1
      misc/examples/kamailio/acc.cfg
  14. 2 2
      misc/examples/kamailio/ctd.sh
  15. 1 1
      misc/examples/kamailio/fork.cfg
  16. 1 1
      misc/examples/kamailio/nathelper.cfg
  17. 1 1
      misc/examples/kamailio/replicate.cfg
  18. 1 1
      misc/examples/kamailio/web_im/README
  19. 2 2
      misc/examples/kemi/kamailio-basic-kemi-ruby.rb
  20. 1 1
      misc/examples/kemi/kamailio-basic-kemi.cfg
  21. 1 1
      misc/examples/mixed/acc.cfg
  22. 2 2
      misc/examples/mixed/kamailio-minimal-anycast.cfg
  23. 2 2
      misc/examples/mixed/kamailio-minimal-proxy.cfg
  24. 1 1
      misc/examples/mixed/nathelper.cfg
  25. 2 2
      misc/examples/mixed/onr.cfg
  26. 1 1
      misc/examples/mixed/replicate.cfg
  27. 7 7
      misc/examples/mixed/sip-router.cfg.m4
  28. 1 1
      misc/examples/mixed/voicemail.cfg
  29. 2 2
      misc/examples/obsoleted/imgw.cfg
  30. 1 1
      misc/examples/obsoleted/secondary.cfg
  31. 1 1
      misc/examples/obsoleted/sms.cfg
  32. 1 1
      misc/examples/obsoleted/smsgw.cfg
  33. 1 1
      misc/examples/obsoleted/test.cfg
  34. 2 2
      misc/examples/obsoleted/tmtest.cfg
  35. 1 1
      misc/examples/pkg/kamailio-basic.cfg
  36. 5 5
      misc/examples/pkg/kamailio-oob.cfg
  37. 1 1
      misc/examples/pkg/sip-router-basic.cfg
  38. 16 16
      misc/examples/pkg/sip-router-oob.cfg
  39. 3 3
      misc/examples/presence/full-no-failover.cfg
  40. 2 2
      misc/examples/presence/no-db.cfg
  41. 2 2
      misc/examples/scripts/ctd.sh
  42. 4 4
      misc/examples/scripts/serresponse
  43. 1 1
      misc/examples/scripts/web_im/README
  44. 2 2
      misc/examples/webrtc/kamailio-default-websocket.cfg
  45. 1 1
      misc/scripts/dbtext/ser_dbtext.sh
  46. 2 2
      misc/scripts/mysql/sip-router_mysql.sh
  47. 2 2
      misc/scripts/postgres/ser_postgres.sh
  48. 9 9
      misc/scripts/serconf.sh
  49. 2 2
      misc/tools/kemi/python_mock/README.md
  50. 1 1
      misc/tools/kemi/python_mock/kemi_mock.py
  51. 7 6
      misc/tools/pike_top/pike_top.c
  52. 1 1
      misc/tools/profile/launch.sh
  53. 1 1
      misc/tools/sipgrep/sipgrep

+ 1 - 1
misc/examples/exec/exec_s5b.cfg

@@ -33,7 +33,7 @@ route{
 		};
 	};
 	# user found, forward to his current uri now; if any 
-	# forwarding error occurs (e.g., busy or cancelled recevied
+	# forwarding error occurs (e.g., busy or cancelled received
 	# from downstream), proceed to failure_route[1]
 	t_on_failure("1");
 	if (!t_relay()) {

+ 1 - 1
misc/examples/ims/icscf/README.md

@@ -2,7 +2,7 @@
 
 Project Website:
 
-  * http://www.kamailio.org
+  * https://www.kamailio.org
 
 ## Database Structure
 

+ 2 - 2
misc/examples/ims/icscf/kamailio.cfg

@@ -1,10 +1,10 @@
 #!KAMAILIO
 #
 # This config file implements the basic I-CSCF functionality
-#     - web: http://www.kamailio.org
+#     - web: https://www.kamailio.org
 #     - git: http://sip-router.org
 #
-# Refer to the Core CookBook at http://www.kamailio.org/dokuwiki/doku.php
+# Refer to the Core CookBook at https://www.kamailio.org/w/documentation/
 # for an explanation of possible statements, functions and parameters.
 #
 # Direct your questions about this file to: <[email protected]>.

+ 1 - 1
misc/examples/ims/pcscf/README.md

@@ -2,7 +2,7 @@
 
 Project Website:
 
-  * http://www.kamailio.org
+  * https://www.kamailio.org
 
 ## Database Structure
 

+ 2 - 2
misc/examples/ims/pcscf/kamailio.cfg

@@ -2,10 +2,10 @@
 # TelcoSuite (V3) Proxy-CSCF
 #
 # Kamailio SIP Server
-#     - web: http://www.kamailio.org
+#     - web: https://www.kamailio.org
 #     - git: http://sip-router.org
 #
-# Refer to the Core CookBook at http://www.kamailio.org/dokuwiki/doku.php
+# Refer to the Core CookBook at https://www.kamailio.org/w/documentation/
 # for an explanation of possible statements, functions and parameters.
 #
 

+ 1 - 1
misc/examples/ims/pcscf/pcscf.cfg.sample

@@ -1,4 +1,4 @@
-# IP-Adress for incoming SIP-Traffic, in the following format:
+# IP-Address for incoming SIP-Traffic, in the following format:
 
 # SIP / UDP
 listen=udp:0.0.0.0:5060

+ 1 - 1
misc/examples/ims/pcscf/route/mo.cfg

@@ -1,5 +1,5 @@
 ######################################################################
-# Originating, Intial Requests
+# Originating, Initial Requests
 ######################################################################
 route[MO]
 {

+ 1 - 1
misc/examples/ims/pcscf/sems/sems.conf

@@ -446,7 +446,7 @@ use_default_signature=yes
 # optional parameter: unhandled_reply_loglevel={error|warn|info|debug|no}
 # 
 # the default application logic implemented in the applications is to stop 
-# the session right after sending BYE, without waiting for a reply. this 
+# the session right after sending BYE, without waiting for a reply. This
 # leads to many log entries of the form 
 # ERROR: [b6fa6bb0] handleSipMsg (AmSipDispatcher.cpp:48): unhandled 
 #    reply:  [code:200;phrase:[OK];... ]

+ 1 - 1
misc/examples/ims/scscf/README.md

@@ -2,7 +2,7 @@
 
 Project Website:
 
-  * http://www.kamailio.org
+  * https://www.kamailio.org
 
 ## Database Structure
 

+ 3 - 3
misc/examples/ims/scscf/kamailio.cfg

@@ -1,10 +1,10 @@
 #!KAMAILIO
 #
 # This config file implements the basic P-CSCF functionality
-#     - web: http://www.kamailio.org
+#     - web: https://www.kamailio.org
 #     - git: http://sip-router.org
 #
-# Refer to the Core CookBook at http://www.kamailio.org/dokuwiki/doku.php
+# Refer to the Core CookBook at https://www.kamailio.org/w/documentation/
 # for an explanation of possible statements, functions and parameters.
 #
 # Direct your questions about this file to: <[email protected]>.
@@ -799,7 +799,7 @@ route[apply_privacy]
 }
 
 ######################################################################
-# Originating, Intial Requests
+# Originating, Initial Requests
 ######################################################################
 route[orig]
 {

+ 1 - 1
misc/examples/ims/scscf/scscf.cfg.sample

@@ -25,7 +25,7 @@ alias=scscf.mnc001.mcc001.3gppnetwork.org
 ##!define DB_URL "con1=>mysql://scscf:[email protected]/scscf"
 ##!define DB_URL2 "con2=>mysql://scscf:[email protected]/scscf"
 
-# Select Authorization Algorhithm:
+# Select Authorization Algorithm:
 ##!define REG_AUTH_DEFAULT_ALG "AKAv1-MD5"
 ##!define REG_AUTH_DEFAULT_ALG "AKAv2-MD5"
 ##!define REG_AUTH_DEFAULT_ALG "MD5"

+ 1 - 1
misc/examples/kamailio/acc-mysql.cfg

@@ -1,6 +1,6 @@
 # $Id$
 #
-# Sample config for MySQL accouting with Kamailio 1.2.0
+# Sample config for MySQL accounting with Kamailio 1.2.0
 #
 # - mysql module must be compiled and installed
 #

+ 1 - 1
misc/examples/kamailio/acc.cfg

@@ -1,7 +1,7 @@
 #
 # $Id$
 #
-# example: accounting calls to nummerical destinations
+# example: accounting calls to numerical destinations
 #
 
 # ------------------ module loading ----------------------------------

+ 2 - 2
misc/examples/kamailio/ctd.sh

@@ -28,7 +28,7 @@
 # with Cisco 7960, Mitel 5055, Grandstream and Pingtel; Windows 
 # Messenger does not support REFER. Never tested on solaris. 
 # Some cisco 7960 images don't work (in particular, POS30202
-# doesnt, POS3-03-8-21 does)
+# doesn't, POS3-03-8-21 does)
 #
 # History:
 # --------
@@ -132,7 +132,7 @@ fifo_job="$!"
 
 # initiate dummy INVITE with pre-3261 "on-hold"
 # (note the dots -- they mean in order of appearance:
-# outbound uri, end of headers, end of body; eventualy
+# outbound uri, end of headers, end of body; eventually
 # the FIFO request must be terminated with an empty line)
 #cat <<EOF
 cat > $FIFO <<EOF

+ 1 - 1
misc/examples/kamailio/fork.cfg

@@ -61,7 +61,7 @@ failure_route[2] {
 	# try out the last resort destination
 	append_branch("sip:[email protected]");
 	log(1, "second redirection\n");
-	# we no more call t_on_negative here; if this destination
+	# we no more call t_on_failure here; if this destination
 	# fails too, transaction will complete
 	t_relay();
 }

+ 1 - 1
misc/examples/kamailio/nathelper.cfg

@@ -7,7 +7,7 @@
 # you will also have to install Maxim's RTP proxy. The proxy is enforced
 # if one of the parties is behind a NAT.
 #
-# If you have an endpoing in the public internet which is known to
+# If you have an endpoint in the public internet which is known to
 # support symmetric RTP (Cisco PSTN gateway or voicemail, for example),
 # then you don't have to force RTP proxy. If you don't want to enforce
 # RTP proxy for some destinations than simply use t_relay() instead of

+ 1 - 1
misc/examples/kamailio/replicate.cfg

@@ -37,7 +37,7 @@ modparam("auth", "secret", "alsdkhglaksdhfkloiwr")
 route{
 
 	# initial sanity checks -- messages with
-	# max_forwars==0, or excessively long requests
+	# max_forwards==0, or excessively long requests
 	if (!mf_process_maxfwd_header("10")) {
 		sl_send_reply("483", "Too Many Hops");
 		exit;

+ 1 - 1
misc/examples/kamailio/web_im/README

@@ -2,7 +2,7 @@
 # $Id$
 #
 
-This examle illustrate how to use ser's FIFO interface
+This example illustrates how to use ser's FIFO interface
 to initate sending an instant message from a webpage.
 
 To enable this example, you need

+ 2 - 2
misc/examples/kemi/kamailio-basic-kemi-ruby.rb

@@ -176,7 +176,7 @@ def ksr_route_withindlg()
   exit
 end
 
-# IP authorization and user authenticaton
+# IP authorization and user authentication
 def ksr_route_auth()
 	if !KSR.is_REGISTER() then
     # source IP allowed
@@ -225,7 +225,7 @@ def ksr_route_natmanage()
       end
     end
   end
-  #KSR.info("Natmange - returning if NAT flags set")
+  #KSR.info("Natmanage - returning if NAT flags set")
   return if !KSR.isflagset($FLT_NATS) and !KSR.isbflagset($FLB_NATB)
   #KSR.info("Natmanage - RTPPROXY from here on")
   KSR::RTPPROXY::RTPPROXY_manage("co");

+ 1 - 1
misc/examples/kemi/kamailio-basic-kemi.cfg

@@ -1,7 +1,7 @@
 #!KAMAILIO
 #
 # Kamailio SIP Server v5.0 - default configuration script
-#     - web: http://www.kamailio.org
+#     - web: https://www.kamailio.org
 #     - git: http://sip-router.org
 #
 # Direct your questions about this file to: <[email protected]>

+ 1 - 1
misc/examples/mixed/acc.cfg

@@ -1,7 +1,7 @@
 #
 # $Id$
 #
-# example: accounting calls to nummerical destinations
+# example: accounting calls to numerical destinations
 #
 
 # ------------------ module loading ----------------------------------

+ 2 - 2
misc/examples/mixed/kamailio-minimal-anycast.cfg

@@ -82,7 +82,7 @@ listen=udp:IPADDR_THISNODE:5060
 
 ####### Custom Parameters #########
 
-/* These parameters can be modified runtime via RPC interface
+/* These parameters can be modified at runtime via RPC interface
  * - see the documentation of 'cfg_rpc' module.
  *
  * Format: group.id = value 'desc' description
@@ -142,7 +142,7 @@ modparam("rr", "append_fromtag", 0)
 modparam("acc", "early_media", 0)
 modparam("acc", "report_ack", 0)
 modparam("acc", "report_cancels", 0)
-/* by default ww do not adjust the direct of the sequential requests.
+/* by default we do not adjust the direct of the sequential requests.
  * if you enable this parameter, be sure the enable "append_fromtag"
  * in "rr" module */
 modparam("acc", "detect_direction", 0)

+ 2 - 2
misc/examples/mixed/kamailio-minimal-proxy.cfg

@@ -56,7 +56,7 @@ children=2
 
 ####### Custom Parameters #########
 
-/* These parameters can be modified runtime via RPC interface
+/* These parameters can be modified at runtime via RPC interface
  * - see the documentation of 'cfg_rpc' module.
  *
  * Format: group.id = value 'desc' description
@@ -116,7 +116,7 @@ modparam("rr", "append_fromtag", 0)
 modparam("acc", "early_media", 0)
 modparam("acc", "report_ack", 0)
 modparam("acc", "report_cancels", 0)
-/* by default ww do not adjust the direct of the sequential requests.
+/* by default we do not adjust the direct of the sequential requests.
  * if you enable this parameter, be sure the enable "append_fromtag"
  * in "rr" module */
 modparam("acc", "detect_direction", 0)

+ 1 - 1
misc/examples/mixed/nathelper.cfg

@@ -7,7 +7,7 @@
 # you will also have to install Maxim's RTP proxy. The proxy is enforced
 # if one of the parties is behind a NAT.
 #
-# If you have an endpoing in the public internet which is known to
+# If you have an endpoint in the public internet which is known to
 # support symmetric RTP (Cisco PSTN gateway or voicemail, for example),
 # then you don't have to force RTP proxy. If you don't want to enforce
 # RTP proxy for some destinations than simply use t_relay() instead of

+ 2 - 2
misc/examples/mixed/onr.cfg

@@ -4,7 +4,7 @@
 # example script showing both types of forking;
 # incoming message is forked in parallel to
 # 'nobody' and 'parallel', if no positive reply
-# appears with final_response timer, nonsense
+# appears within final_response timer, nonsense
 # is retried (serial forking); than, destination
 # 'foo' is given last chance
 
@@ -57,7 +57,7 @@ failure_route[2] {
 	# try out the last resort destination
 	append_branch("sip:[email protected]");
 	log(1, "second redirection\n");
-	# we no more call t_on_negative here; if this destination
+	# we no more call t_on_failure here; if this destination
 	# fails too, transaction will complete
 	t_relay();
 }

+ 1 - 1
misc/examples/mixed/replicate.cfg

@@ -34,7 +34,7 @@ modparam("auth", "secret", "alsdkhglaksdhfkloiwr")
 route{
 
 	# initial sanity checks -- messages with
-	# max_forwars==0, or excessively long requests
+	# max_forwards==0, or excessively long requests
 	if (!mf_process_maxfwd_header("10")) {
 		sl_send_reply("483", "Too Many Hops");
 		break;

+ 7 - 7
misc/examples/mixed/sip-router.cfg.m4

@@ -76,7 +76,7 @@ loadmodule "/usr/local/lib/sip-router/modules/domain.so"
 modparam("usrloc|acc|auth_db|group|msilo", "db_url", "sql://sip-router:heslo@localhost/sip-router")
 
 # -- usrloc params --
-/* 0 -- dont use mysql, 1 -- write_through, 2--write_back */
+/* 0 -- don't use mysql, 1 -- write_through, 2 -- write_back */
 modparam("usrloc", "db_mode", 2)
 modparam("usrloc", "timer_interval", 10)
 
@@ -187,7 +187,7 @@ route {
 
 
         # anti-spam -- if somene claims to belong to our domain in From,
-        # challenge him (skip REGISTERs -- we will chalenge them later)
+        # challenge him (skip REGISTERs -- we will challenge them later)
         if (search("(From|F):.*@SER_HOST_REGEX")) {
                 # invites forwarded to other domains, like FWD may cause subsequent 
                 # request to come from there but have iptel in From -> verify
@@ -297,8 +297,8 @@ route {
                 break;
         };
 
-        # some UACs might be fooled by Contacts our UACs generate to make MSN
-        # happy (web-im, e.g.) -- tell its urneachable
+        # some UACs might be fooled by Contacts our UACs generated to make MSN
+        # happy (web-im, e.g.) -- tell it is unreachable
         if (uri =~ "sip:daemon@") {
                 sl_send_reply("410", "Daemon is gone");
                 break;
@@ -317,7 +317,7 @@ route {
                 break;
         };
 
-	# Remove leading + if it is a number begining with +
+	# Remove leading + if it is a number beginning with +
 	if (uri =~ "^[a-zA-Z]+:\+[0-9]+@") {
 		strip(1);
 		prefix("00");
@@ -372,7 +372,7 @@ route {
 }
 
 #
-# Forcing media relay if necesarry
+# Forcing media relay if necessary
 #
 route[NAT_ROUTE] {
     if (uri=~"[@:](192\.168\.|10\.|172\.(1[6-9]|2[0-9]|3[0-1])\.)" && !search("^Route:")) {
@@ -384,7 +384,7 @@ route[NAT_ROUTE] {
             	force_rtp_proxy();
 		append_hf("P-RTP-Proxy: YES\r\n");
 	    };
-            append_hf("P-NATed-Calee: Yes\r\n");
+            append_hf("P-NATed-Callee: Yes\r\n");
     };
 
     # nat processing of replies; apply to all transactions (for example,

+ 1 - 1
misc/examples/mixed/voicemail.cfg

@@ -41,7 +41,7 @@ route{
 
 
 	# initial sanity checks -- messages with
-	# max_forwars==0, or excessively long requests
+	# max_forwards==0, or excessively long requests
 	if (!mf_process_maxfwd_header("10")) {
 		sl_send_reply("483", "Too Many Hops");
 		break;

+ 2 - 2
misc/examples/obsoleted/imgw.cfg

@@ -77,7 +77,7 @@ route{
 		if (! t_newtran())
 		{
 			# retransmit whatever we have
-			# it's useless to do any retransmision, because we haven't
+			# it's useless to do any retransmission, because we haven't
 			# sent any statefull reply. (bogdan)
 			#t_retransmit_reply();
 			break;
@@ -142,7 +142,7 @@ route{
 		if (! t_newtran())
 		{
 			# retransmit whatever we have
-			# it's useless to do any retransmision, because we haven't
+			# it's useless to do any retransmission, because we haven't
 			# sent any statefull reply. (bogdan)
 			#t_retransmit_reply();
 			break;

+ 1 - 1
misc/examples/obsoleted/secondary.cfg

@@ -197,7 +197,7 @@ route{
 			/* added by Bogdan for cpl demo - Dorgham request*/
 			if (uri=~"sip:test@.*" && method=="INVITE")
 			{
-       			log("SER : runing CPL!! :)\n");
+				log("SER : running CPL!! :)\n");
        			if ( !cpl_run_script() )
        			{
            			log("SER : Error during running CPL script!\n");

+ 1 - 1
misc/examples/obsoleted/sms.cfg

@@ -60,7 +60,7 @@ route{
 	# UAS script implementation
 
 	# if that is not a new transaction... (t_newtran is a new
-	# function which atomicaly adds a transaction if there is
+	# function which atomically adds a transaction if there is
 	# none)
 	if (! t_newtran()) {
 		# retransmit whatever we have

+ 1 - 1
misc/examples/obsoleted/smsgw.cfg

@@ -99,7 +99,7 @@ route{
 	if (! t_newtran())
 	{
 		# retransmit whatever we have 
-		# it's useless to do any retransmision, because we haven't
+		# it's useless to do any retransmission, because we haven't
 		# sent any statefull reply. (bogdan)
 		#t_retransmit_reply();
 		break;

+ 1 - 1
misc/examples/obsoleted/test.cfg

@@ -180,7 +180,7 @@ route{
 	/* added by Bogdan for cpl demo - Dorgham request*/
 	if (uri=~"sip:test@.*" && method=="INVITE")
 	{
-		log("SER : runing CPL!! :)\n");
+		log("SER : running CPL!! :)\n");
 		if ( !cpl_run_script() )
 		{
    			log("SER : Error during running CPL script!\n");

+ 2 - 2
misc/examples/obsoleted/tmtest.cfg

@@ -100,7 +100,7 @@ route{
 	# - we need it for calls  from gateways (otherwise, subsequent 
 	#   requests from the other # party will attempt to contact gateway 
 	#  	directly through blocked ports)
-	# - we need it for Windows Messanger's IM sessions to cross
+	# - we need it for Windows Messenger's IM sessions to cross
 	#   firewalls -- we force all MESSAGEs to go via our server
 	#   to avoid blocking port numbers (some firewalls can do
 	#   standard SIP but are puzzled by Microsoft's proprietary
@@ -135,7 +135,7 @@ route{
 		log("LOG Request is REGISTER\n");
 		# prohibit attempts to grab someone else's To address 
 		# using  valid credentials; the only exception is the user
-		# 'replciator' permitted to generate 3-rd party registrations
+		# 'replicator' permitted to generate 3-rd party registrations
 
 		# update Contact database
        	log("LOG: REGISTER is authorized, saving location\n");

+ 1 - 1
misc/examples/pkg/kamailio-basic.cfg

@@ -1,7 +1,7 @@
 #!KAMAILIO
 #
 # Kamailio SIP Server v5.1 - default basic configuration script
-#     - web: http://www.kamailio.org
+#     - web: https://www.kamailio.org
 #     - git: http://sip-router.org
 #
 # Direct your questions about this file to: <[email protected]>

+ 5 - 5
misc/examples/pkg/kamailio-oob.cfg

@@ -1,7 +1,7 @@
 #!KAMAILIO
 #
 # Kamailio SIP Server v5.1 - default advanced configuration script
-#     - web: http://www.kamailio.org
+#     - web: https://www.kamailio.org
 #     - git: http://sip-router.org
 #
 # Direct your questions about this file to: <[email protected]>
@@ -194,7 +194,7 @@ tcp_accept_no_cl=yes
 
 ####### Custom Parameters #########
 
-# These parameters can be modified runtime via RPC interface
+# These parameters can be modified at runtime via RPC interface
 # - see the documentation of 'cfg_rpc' module.
 #
 # Format: group.id = value 'desc' description
@@ -360,7 +360,7 @@ modparam("registrar", "gruu_enabled", 0)
 modparam("acc", "early_media", 0)
 modparam("acc", "report_ack", 0)
 modparam("acc", "report_cancels", 0)
-/* by default ww do not adjust the direct of the sequential requests.
+/* by default we do not adjust the direct of the sequential requests.
    if you enable this parameter, be sure the enable "append_fromtag"
    in "rr" module */
 modparam("acc", "detect_direction", 0)
@@ -862,7 +862,7 @@ route[PSTN] {
 #!ifdef WITH_PSTN
 	# check if PSTN GW IP is defined
 	if (strempty($sel(cfg_get.pstn.gw_ip))) {
-		xlog("SCRIPT: PSTN rotuing enabled but pstn.gw_ip not defined\n");
+		xlog("SCRIPT: PSTN routing enabled but pstn.gw_ip not defined\n");
 		return;
 	}
 
@@ -919,7 +919,7 @@ route[TOVOICEMAIL] {
 
 	# check if VoiceMail server IP is defined
 	if (strempty($sel(cfg_get.voicemail.srv_ip))) {
-		xlog("SCRIPT: VoiceMail rotuing enabled but IP not defined\n");
+		xlog("SCRIPT: VoiceMail routing enabled but IP not defined\n");
 		return;
 	}
 	if($avp(oexten)==$null)

+ 1 - 1
misc/examples/pkg/sip-router-basic.cfg

@@ -50,7 +50,7 @@ rev_dns=no      # (cmd. line: -R)
 #group=sip-router
 #disable_core=yes #disables core dumping
 #open_fd_limit=1024 # sets the open file descriptors limit
-#mhomed=yes  # usefull for multihomed hosts, small performance penalty
+#mhomed=yes  # useful for multihomed hosts, small performance penalty
 #disable_tcp=yes
 #tcp_accept_aliases=yes # accepts the tcp alias via option (see NEWS)
 sip_warning=yes

+ 16 - 16
misc/examples/pkg/sip-router-oob.cfg

@@ -91,7 +91,7 @@
 #     from untrusted sources, such as the user agents or foreign proxy
 #     servers
 # * refined DB use (e.g., flatstore for acc)
-# * miscellanous:
+# * miscellaneous:
 #  - dialog module for monitoring purposes
 #  - more extensive logging using xlog (controlled by gflags/gAVPs)
 # * leveraging 2.1 features:
@@ -181,7 +181,7 @@ rev_dns=no              # (cmd. line: -R)
 #group=sip-router
 #disable_core=yes       # disables core dumping
 #open_files_limit=20480  # sets the open file descriptors limit
-#mhomed=yes             # usefull for multihomed hosts, small performance
+#mhomed=yes             # useful for multihomed hosts, small performance
                         # penalty
 disable_tcp=no          # be conservative about enabling TCP -- it can
                         # degrade performance a lot
@@ -268,7 +268,7 @@ tls_enable=yes
 #!endif
 
 # -------------------- Custom Parameters ------------------------------------
-# These parameters can be modified runtime via RPC interface,
+# These parameters can be modified at runtime via RPC interface,
 # read the documentation of cfg_rpc module.
 
 # Session Timer parameters, RFC 4028
@@ -521,7 +521,7 @@ modparam("tm", "restart_fr_on_each_reply", 0)
 # -- xmlrpc --
 
 #!ifdef WITH_XMLRPC
-# Use a sub-route. This is a lot safer then relying on the request method
+# Use a sub-route. This is a lot safer than relying on the request method
 # to distinguish HTTP from SIP
 modparam("xmlrpc", "route", "XMLRPC");
 #!endif
@@ -596,7 +596,7 @@ route
 	# to PSTN. If email-like URIs are used, having a URI alias for
 	# processing incoming PSTN-to-ip requests may be useful, too.
 	# Important: the script is assuming one global pstn-gw for all
-	# domains! Failure to allow gw_ip to be a domain-specic attribute
+	# domains! Failure to allow gw_ip to be a domain-specific attribute
 	# would result in security gaps (onsend_route checks only for one
 	# gateway).
 
@@ -642,12 +642,12 @@ route
 	route(INBOUND);
 
 	# There is SIP user for the called address. Before trying PSTN,
-	# you may have to convert the adress, for instance by using
+	# you may have to convert the address, for instance by using
 	# ENUM.
 	#route(ENUM);
 
 	# Last resort: if none of the previous route has found
-	# the recepient, try PSTN.
+	# the recipient, try PSTN.
 	route(PSTN);
 
 	# nothing matched
@@ -807,14 +807,14 @@ route[UAC_NAT_DETECTION]
 	#  - mismatch of transport IP and IP in Via
 	#  - mismatch of transport port and port in Via
 	# in all other cases we skip the port test, because lots of clients
-	# do not correctly advertise their emphemeral port number in their Via
+	# do not correctly advertise their ephemeral port number in their Via
 	# header in case of reliable transports (although they are not behind
 	# a NAT).
 
 	# Warning: if you are dealing with SIP implementations which are
-	# running on public IP and do as-symmertic signaling for whatever
+	# running on public IP and do as-symmetric signaling for whatever
 	# reason the following check will make their signaling symmetric.
-	# If you need to support as-symmertic signaling reduce the following
+	# If you need to support as-symmetric signaling reduce the following
 	# nat_uac_test for UDP to "3" or even "1".
 	if ((proto == UDP && nat_uac_test("19")) ||
 		(nat_uac_test("3")) ||
@@ -881,9 +881,9 @@ route[UAS_NAT_DETECTION]
 	# IP address into the Contact header, but "forget" about the port.
 
 	# Warning: if you are dealing with SIP implementations which are
-	# running on public IP and do as-symmertic signaling for whatever
+	# running on public IP and do as-symmetric signaling for whatever
 	# reason the following check will make their signaling symmetric.
-	# If you need to support as-symmertic signaling reduce the following
+	# If you need to support as-symmetric signaling reduce the following
 	# nat_uac_test for UDP to just "1".
 	if ( (proto == UDP && nat_uac_test("33")) ||
 		(nat_uac_test("1") ||
@@ -982,7 +982,7 @@ route[PROCESS_ROUTES]
 			route(SESSION_TIMER);
 		}
 
-		# Some broken devices overide the dialog route set with the
+		# Some broken devices override the dialog route set with the
 		# Record-Route headers from each in-dialog request. So, we
 		# better add Record-Route headers again. If we call
 		# record_route() after loose_route(), the AVP cookies are
@@ -1348,7 +1348,7 @@ route[INBOUND]
 		if (isflagset(FLAG_NAT_REG)) {
 			setflag(FLAG_NAT); /* client was behind NAT when made registration */
 		}
-		# We set the tm module timers according to the prefences
+		# We set the tm module timers according to the preferences
 		# of the callee (avoid too long ringing of his phones).
 		# Note1: Timer values have to be in ms now!
 		# Note2: This makes even more sense if you switch to a
@@ -1363,7 +1363,7 @@ route[INBOUND]
 		}
 
 		# This enables session timer support as long as one side
-		# supports it.  If you want to have session timmer support
+		# supports it.  If you want to have session timer support
 		# only for calls from your PSTN gateway but not between pure
 		# VoIP calls you can remove the comment marks from the if
 		# clause in the next line and closing bracket below.
@@ -1496,7 +1496,7 @@ route[SESSION_TIMER]
 		eval_oper("(int)", -1);
 		eval_oper(">=", -2);
 
-		# Let's check for the Suported header.
+		# Let's check for the Supported header.
 		if (hf_value_exists("Supported", "timer")) {
 			# The UAC supports Session-Timer, so we
 			# only need to take a look at the values

+ 3 - 3
misc/examples/presence/full-no-failover.cfg

@@ -14,7 +14,7 @@ alias="test-domain.com"
 #user=ser
 #group=ser
 #open_fd_limit=1024 # sets the open file descriptors limit
-mhomed=yes  # usefull for multihomed hosts, small performance penalty
+mhomed=yes  # useful for multihomed hosts, small performance penalty
 
 #disable_tcp=yes 
 #tcp_accept_aliases=yes # accepts the tcp alias via option (see NEWS)
@@ -108,7 +108,7 @@ modparam("pa", "timer_interval", 10)
 
 # route for generated SUBSCRIBE requests for presence
 modparam("presence_b2b", "presence_route", "<sip:127.0.0.1;transport=tcp;lr>")
-# waiting time from error to new attepmt about SUBSCRIBE
+# waiting time from error to new attempt about SUBSCRIBE
 modparam("presence_b2b", "on_error_retry_time", 60)
 # how long wait for NOTIFY with Subscription-Status=terminated after unsubscribe
 modparam("presence_b2b", "wait_for_term_notify", 33)
@@ -229,7 +229,7 @@ route{
 				
 					if (!have_flat_list()) {
 						# query_resource_list failed or was not called
-						# do standard RLS query acording to To/AOR
+						# do standard RLS query according to To/AOR
 						if (!query_rls_services()) {
 							log(1, "XCAP query failed\n");
 							t_reply("404", "No such list URI");

+ 2 - 2
misc/examples/presence/no-db.cfg

@@ -7,7 +7,7 @@ port=5060
 children=2
 alias="test-domain.com"
 
-mhomed=yes  # usefull for multihomed hosts, small performance penalty
+mhomed=yes  # useful for multihomed hosts, small performance penalty
 
 #tcp_accept_aliases=yes # accepts the tcp alias via option (see NEWS)
 #tcp_poll_method="sigio_rt"
@@ -142,7 +142,7 @@ route{
 					
 					if (!have_flat_list()) {
 						# query_resource_list failed or was not called
-						# do standard RLS query acording to To/AOR
+						# do standard RLS query according to To/AOR
 						query_rls_services();
 					}
 					

+ 2 - 2
misc/examples/scripts/ctd.sh

@@ -28,7 +28,7 @@
 # with Cisco 7960, Mitel 5055, Grandstream and Pingtel; Windows 
 # Messenger does not support REFER. Never tested on solaris. 
 # Some cisco 7960 images don't work (in particular, POS30202
-# doesnt, POS3-03-8-21 does)
+# doesn't, POS3-03-8-21 does)
 #
 # History:
 # --------
@@ -129,7 +129,7 @@ fifo_job="$!"
 
 # initiate dummy INVITE with pre-3261 "on-hold"
 # (note the dots -- they mean in order of appearance:
-# outbound uri, end of headers, end of body; eventualy
+# outbound uri, end of headers, end of body; eventually
 # the FIFO request must be terminated with an empty line)
 cat > $FIFO <<EOF
 

+ 4 - 4
misc/examples/scripts/serresponse

@@ -6,8 +6,8 @@
 #
 # This script uses sipsak (http://sipsak.berlios.de) to test if a
 # SIP server is still responding to requests and will send messages
-# to the developers. It is configured for the iptel.org enviroment.
-# PLEASE adapt it to your local enviroment.
+# to the developers. It is configured for the iptel.org environment.
+# PLEASE adapt it to your local environment.
 #
 
 [email protected]
@@ -38,7 +38,7 @@ if [ -e $LOCKF ] ; then
 	if [ ! -e $LOCKF ] ; then
 		echo "This is a reminder !!!" > $TMP
 		echo "The lockfile $LOCKF" >> $TMP
-		echo "was just removed because ist was older then $LOCK_TIMEOUT minutes." >> $TMP
+		echo "was just removed because it was older than $LOCK_TIMEOUT minutes." >> $TMP
 		echo "But if you receive this mail the cause of this error still exists or respawned." >> $TMP
 		SERR_SUBJECT="serresponse reminder"
 	fi
@@ -124,7 +124,7 @@ if [ ! -e $LOCKF ] ; then
 			done
 		else
 			echo "unconfigured serresponse executed on ${HOSTN}." > $TMP
-			echo "Warning: This script if configured for the iptel.org enviroment."
+			echo "Warning: This script is configured for the iptel.org environment."
 			echo "         Please configure it to your local settings first."
 			echo
 			echo "If you do not press CTRL-C within 2 seconds an informational message"

+ 1 - 1
misc/examples/scripts/web_im/README

@@ -2,7 +2,7 @@
 # $Id$
 #
 
-This examle illustrate how to use ser's FIFO interface
+This example illustrates how to use ser's FIFO interface
 to initate sending an instant message from a webpage.
 
 To enable this example, you need

+ 2 - 2
misc/examples/webrtc/kamailio-default-websocket.cfg

@@ -198,7 +198,7 @@ tcp_rd_buf_size=16384
 
 ####### Custom Parameters #########
 
-/* These parameters can be modified runtime via RPC interface
+/* These parameters can be modified at runtime via RPC interface
  * - see the documentation of 'cfg_rpc' module.
  *
  * Format: group.id = value 'desc' description
@@ -350,7 +350,7 @@ modparam("registrar", "gruu_enabled", 0)
 modparam("acc", "early_media", 0)
 modparam("acc", "report_ack", 0)
 modparam("acc", "report_cancels", 0)
-/* by default ww do not adjust the direct of the sequential requests.
+/* by default we do not adjust the direct of the sequential requests.
  * if you enable this parameter, be sure the enable "append_fromtag"
  * in "rr" module */
 modparam("acc", "detect_direction", 0)

+ 1 - 1
misc/scripts/dbtext/ser_dbtext.sh

@@ -38,7 +38,7 @@ DESCRIPTION
   actions.
 
   The database template for SER dbtext database is stored in dbtext_template
-  directory which can usualy be found in /var/lib/ser (depending on
+  directory which can usually be found in /var/lib/ser (depending on
   installation). You can use the template to create SER database manually if
   you cannot or do not want to use this shell wrapper.
 

+ 2 - 2
misc/scripts/mysql/sip-router_mysql.sh

@@ -52,7 +52,7 @@ DESCRIPTION
   section COMMANDS for brief overview of supported actions.
 
   The SQL definition of tables and initial data within SER database is stored
-  in a separate files which can be usualy found under /usr/local/share/ser
+  in a separate files which can be usually found under /usr/local/share/ser
   (depending on installation). You can use those files to create SER database
   manually if you cannot or do not want to use this shell wrapper.
 
@@ -97,7 +97,7 @@ COMMANDS
     that the tables are empty.
 
   update-data
-    Update initial data in the database. This command deletes vendor-controled
+    Update initial data in the database. This command deletes vendor-controlled
     rows from the database and replaces them with new data.
 
 

+ 2 - 2
misc/scripts/postgres/ser_postgres.sh

@@ -33,7 +33,7 @@ Usage: $COMMAND create  [database]
   for SER and SERWeb. In addition to that two users are created, one with
   read/write permissions and one with read-only permissions.
 
-  Commmand 'drop' deletes database named '${DBNAME}' and associated users.
+  Command 'drop' deletes database named '${DBNAME}' and associated users.
 
   Command 'backup' Dumps the contents of the database in <file>. If no
   database name is provided on the command line then the default '${DBNAME}'
@@ -84,7 +84,7 @@ db_load() #pars: <database name> <filename>
 # Drop SER database
 db_drop()
 {
-    # Drop dabase
+    # Drop database
     # Revoke user permissions
 
     echo "Dropping database $1"

+ 9 - 9
misc/scripts/serconf.sh

@@ -230,7 +230,7 @@ modparam("usrloc|acc|auth_db|group|msilo|uri", "db_url",
 	"$SER_SQL_URI")
 
 # -- usrloc params --
-/* 0 -- dont use mysql, 1 -- write_through, 2--write_back */
+/* 0 -- don't use mysql, 1 -- write_through, 2 -- write_back */
 modparam("usrloc", "db_mode",   2)
 modparam("usrloc", "timer_interval", 10)
 
@@ -283,7 +283,7 @@ route{
 	};
 
 
-	# Make sure that requests dont advertise addresses 
+	# Make sure that requests don't advertise addresses
 	# from private IP space (RFC1918) in Contact HF
 	# (note: does not match with folded lines)
 	if (search("^(Contact|m): .*@(192\.168\.|10\.|172\.16)")) {
@@ -294,13 +294,13 @@ route{
 					&& !( src_ip==192.168.0.0/16 ||
 						src_ip==10.0.0.0/8 || src_ip==172.16.0.0/12 )) {
 			log("LOG: Someone trying to register from private IP again\n");
-			sl_send_reply("479", "We dont accept private IP contacts" );
+			sl_send_reply("479", "We don't accept private IP contacts" );
 			break;
 		};
 	};
 
 	# anti-spam -- if somene claims to belong to our domain in From,
-	# challenge him (skip REGISTERs -- we will chalenge them later)
+	# challenge him (skip REGISTERs -- we will challenge them later)
 	if (search("(From|F):.*$SER_DOMAIN_TEST_RE")) {
 		# invites forwarded to other domains, like FWD may cause subsequent 
 		# request to come from there but have iptel in From -> verify
@@ -374,7 +374,7 @@ route{
 	# avoid stealing incoming calls	
 	if (method=="REGISTER") {
 
-		# Make sure that user's dont register infinite loops
+		# Make sure that users don't register infinite loops
 		# (note: does not match with folded lines)
 		if (search("^(Contact|m): .*@$SER_DOMAIN_TEST_RE")) {
 			log(1, "LOG: alert: someone trying to set aor==contact\n");
@@ -407,8 +407,8 @@ route{
 		break;
 	};
 
-	# some UACs might be fooled by Contacts our UACs generate to make MSN 
-	# happy (web-im, e.g.) -- tell its urneachable
+	# some UACs might be fooled by Contacts our UACs generated to make MSN
+	# happy (web-im, e.g.) -- tell it is unreachable
 	if (uri=~"sip:daemon@" ) {
 		sl_send_reply("410", "daemon is gone");
 		break;
@@ -422,7 +422,7 @@ route{
 		};
 	} else {
 		# aliases  (take precedences over PSTN number; provisioning interface
-		# is set up to assinge aliases beginning with 8)
+		# is set up to assign aliases beginning with 8)
 		lookup("aliases");
 	};
 
@@ -471,7 +471,7 @@ route[2] {
 # routing logic for inbound requests aliased outbound; unlike
 # with real outbound requests we do not force authentication
 # as these calls are server by our server and we do not want
-# to disqualify unathenticated request originatiors from other
+# to disqualify unauthenticated request originatiors from other
 # domains
 route[5] {
 	append_hf("P-hint: ALIASED-OUTBOUND\r\n");

+ 2 - 2
misc/tools/kemi/python_mock/README.md

@@ -19,10 +19,10 @@ Return values can be injected through the dictionary \_mock\_data
 
 ```python
 
-#set retun value for all calls to the function
+#set return value for all calls to the function
 _mock_data[module][function] = value
 
-#set retun value for specific parameters being passed
+#set return value for specific parameters being passed
 _mock_data[module][function][param_value] = value
 
 #call the function myFunc when func is passed, return of myFunc will

+ 1 - 1
misc/tools/kemi/python_mock/kemi_mock.py

@@ -11,7 +11,7 @@ import sys
 
 from collections import defaultdict
 
-#python 3.2 doesnt support types.Union
+#python 3.2 doesn't support types.Union
 noUnion = False
 
 def printMocReturn(module_name, func, indent):

+ 7 - 6
misc/tools/pike_top/pike_top.c

@@ -67,7 +67,7 @@ int compare_TopItem_hits(const void* left, const void *right)
 	TopItem *ri = (TopItem *)right;
 	return li->leaf_hits[0] + li->leaf_hits[1] - ri->leaf_hits[0] - ri->leaf_hits[1];
 }
-/** Compare function to qsort array in reverse order (biger first) */ 
+/** Compare function to qsort array in reverse order (bigger first) */
 int compare_TopItem_hits_reverse(const void* left, const void *right)
 {
 	return compare_TopItem_hits(right, left);
@@ -202,7 +202,8 @@ int process_options(int argc, char *argv[], int *options, int *mask_length)
 		}
 	}
 	if ( counter > 1 ) {
-		fprintf(stderr, "ERROR: Node type selectors are exlusive, only one of them can be used\n");
+		fprintf(stderr, "ERROR: Node type selectors are exclusive, only one of "
+						"them can be used\n");
 		print_help();
 		exit(1);
 	}
@@ -247,7 +248,7 @@ error:
  * @param rv contains newly allocated string or NULL if fails
  * @return 1 if succeed and 0 otherwise
  */
-/* FIXME terminates the programm if it fails  */
+/* FIXME terminates the programme if it fails  */
 int get_string_from_struct_by_name(xmlrpc_value *structP, const char *element_name, char **rv)
 {
 	xmlrpc_env env;
@@ -320,7 +321,7 @@ void key_value_pair_cleanup(key_value_pair *kvp)
  * @param rv pointer to key_value_pair
  * @return 1 if succeed and 0 otherwise
  */
-/* FIXME terminates the programm if it fails  */
+/* FIXME terminates the programme if it fails  */
 int get_struct_item_by_idx(xmlrpc_value *structP, int index, key_value_pair *rv)
 {
 	xmlrpc_env env;
@@ -537,12 +538,12 @@ int main( int argc, char *argv[] )
 //	printf("Struct size: %d\n", struct_size);
 
 	if ( ! get_int_from_struct_by_name(resultP, MAX_HITS, &max_hits) ) {
-		fprintf(stderr, "ERROR: %s not foung in result\n", MAX_HITS);
+		fprintf(stderr, "ERROR: %s not found in result\n", MAX_HITS);
 		exit (1);
 	}
 	printf("max_hits = %d\n", max_hits);
 	if ( ! get_int_from_struct_by_name(resultP, NUMBER_OF_ROWS, &rows) ) {
-		fprintf(stderr, "ERROR: %s not foung in result\n", NUMBER_OF_ROWS);
+		fprintf(stderr, "ERROR: %s not found in result\n", NUMBER_OF_ROWS);
 		exit (1);
 	}
 	printf("rows = %d\n", rows);

+ 1 - 1
misc/tools/profile/launch.sh

@@ -69,7 +69,7 @@ function report()
 cat > $REP << EOF
 first line ... time spent in tested procedure
 second line (yyrestart) ... total time
-third line (receive_msg) ... numer of calls
+third line (receive_msg) ... number of calls
    %   cumulative   self              self     total
  time   seconds   seconds    calls  ms/call  ms/call  name
 EOF

+ 1 - 1
misc/tools/sipgrep/sipgrep

@@ -81,7 +81,7 @@ $debugfilecolors=$options{c};
 unlink $filedebug if(defined $filedebug);
 
 #open PIPE
-open(PIPE,"$ngrep $ngrep_flags |") or die "Can't run '$ngrep' programm: $!\n";
+open(PIPE,"$ngrep $ngrep_flags |") or die "Can't run '$ngrep' programme: $!\n";
 
 select(PIPE); $| = 1;	# make unbuffered
 select(STDOUT); $| = 1;	# make unbuffered