Explorar el Código

snmpstats: typos

Дилян Палаузов hace 2 años
padre
commit
b3af149e28

+ 4 - 4
src/modules/snmpstats/doc/snmpstats_admin.xml

@@ -289,7 +289,7 @@ modparam("snmpstats", "sipEntityType", "proxyServer")
 		</para>
 	</section>
 
-	<section id ="snmpstats.p.MsqQueueMinorTreshold">
+	<section id ="snmpstats.p.MsqQueueMinorThreshold">
 		<title><varname>MsgQueueMinorThreshold</varname> (Integer)</title>
 
 		<para>
@@ -314,7 +314,7 @@ modparam("snmpstats", "MsgQueueMinorThreshold", 2000)
 		</para>
 	</section>
 	
-	<section id ="snmpstats.p.MsqQueueMajorTreshold">
+	<section id ="snmpstats.p.MsqQueueMajorThreshold">
 		<title><varname>MsgQueueMajorThreshold</varname> (Integer)</title>
 
 		<para>
@@ -339,7 +339,7 @@ modparam("snmpstats", "MsgQueueMajorThreshold", 5000)
 		</para>
 	</section>
 
-	<section id ="snmpstats.p.dlg_minor_treshold">
+	<section id ="snmpstats.p.dlg_minor_threshold">
 		<title><varname>dlg_minor_threshold</varname> (Integer)</title>
 
 		<para>
@@ -363,7 +363,7 @@ modparam("snmpstats", "MsgQueueMajorThreshold", 5000)
 		</para>
 	</section>
 
-	<section id ="snmpstats.p.dlg_major_treshold">
+	<section id ="snmpstats.p.dlg_major_threshold">
 		<title><varname>dlg_major_threshold</varname> (Integer)</title>
 
 		<para>

+ 1 - 1
src/modules/snmpstats/hashTable.c

@@ -199,7 +199,7 @@ void deleteUser(hashSlot_t *theTable, char *aor, int hashTableSize)
 			}
 
 			if(currentRecord->next == NULL) {
-				/* Edge Case: The last element has been targetted for
+				/* Edge Case: The last element has been targeted for
 					 * deletion.  So move the pointer to the node just before
 					 * this one.  */
 				theTable[hashIndex].last = currentRecord->prev;

+ 1 - 1
src/modules/snmpstats/hashTable.h

@@ -39,7 +39,7 @@
  *
  * The aorToIndexStruct also contains a numContacts counter. Each time a new
  * contact is associated with the aor (user), the counter is incremented.  Each
- * time a contact is dissasociated (due to an expiration), the counter is
+ * time a contact is disassociated (due to an expiration), the counter is
  * decremented.  When the counter reaches zero the structure will be deleted.
  *
  *  contactToIndexStruct: maps a contact name to:

+ 3 - 3
src/modules/snmpstats/interprocess_buffer.c

@@ -153,7 +153,7 @@ void handleContactCallbacks(ucontact_t *contactInfo, int type, void *param)
 	/* We need to maintain our own copies of the AOR and contact address to
 	 * prevent the corruption of our internal data structures.  
 	 *
-	 * If we do not maintain our own copies, then the AOR and contact adress
+	 * If we do not maintain our own copies, then the AOR and contact address
 	 * pointed to could be removed and reallocated to another thread before
 	 * we get a chance to consume our interprocess buffer.  */
 	convertStrToCharString(contactInfo->aor, &addressOfRecord);
@@ -295,7 +295,7 @@ static void executeInterprocessBufferCmd(interprocessBuffer_t *currentBuffer)
 		currentUser->contactIndex++;
 
 		/* We should do this after we create the row in the snmptable.
-		 * Its easier to delete the SNMP Row than the contact record. */
+		 * It is easier to delete the SNMP Row than the contact record. */
 		if(!insertContactRecord(&(currentUser->contactList),
 				   currentUser->contactIndex, currentBuffer->stringContact)) {
 
@@ -322,7 +322,7 @@ static void executeInterprocessBufferCmd(interprocessBuffer_t *currentBuffer)
 		delContactIndex = deleteContactRecord(
 				&(currentUser->contactList), currentBuffer->stringContact);
 
-		/* This should never happen.  But its probably wise to check and
+		/* This should never happen.  But it is probably wise to check and
 		 * to print out debug messages in case there is a hidden bug.  */
 		if(delContactIndex == 0) {
 

+ 5 - 5
src/modules/snmpstats/mibs/KAMAILIO-MIB

@@ -6,7 +6,7 @@
 -- This MIB provides information related to the Kamailio SIP Router.
 -- 
 -- Copyright (c) The Internet Society (2006)
--- Ammendments (c) Soma Networks, Inc. (2006)
+-- Amendments (c) Soma Networks, Inc. (2006)
 -- Kamailio extras (c) Edvina AB, 2013
 --
 -- All rights reserved.
@@ -53,10 +53,10 @@ KAMAILIO-MIB DEFINITIONS ::= BEGIN
         LAST-UPDATED "201301081200Z"
         ORGANIZATION "Kamailio"
         CONTACT-INFO 
-            "http://www.kamailio.org"
+            "https://www.kamailio.org"
         DESCRIPTION
             "Kamailio MIB module.
-             This module defines objects which are neceesary to monitor an
+             This module defines objects which are necessary to monitor an
              instance of Kamailio.
              
              The objects in this MIB are intended to be used in conjunction
@@ -66,7 +66,7 @@ KAMAILIO-MIB DEFINITIONS ::= BEGIN
              Kamailio core itself."
         REVISION   "200605021200Z"
         DESCRIPTION
-            "clarified some of the statisitcs collected, added the alarm 
+            "clarified some of the statistics collected, added the alarm 
             states and notifications."
         REVISION   "200603231200Z"
         DESCRIPTION
@@ -1100,7 +1100,7 @@ KAMAILIO-MIB DEFINITIONS ::= BEGIN
         STATUS      current
         DESCRIPTION
             "The configured threshold indicating the kamailio system has reached
-             a maximum number of dialogs, and perhaps performace will suffer.
+             a maximum number of dialogs, and perhaps performance will suffer.
              -1 indicates the value is not configured, and alarms will never be 
              set, and the usage state will never be reported as 'busy'."
         ::= { kamailioDialogStats 6 }

+ 3 - 3
src/modules/snmpstats/mibs/KAMAILIO-REG-MIB

@@ -5,7 +5,7 @@
 -- Mike Varley
 --
 -- Copyright (c) The Internet Society (2006)
--- Ammendments (c) Soma Networks, Inc. (2006)            
+-- Amendments (c) Soma Networks, Inc. (2006)
 --
 -- Modeled after recommedations in 'Understanding SNMP MIBs'
 -- (Perkins, McGinnis) Prentice Hall 1997, chapter 8.
@@ -25,7 +25,7 @@ kamailioRegMibModule MODULE-IDENTITY
     LAST-UPDATED    "201301080430Z"
     ORGANIZATION    "Kamailio"
     CONTACT-INFO
-        "http://www.kamailio.org open source project."
+        "https://www.kamailio.org open source project."
     DESCRIPTION
         "Kamailio Global Registration MIB"
 
@@ -196,7 +196,7 @@ kamailioSIPServerMIB OBJECT-IDENTITY
 kamailioMIB OBJECT-IDENTITY
     STATUS current
     DESCRIPTION 
-    "The Kamailio MIB object and event definitons."
+    "The Kamailio MIB object and event definitions."
     ::= { kamailioCoreMIB 3 }
 
 --

+ 2 - 2
src/modules/snmpstats/mibs/KAMAILIO-SIP-COMMON-MIB

@@ -3,7 +3,7 @@
 -- This MIB provides information related to the Kamailio SIP Router.
 -- 
 -- Copyright (c) The Internet Society (2006)
--- Ammendments (c) Soma Networks, Inc. (2006)
+-- Amendments (c) Soma Networks, Inc. (2006)
 --
 -- All rights reserved.
 -- *****************************************************************
@@ -49,7 +49,7 @@ KAMAILIO-SIP-COMMON-MIB DEFINITIONS ::= BEGIN
         LAST-UPDATED "200603221200Z"
         ORGANIZATION "Kamailio"
         CONTACT-INFO
-                "http://www.kamailio.org"
+                "https://www.kamailio.org"
         DESCRIPTION
              "Originally taken from the IETF Session Initiation Protocol 
               Working Group ([email protected]). The description is pulled from 

+ 3 - 3
src/modules/snmpstats/mibs/KAMAILIO-SIP-SERVER-MIB

@@ -3,7 +3,7 @@
 -- This MIB provides information related to the Kamailio SIP Router.
 -- 
 -- Copyright (c) The Internet Society (2006)
--- Ammendments (c) Soma Networks, Inc. (2006)
+-- Amendments (c) Soma Networks, Inc. (2006)
 --
 -- All rights reserved.
 -- *****************************************************************
@@ -40,7 +40,7 @@ KAMAILIO-SIP-SERVER-MIB DEFINITIONS ::= BEGIN
            LAST-UPDATED   "201301081000Z"
            ORGANIZATION   "Kamailio"
            CONTACT-INFO
-                   "http://www.kamailio.org"
+                   "https://www.kamailio.org"
                    
            DESCRIPTION
                 "
@@ -529,7 +529,7 @@ KAMAILIO-SIP-SERVER-MIB DEFINITIONS ::= BEGIN
 --
 -- It is not the intention of this table to keep mappings very long, or update 
 -- them if the RegUserTable changes. Clients should always verify the URI they 
--- get from the RegUserTable is consitent with what they expect; this is SNMP
+-- get from the RegUserTable is consistent with what they expect; this is SNMP
 -- and there are no guarantees between requests.
 --
       kamailioSIPRegUserLookupCounter OBJECT-TYPE

+ 2 - 2
src/modules/snmpstats/mibs/KAMAILIO-TC

@@ -5,7 +5,7 @@
 -- Mike Varley
 --
 -- Copyright (c) The Internet Society (2006)
--- Ammendments (c) Soma Networks, Inc. (2006)
+-- Amendments (c) Soma Networks, Inc. (2006)
 --
 -- *******************************************************************
 
@@ -26,7 +26,7 @@ kamailioTcModule MODULE-IDENTITY
 	LAST-UPDATED	"201304041200Z"
 	ORGANIZATION	"Kamailio"
 	CONTACT-INFO
-		"http://www.kamailio.org"
+		"https://www.kamailio.org"
 	DESCRIPTION
 		"Kamailio Global Textual Conventions."
 	::={ kamailioModules 2 }

+ 1 - 1
src/modules/snmpstats/snmpObjects.c

@@ -581,7 +581,7 @@ static int set_if_valid_threshold(
 }
 
 /* 
- * Paramater Configuration Functions 
+ * Parameter Configuration Functions
  */
 
 /* Handles setting of the message queue minor alarm threshold */

+ 1 - 1
src/modules/snmpstats/snmpSIPContactTable.c

@@ -52,7 +52,7 @@
  *
  * - The interprocess buffer was necessary, because NetSNMP's containers can be
  *   very inefficient at adding large amounts of data at a time, such as when
- *   Kamailio first starts up.  It was decided its better to make an SNMP manager
+ *   Kamailio first starts up.  It was decided it is better to make an SNMP manager
  *   wait for data, instead of slowing down the rest of Kamailio while the
  *   sub-agent processes the data. 
  *

+ 1 - 1
src/modules/snmpstats/snmpSIPContactTable.h

@@ -46,7 +46,7 @@
  *
  * - The interprocess buffer was necessary, because NetSNMP's containers can be
  *   very inefficient at adding large amounts of data at a time, such as when
- *   Kamailio first starts up.  It was decided its better to make an SNMP manager
+ *   Kamailio first starts up.  It was decided it is better to make an SNMP manager
  *   wait for data, instead of slowing down the rest of Kamailio while the
  *   sub-agent processes the data. 
  *

+ 2 - 2
src/modules/snmpstats/snmpSIPRegUserLookupTable.c

@@ -480,7 +480,7 @@ void kamailioSIPRegUserLookupTable_set_reserve2(netsnmp_request_group *rg)
 
 /*
  * This function is called only when all the *_reserve[1|2] functions were
- * succeful.  Its purpose is to make any changes to the row before it is
+ * successful.  Its purpose is to make any changes to the row before it is
  * inserted into the table.  
  *
  * In the case of this table, this involves looking up the index of the
@@ -618,7 +618,7 @@ void kamailioSIPRegUserLookupTable_set_commit(netsnmp_request_group *rg)
 
 
 /*
- * This function is called if the *_reserve[1|2] calls failed.  Its supposed to
+ * This function is called if the *_reserve[1|2] calls failed.  It is supposed to
  * free up any resources allocated earlier.  However, we already take care of
  * all these resources in earlier functions.  So for our purposes, the function
  * body is empty. 

+ 1 - 1
src/modules/snmpstats/snmpSIPRegUserLookupTable.h

@@ -56,7 +56,7 @@ extern "C" {
 #include "../../core/config.h"
 
 
-/* This structure represnts a row in the table */
+/* This structure represents a row in the table */
 typedef struct kamailioSIPRegUserLookupTable_context_s
 {
 	netsnmp_index index;

+ 2 - 2
src/modules/snmpstats/snmpSIPStatusCodesTable.c

@@ -502,7 +502,7 @@ void kamailioSIPStatusCodesTable_set_reserve2(netsnmp_request_group *rg)
 
 /*
  * This function is called only when all the *_reserve[1|2] functions were
- * succeful.  Its purpose is to make any changes to the row before it is
+ * successful.  Its purpose is to make any changes to the row before it is
  * inserted into the table.  
  *
  * In our case, we don't require any changes.  So we leave the original
@@ -590,7 +590,7 @@ void kamailioSIPStatusCodesTable_set_commit(netsnmp_request_group *rg)
 
 
 /*
- * This function is called if the *_reserve[1|2] calls failed.  Its supposed to
+ * This function is called if the *_reserve[1|2] calls failed.  It is supposed to
  * free up any resources allocated earlier.  However, we already take care of
  * all these resources in earlier functions.  So for our purposes, the function
  * body is empty. 

+ 1 - 1
src/modules/snmpstats/sub_agent.c

@@ -112,7 +112,7 @@ static int initialize_agentx(void)
 	init_kamailioNetConfig();
 	LM_DBG("Done initializing Kamailio OID's for SNMPD MasterX\n");
 
-	/* In case we recevie a request to stop (kill -TERM or kill -INT) */
+	/* In case we receive a request to stop (kill -TERM or kill -INT) */
 	keep_running = 1;
 
 	while(keep_running) {