[Freeswitch-svn] [commit] r1963 - in freeswitch/trunk/src: . include

Freeswitch SVN anthm at freeswitch.org
Tue Jul 18 21:19:46 EDT 2006


Author: anthm
Date: Tue Jul 18 21:19:46 2006
New Revision: 1963

Modified:
   freeswitch/trunk/src/include/switch_types.h
   freeswitch/trunk/src/switch_core.c

Log:
small fix to sql shipping stuff

Modified: freeswitch/trunk/src/include/switch_types.h
==============================================================================
--- freeswitch/trunk/src/include/switch_types.h	(original)
+++ freeswitch/trunk/src/include/switch_types.h	Tue Jul 18 21:19:46 2006
@@ -92,7 +92,7 @@
 #define SWITCH_MAX_STATE_HANDLERS 30
 #define SWITCH_TRUE 1
 #define SWITCH_FALSE 0
-#define SWITCH_CORE_QUEUE_LEN 20000
+#define SWITCH_CORE_QUEUE_LEN 100000
 
 typedef enum {
 	SWITCH_XML_SECTION_RESULT = 0,

Modified: freeswitch/trunk/src/switch_core.c
==============================================================================
--- freeswitch/trunk/src/switch_core.c	(original)
+++ freeswitch/trunk/src/switch_core.c	Tue Jul 18 21:19:46 2006
@@ -2730,7 +2730,7 @@
 	uint32_t itterations = 0;
 	uint8_t trans = 0;
 	switch_time_t last_commit = switch_time_now();
-	uint32_t freq = 1000, target = 500, diff = 0;
+	uint32_t freq = 1000, target = 1000, diff = 0;
 	
 	if (!runtime.event_db) {
 		runtime.event_db = switch_core_db_handle();
@@ -2810,7 +2810,7 @@
 
 	switch (event->event_id) {
 	case SWITCH_EVENT_CHANNEL_DESTROY:
-		switch_core_db_mprintf("delete from channels where uuid='%s'", switch_event_get_header(event, "unique-id"));
+		sql = switch_core_db_mprintf("delete from channels where uuid='%s'", switch_event_get_header(event, "unique-id"));
 		break;
 	case SWITCH_EVENT_CHANNEL_CREATE:
 		sql = switch_core_db_mprintf("insert into channels (uuid,created,name,state) values('%q','%q','%q','%q')",



More information about the Freeswitch-svn mailing list