[Freeswitch-svn] [commit] r14028 - freeswitch/trunk/contrib/ledr/mod_xml_odbc

FreeSWITCH SVN ledr at freeswitch.org
Mon Jun 29 06:51:18 PDT 2009


Author: ledr
Date: Mon Jun 29 08:51:18 2009
New Revision: 14028

Log:
added setting debug so debugging output is possible during startup


Modified:
   freeswitch/trunk/contrib/ledr/mod_xml_odbc/mod_xml_odbc.c
   freeswitch/trunk/contrib/ledr/mod_xml_odbc/xml_odbc.conf.xml

Modified: freeswitch/trunk/contrib/ledr/mod_xml_odbc/mod_xml_odbc.c
==============================================================================
--- freeswitch/trunk/contrib/ledr/mod_xml_odbc/mod_xml_odbc.c	(original)
+++ freeswitch/trunk/contrib/ledr/mod_xml_odbc/mod_xml_odbc.c	Mon Jun 29 08:51:18 2009
@@ -447,6 +447,10 @@
 					*odbc_pass++ = '\0';
 				}
 			}
+		} else if (!strcasecmp(var, "debug") && !switch_strlen_zero(val)) {
+			if (!strcasecmp(val, "true") || !strcasecmp(val, "on")) {
+				debug = SWITCH_TRUE;
+			}
 		}
 	}
 

Modified: freeswitch/trunk/contrib/ledr/mod_xml_odbc/xml_odbc.conf.xml
==============================================================================
--- freeswitch/trunk/contrib/ledr/mod_xml_odbc/xml_odbc.conf.xml	(original)
+++ freeswitch/trunk/contrib/ledr/mod_xml_odbc/xml_odbc.conf.xml	Mon Jun 29 08:51:18 2009
@@ -2,6 +2,7 @@
 
   <settings>
     <param name="odbc-dsn" value="freeswitch:freeswitch:secret"/>
+    <param name="debug" value="true"/>
   </settings>
 
   <bindings>



More information about the Freeswitch-svn mailing list