[Freeswitch-svn] [commit] r10636 - freeswitch/trunk/scripts/contrib/intralanman/C/lcr/mod_lcr

FreeSWITCH SVN intralanman at freeswitch.org
Fri Dec 5 14:25:15 PST 2008


Author: intralanman
Date: Fri Dec  5 17:25:14 2008
New Revision: 10636

Log:
mysql doesn't like random... hopefully postgres is ok with rand


Modified:
   freeswitch/trunk/scripts/contrib/intralanman/C/lcr/mod_lcr/mod_lcr.c

Modified: freeswitch/trunk/scripts/contrib/intralanman/C/lcr/mod_lcr/mod_lcr.c
==============================================================================
--- freeswitch/trunk/scripts/contrib/intralanman/C/lcr/mod_lcr/mod_lcr.c	(original)
+++ freeswitch/trunk/scripts/contrib/intralanman/C/lcr/mod_lcr/mod_lcr.c	Fri Dec  5 17:25:14 2008
@@ -293,7 +293,7 @@
 	if(lcr_profile > 0) {
 		sql_stream.write_function(&sql_stream, "AND lcr_profile=%d ", lcr_profile);
 	}
-	sql_stream.write_function(&sql_stream, "ORDER BY digits DESC, rate, random();");
+	sql_stream.write_function(&sql_stream, "ORDER BY digits DESC, rate, rand();");
 	
 	switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "%s\n", (char *)sql_stream.data);    
 	



More information about the Freeswitch-svn mailing list