[Freeswitch-svn] [commit] r8581 - freeswitch/trunk/src

Freeswitch SVN anthm at freeswitch.org
Sat May 24 01:09:50 EDT 2008


Author: anthm
Date: Sat May 24 01:09:50 2008
New Revision: 8581

Modified:
   freeswitch/trunk/src/switch_loadable_module.c
   freeswitch/trunk/src/switch_log.c

Log:
update

Modified: freeswitch/trunk/src/switch_loadable_module.c
==============================================================================
--- freeswitch/trunk/src/switch_loadable_module.c	(original)
+++ freeswitch/trunk/src/switch_loadable_module.c	Sat May 24 01:09:50 2008
@@ -1354,8 +1354,11 @@
 		}
 	}
 
+
 	if (cmd && (api = switch_loadable_module_get_api_interface(cmd)) != 0) {
-		status = api->function(arg, session, stream);
+		if ((status = api->function(arg, session, stream)) != SWITCH_STATUS_SUCCESS) {
+			stream->write_function(stream, "COMMAND RETURNED ERROR!\n");
+		}
 	} else {
 		status = SWITCH_STATUS_FALSE;
 		stream->write_function(stream, "INVALID COMMAND!\n");

Modified: freeswitch/trunk/src/switch_log.c
==============================================================================
--- freeswitch/trunk/src/switch_log.c	(original)
+++ freeswitch/trunk/src/switch_log.c	Sat May 24 01:09:50 2008
@@ -268,7 +268,7 @@
 			memset(&to, 0, sizeof(to));
 			FD_SET(fd, &can_write);
 			to.tv_sec = 0;
-			to.tv_usec = 5000;
+			to.tv_usec = 100000;
 			if (select(fd+1, NULL, &can_write, NULL, &to) > 0) {
 				aok = FD_ISSET(fd, &can_write);
 			} else {
@@ -298,6 +298,8 @@
 		node->level = level;
 		node->content = content;
 		node->timestamp = now;
+
+
 		if (switch_queue_trypush(LOG_QUEUE, node) != SWITCH_STATUS_SUCCESS) {
 			free(node->data);
 			if (switch_queue_trypush(LOG_RECYCLE_QUEUE, node) != SWITCH_STATUS_SUCCESS) {



More information about the Freeswitch-svn mailing list