[Freeswitch-svn] [commit] r5636 - freeswitch/trunk/src/mod/asr_tts/mod_openmrcp

Freeswitch SVN achaloyan at freeswitch.org
Mon Aug 20 15:25:59 EDT 2007


Author: achaloyan
Date: Mon Aug 20 15:25:59 2007
New Revision: 5636

Modified:
   freeswitch/trunk/src/mod/asr_tts/mod_openmrcp/mod_openmrcp.c

Log:
set the highest (disable) mrcp log priority by default; log priority can be changed from mod_openmrcp.conf.xml->settings->log_level=7 [0-7]

Modified: freeswitch/trunk/src/mod/asr_tts/mod_openmrcp/mod_openmrcp.c
==============================================================================
--- freeswitch/trunk/src/mod/asr_tts/mod_openmrcp/mod_openmrcp.c	(original)
+++ freeswitch/trunk/src/mod/asr_tts/mod_openmrcp/mod_openmrcp.c	Mon Aug 20 15:25:59 2007
@@ -761,6 +761,7 @@
 		return SWITCH_STATUS_TERM;
 	}
 
+	mrcp_logger.priority = MRCP_PRIO_EMERGENCY;
 	if ((settings = switch_xml_child(cfg, "settings"))) {
 		for (param = switch_xml_child(settings, "param"); param; param = param->next) {
 			const char *var = switch_xml_attr_soft(param, "name");
@@ -770,6 +771,8 @@
 				asr_profile_name = val;
 			} else if (!strcasecmp(var, "tts_default_profile")) {
 				tts_profile_name = val;
+			} else if (!strcasecmp(var, "log_level")) {
+				mrcp_logger.priority = atoi(val);
 			}
 		}
 	}



More information about the Freeswitch-svn mailing list