Kaynağa Gözat

snmpstats: typos

Дилян Палаузов 2 yıl önce
ebeveyn
işleme
b3af149e28

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

@@ -289,7 +289,7 @@ modparam("snmpstats", "sipEntityType", "proxyServer")
 		</para>
 		</para>
 	</section>
 	</section>
 
 
-	<section id ="snmpstats.p.MsqQueueMinorTreshold">
+	<section id ="snmpstats.p.MsqQueueMinorThreshold">
 		<title><varname>MsgQueueMinorThreshold</varname> (Integer)</title>
 		<title><varname>MsgQueueMinorThreshold</varname> (Integer)</title>
 
 
 		<para>
 		<para>
@@ -314,7 +314,7 @@ modparam("snmpstats", "MsgQueueMinorThreshold", 2000)
 		</para>
 		</para>
 	</section>
 	</section>
 	
 	
-	<section id ="snmpstats.p.MsqQueueMajorTreshold">
+	<section id ="snmpstats.p.MsqQueueMajorThreshold">
 		<title><varname>MsgQueueMajorThreshold</varname> (Integer)</title>
 		<title><varname>MsgQueueMajorThreshold</varname> (Integer)</title>
 
 
 		<para>
 		<para>
@@ -339,7 +339,7 @@ modparam("snmpstats", "MsgQueueMajorThreshold", 5000)
 		</para>
 		</para>
 	</section>
 	</section>
 
 
-	<section id ="snmpstats.p.dlg_minor_treshold">
+	<section id ="snmpstats.p.dlg_minor_threshold">
 		<title><varname>dlg_minor_threshold</varname> (Integer)</title>
 		<title><varname>dlg_minor_threshold</varname> (Integer)</title>
 
 
 		<para>
 		<para>
@@ -363,7 +363,7 @@ modparam("snmpstats", "MsgQueueMajorThreshold", 5000)
 		</para>
 		</para>
 	</section>
 	</section>
 
 
-	<section id ="snmpstats.p.dlg_major_treshold">
+	<section id ="snmpstats.p.dlg_major_threshold">
 		<title><varname>dlg_major_threshold</varname> (Integer)</title>
 		<title><varname>dlg_major_threshold</varname> (Integer)</title>
 
 
 		<para>
 		<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) {
 			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
 					 * deletion.  So move the pointer to the node just before
 					 * this one.  */
 					 * this one.  */
 				theTable[hashIndex].last = currentRecord->prev;
 				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
  * The aorToIndexStruct also contains a numContacts counter. Each time a new
  * contact is associated with the aor (user), the counter is incremented.  Each
  * 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.
  * decremented.  When the counter reaches zero the structure will be deleted.
  *
  *
  *  contactToIndexStruct: maps a contact name to:
  *  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
 	/* We need to maintain our own copies of the AOR and contact address to
 	 * prevent the corruption of our internal data structures.  
 	 * 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
 	 * pointed to could be removed and reallocated to another thread before
 	 * we get a chance to consume our interprocess buffer.  */
 	 * we get a chance to consume our interprocess buffer.  */
 	convertStrToCharString(contactInfo->aor, &addressOfRecord);
 	convertStrToCharString(contactInfo->aor, &addressOfRecord);
@@ -295,7 +295,7 @@ static void executeInterprocessBufferCmd(interprocessBuffer_t *currentBuffer)
 		currentUser->contactIndex++;
 		currentUser->contactIndex++;
 
 
 		/* We should do this after we create the row in the snmptable.
 		/* 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),
 		if(!insertContactRecord(&(currentUser->contactList),
 				   currentUser->contactIndex, currentBuffer->stringContact)) {
 				   currentUser->contactIndex, currentBuffer->stringContact)) {
 
 
@@ -322,7 +322,7 @@ static void executeInterprocessBufferCmd(interprocessBuffer_t *currentBuffer)
 		delContactIndex = deleteContactRecord(
 		delContactIndex = deleteContactRecord(
 				&(currentUser->contactList), currentBuffer->stringContact);
 				&(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.  */
 		 * to print out debug messages in case there is a hidden bug.  */
 		if(delContactIndex == 0) {
 		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.
 -- This MIB provides information related to the Kamailio SIP Router.
 -- 
 -- 
 -- Copyright (c) The Internet Society (2006)
 -- Copyright (c) The Internet Society (2006)
--- Ammendments (c) Soma Networks, Inc. (2006)
+-- Amendments (c) Soma Networks, Inc. (2006)
 -- Kamailio extras (c) Edvina AB, 2013
 -- Kamailio extras (c) Edvina AB, 2013
 --
 --
 -- All rights reserved.
 -- All rights reserved.
@@ -53,10 +53,10 @@ KAMAILIO-MIB DEFINITIONS ::= BEGIN
         LAST-UPDATED "201301081200Z"
         LAST-UPDATED "201301081200Z"
         ORGANIZATION "Kamailio"
         ORGANIZATION "Kamailio"
         CONTACT-INFO 
         CONTACT-INFO 
-            "http://www.kamailio.org"
+            "https://www.kamailio.org"
         DESCRIPTION
         DESCRIPTION
             "Kamailio MIB module.
             "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.
              instance of Kamailio.
              
              
              The objects in this MIB are intended to be used in conjunction
              The objects in this MIB are intended to be used in conjunction
@@ -66,7 +66,7 @@ KAMAILIO-MIB DEFINITIONS ::= BEGIN
              Kamailio core itself."
              Kamailio core itself."
         REVISION   "200605021200Z"
         REVISION   "200605021200Z"
         DESCRIPTION
         DESCRIPTION
-            "clarified some of the statisitcs collected, added the alarm 
+            "clarified some of the statistics collected, added the alarm 
             states and notifications."
             states and notifications."
         REVISION   "200603231200Z"
         REVISION   "200603231200Z"
         DESCRIPTION
         DESCRIPTION
@@ -1100,7 +1100,7 @@ KAMAILIO-MIB DEFINITIONS ::= BEGIN
         STATUS      current
         STATUS      current
         DESCRIPTION
         DESCRIPTION
             "The configured threshold indicating the kamailio system has reached
             "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 
              -1 indicates the value is not configured, and alarms will never be 
              set, and the usage state will never be reported as 'busy'."
              set, and the usage state will never be reported as 'busy'."
         ::= { kamailioDialogStats 6 }
         ::= { kamailioDialogStats 6 }

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

@@ -5,7 +5,7 @@
 -- Mike Varley
 -- Mike Varley
 --
 --
 -- Copyright (c) The Internet Society (2006)
 -- 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'
 -- Modeled after recommedations in 'Understanding SNMP MIBs'
 -- (Perkins, McGinnis) Prentice Hall 1997, chapter 8.
 -- (Perkins, McGinnis) Prentice Hall 1997, chapter 8.
@@ -25,7 +25,7 @@ kamailioRegMibModule MODULE-IDENTITY
     LAST-UPDATED    "201301080430Z"
     LAST-UPDATED    "201301080430Z"
     ORGANIZATION    "Kamailio"
     ORGANIZATION    "Kamailio"
     CONTACT-INFO
     CONTACT-INFO
-        "http://www.kamailio.org open source project."
+        "https://www.kamailio.org open source project."
     DESCRIPTION
     DESCRIPTION
         "Kamailio Global Registration MIB"
         "Kamailio Global Registration MIB"
 
 
@@ -196,7 +196,7 @@ kamailioSIPServerMIB OBJECT-IDENTITY
 kamailioMIB OBJECT-IDENTITY
 kamailioMIB OBJECT-IDENTITY
     STATUS current
     STATUS current
     DESCRIPTION 
     DESCRIPTION 
-    "The Kamailio MIB object and event definitons."
+    "The Kamailio MIB object and event definitions."
     ::= { kamailioCoreMIB 3 }
     ::= { 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.
 -- This MIB provides information related to the Kamailio SIP Router.
 -- 
 -- 
 -- Copyright (c) The Internet Society (2006)
 -- Copyright (c) The Internet Society (2006)
--- Ammendments (c) Soma Networks, Inc. (2006)
+-- Amendments (c) Soma Networks, Inc. (2006)
 --
 --
 -- All rights reserved.
 -- All rights reserved.
 -- *****************************************************************
 -- *****************************************************************
@@ -49,7 +49,7 @@ KAMAILIO-SIP-COMMON-MIB DEFINITIONS ::= BEGIN
         LAST-UPDATED "200603221200Z"
         LAST-UPDATED "200603221200Z"
         ORGANIZATION "Kamailio"
         ORGANIZATION "Kamailio"
         CONTACT-INFO
         CONTACT-INFO
-                "http://www.kamailio.org"
+                "https://www.kamailio.org"
         DESCRIPTION
         DESCRIPTION
              "Originally taken from the IETF Session Initiation Protocol 
              "Originally taken from the IETF Session Initiation Protocol 
               Working Group ([email protected]). The description is pulled from 
               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.
 -- This MIB provides information related to the Kamailio SIP Router.
 -- 
 -- 
 -- Copyright (c) The Internet Society (2006)
 -- Copyright (c) The Internet Society (2006)
--- Ammendments (c) Soma Networks, Inc. (2006)
+-- Amendments (c) Soma Networks, Inc. (2006)
 --
 --
 -- All rights reserved.
 -- All rights reserved.
 -- *****************************************************************
 -- *****************************************************************
@@ -40,7 +40,7 @@ KAMAILIO-SIP-SERVER-MIB DEFINITIONS ::= BEGIN
            LAST-UPDATED   "201301081000Z"
            LAST-UPDATED   "201301081000Z"
            ORGANIZATION   "Kamailio"
            ORGANIZATION   "Kamailio"
            CONTACT-INFO
            CONTACT-INFO
-                   "http://www.kamailio.org"
+                   "https://www.kamailio.org"
                    
                    
            DESCRIPTION
            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 
 -- 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 
 -- 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.
 -- and there are no guarantees between requests.
 --
 --
       kamailioSIPRegUserLookupCounter OBJECT-TYPE
       kamailioSIPRegUserLookupCounter OBJECT-TYPE

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

@@ -5,7 +5,7 @@
 -- Mike Varley
 -- Mike Varley
 --
 --
 -- Copyright (c) The Internet Society (2006)
 -- 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"
 	LAST-UPDATED	"201304041200Z"
 	ORGANIZATION	"Kamailio"
 	ORGANIZATION	"Kamailio"
 	CONTACT-INFO
 	CONTACT-INFO
-		"http://www.kamailio.org"
+		"https://www.kamailio.org"
 	DESCRIPTION
 	DESCRIPTION
 		"Kamailio Global Textual Conventions."
 		"Kamailio Global Textual Conventions."
 	::={ kamailioModules 2 }
 	::={ 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 */
 /* 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
  * - 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
  *   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
  *   wait for data, instead of slowing down the rest of Kamailio while the
  *   sub-agent processes the data. 
  *   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
  * - 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
  *   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
  *   wait for data, instead of slowing down the rest of Kamailio while the
  *   sub-agent processes the data. 
  *   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
  * 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.  
  * inserted into the table.  
  *
  *
  * In the case of this table, this involves looking up the index of the
  * 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
  * free up any resources allocated earlier.  However, we already take care of
  * all these resources in earlier functions.  So for our purposes, the function
  * all these resources in earlier functions.  So for our purposes, the function
  * body is empty. 
  * body is empty. 

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

@@ -56,7 +56,7 @@ extern "C" {
 #include "../../core/config.h"
 #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
 typedef struct kamailioSIPRegUserLookupTable_context_s
 {
 {
 	netsnmp_index index;
 	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
  * 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.  
  * inserted into the table.  
  *
  *
  * In our case, we don't require any changes.  So we leave the original
  * 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
  * free up any resources allocated earlier.  However, we already take care of
  * all these resources in earlier functions.  So for our purposes, the function
  * all these resources in earlier functions.  So for our purposes, the function
  * body is empty. 
  * body is empty. 

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

@@ -112,7 +112,7 @@ static int initialize_agentx(void)
 	init_kamailioNetConfig();
 	init_kamailioNetConfig();
 	LM_DBG("Done initializing Kamailio OID's for SNMPD MasterX\n");
 	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;
 	keep_running = 1;
 
 
 	while(keep_running) {
 	while(keep_running) {