[Freeswitch-svn] [commit] r11069 - freeswitch/trunk/src/mod/applications/mod_easyroute

FreeSWITCH SVN silik0n at freeswitch.org
Fri Jan 9 19:02:35 PST 2009


Author: silik0n
Date: Fri Jan  9 22:02:34 2009
New Revision: 11069

Log:
fix a couple of SWITCH_LOG levels and properly disconnect from DB on shutdown

Modified:
   freeswitch/trunk/src/mod/applications/mod_easyroute/mod_easyroute.c

Modified: freeswitch/trunk/src/mod/applications/mod_easyroute/mod_easyroute.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_easyroute/mod_easyroute.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_easyroute/mod_easyroute.c	Fri Jan  9 22:02:34 2009
@@ -257,7 +257,7 @@
 			switch_set_string(results->acctcode, pdata.acctcode);
 		}
 	} else {
-		switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "DB Error Setting Default Route!\n");
+		switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "DB Error Setting Default Route!\n");
 		switch_set_string(results->limit, "9999");
 		switch_snprintf(results->dialstring, 256, "%s/%s@%s", globals.default_techprofile, dn, globals.default_gateway);
 		switch_set_string(results->group, "");
@@ -290,7 +290,7 @@
 	if ((argc = switch_separate_string(mydata, ' ', argv, (sizeof(argv) / sizeof(argv[0]))))) {
 		destnum = argv[0];
 		route_lookup(destnum, &results);
-		switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "EASY ROUTE DEST: [%s]\n", results.dialstring);
+		switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "EASY ROUTE DEST: [%s]\n", results.dialstring);
 		switch_channel_set_variable(channel, "easy_destnum", results.destnum);
 		switch_channel_set_variable(channel, "easy_dialstring", results.dialstring);
 		switch_channel_set_variable(channel, "easy_group", results.group);
@@ -354,7 +354,7 @@
 
 SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_easyroute_shutdown)
 {	
-	switch_odbc_handle_connect(globals.master_odbc);
+	switch_odbc_handle_disconnect(globals.master_odbc);
 	return SWITCH_STATUS_UNLOAD;
 }
 



More information about the Freeswitch-svn mailing list