Quellcode durchsuchen

dispatcher: removed the svn id and history

Daniel-Constantin Mierla vor 10 Jahren
Ursprung
Commit
fb6f8e1138

+ 0 - 2
modules/dispatcher/api.h

@@ -1,6 +1,4 @@
 /**
- * $Id$
- *
  * dispatcher module
  * 
  * Copyright (C) 2004-2006 FhG Fokus

+ 8 - 6
modules/dispatcher/config.c

@@ -1,6 +1,5 @@
 /*
- * $Id$
- * This file is part of SIP-router, a free SIP server.
+ * This file is part of Kamailio, a free SIP server.
  *
  * SIP-router is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -39,11 +38,14 @@ struct cfg_group_dispatcher	default_dispatcher_cfg = {
 void	*dispatcher_cfg = &default_dispatcher_cfg;
 
 cfg_def_t	dispatcher_cfg_def[] = {
-	{"probing_threshold",		CFG_VAR_INT | CFG_ATOMIC, 	0, 0, 0, 0,
+	{"probing_threshold",		CFG_VAR_INT | CFG_ATOMIC,
+		0, 0, 0, 0,
 		"Number of failed requests, before a destination is set to probing."},
-	{"inactive_threshold",           CFG_VAR_INT | CFG_ATOMIC,       0, 0, 0, 0,
-                "Number of successful requests, before a destination is set to active."},
-	{"ping_reply_codes",		CFG_VAR_STR | CFG_CB_ONLY_ONCE ,			0, 0, 0, ds_ping_reply_codes_update,
+	{"inactive_threshold",           CFG_VAR_INT | CFG_ATOMIC,
+		0, 0, 0, 0,
+        "Number of successful requests, before a destination is set to active."},
+	{"ping_reply_codes",		CFG_VAR_STR | CFG_CB_ONLY_ONCE
+		,			0, 0, 0, ds_ping_reply_codes_update,
 		"Additional, valid reply codes for the OPTIONS Pinger. Default is \"\""},
 	{0, 0, 0, 0, 0, 0}
 };

+ 7 - 2
modules/dispatcher/config.h

@@ -1,7 +1,12 @@
 /*
- * $Id$
+ * This file is part of Kamailio, a free SIP server.
  *
- * SIP-router is distributed in the hope that it will be useful,
+ * Kamailio is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version
+ *
+ * Kamailio is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.

+ 1 - 21
modules/dispatcher/dispatch.c

@@ -1,10 +1,9 @@
 /*
- * $Id$
- *
  * dispatcher module
  *
  * Copyright (C) 2004-2006 FhG Fokus
  * Copyright (C) 2005 Voice-System.ro
+ * Copyright (C) 2015 Daniel-Constantin Mierla (asipto.com)
  *
  * This file is part of Kamailio, a free SIP server.
  *
@@ -21,25 +20,6 @@
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
- *
- * History
- * -------
- * 2004-07-31  first version, by daniel
- * 2005-04-22  added ruri  & to_uri hashing (andrei)
- * 2005-12-10  added failover support via avp (daniel)
- * 2006-08-15  added support for authorization username hashing (carsten)
- * 2007-01-11  Added a function to check if a specific gateway is in a
- * group (carsten)
- * 2007-01-12  Added a threshhold for automatic deactivation (carsten)
- * 2007-02-09  Added active probing of failed destinations and automatic
- * re-enabling of destinations (carsten)
- * 2007-05-08  Ported the changes to SVN-Trunk, renamed ds_is_domain to
- * ds_is_from_list and modified the function to work with IPv6 adresses.
- * 2007-07-18  removed index stuff
- * 			   added DB support to load/reload data(ancuta)
- * 2007-09-17  added list-file support for reload data (carstenbock)
- * 2014-12-23  Corrected misspelled words in some variables' name (alezzandro)
- * 2014-12-23  Added support for custom number of successful probing requests before moving a destination from 'inactive' to 'active' state (alezzandro)
  */
 
 /*! \file

+ 0 - 14
modules/dispatcher/dispatch.h

@@ -1,6 +1,4 @@
 /**
- * $Id$
- *
  * dispatcher module
  * 
  * Copyright (C) 2004-2006 FhG Fokus
@@ -20,18 +18,6 @@
  * You should have received a copy of the GNU General Public License 
  * along with this program; if not, write to the Free Software 
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
- *
- * History
- * -------
- * 2004-07-31  first version, by daniel
- * 2007-01-11  Added a function to check if a specific gateway is in
- *		a group (carsten)
- * 2007-02-09  Added active probing of failed destinations and automatic
- *		re-enabling of destinations
- * 2007-05-08  Ported the changes to SVN-Trunk and renamed ds_is_domain
- *		to ds_is_from_list.
- * 2014-12-23  Corrected misspelled words in some variables' name (alezzandro) 
- * 2014-12-23  Added support for custom number of successful probing requests before moving a destination from 'inactive' to 'active' state (alezzandro)
  */
 
 /*! \file

+ 2 - 18
modules/dispatcher/dispatcher.c

@@ -1,10 +1,9 @@
 /**
- * $Id$
- *
- * dispatcher module -- stateless load balancing
+ * dispatcher module - load balancing
  *
  * Copyright (C) 2004-2005 FhG Fokus
  * Copyright (C) 2006 Voice Sistem SRL
+ * Copyright (C) 2015 Daniel-Constantin Mierla (asipto.com)
  *
  * This file is part of Kamailio, a free SIP server.
  *
@@ -21,21 +20,6 @@
  * You should have received a copy of the GNU General Public License 
  * along with this program; if not, write to the Free Software 
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
- *
- * History
- * -------
- * 2004-07-31  first version, by daniel
- * 2007-01-11  Added a function to check if a specific gateway is in a group
- *				(carsten - Carsten Bock, BASIS AudioNet GmbH)
- * 2007-02-09  Added active probing of failed destinations and automatic
- *				re-enabling of destinations (carsten)
- * 2007-05-08  Ported the changes to SVN-Trunk and renamed ds_is_domain
- *				to ds_is_from_list.  (carsten)
- * 2007-07-18  Added support for load/reload groups from DB 
- * 			   reload triggered from ds_reload MI_Command (ancuta)
- * 2014-12-12  Added "ds_list_exist" function
- * 2014-12-23  Corrected misspelled words in some variables' name (alezzandro)
- * 2014-12-23  Added support for custom number of successful probing requests before moving a destination from 'inactive' to 'active' state (alezzandro)
  */
 
 /*! \file

+ 0 - 2
modules/dispatcher/ds_ht.c

@@ -1,6 +1,4 @@
 /**
- * $Id$
- *
  * Copyright (C) 2010 Daniel-Constantin Mierla (asipto.com)
  *
  * This file is part of kamailio, a free SIP server.

+ 8 - 9
modules/dispatcher/ds_ht.h

@@ -1,9 +1,8 @@
 /**
- * $Id$
  *
  * Copyright (C) 2010 Daniel-Constantin Mierla (asipto.com)
  *
- * This file is part of kamailio, a free SIP server.
+ * This file is part of Kamailio, a free SIP server.
  *
  * Kamailio is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -33,13 +32,13 @@
 
 typedef struct _ds_cell
 {
-    unsigned int cellid;
-	str callid;
-	str duid;
-	int dset;
-	int state;
-	time_t  expire;
-	time_t  initexpire;
+    unsigned int cellid;   /* item hash id */
+	str callid;            /* sip call-id */
+	str duid;              /* destination unique id (duid attribute) */
+	int dset;              /* destination set */
+	int state;             /* state */
+	time_t  expire;        /* expiration of the item */
+	time_t  initexpire;    /* expiration in initial state of the item */
     struct _ds_cell *prev;
     struct _ds_cell *next;
 } ds_cell_t;