[Freeswitch-svn] [commit] r11530 - freeswitch/trunk/src/mod/applications/mod_easyroute
FreeSWITCH SVN
mikej at freeswitch.org
Tue Jan 27 17:02:12 PST 2009
Author: mikej
Date: Tue Jan 27 19:02:12 2009
New Revision: 11530
Log:
mod_easyroute: fix build with -Werror when odbc is not enabled
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 Tue Jan 27 19:02:12 2009
@@ -193,7 +193,9 @@
return status;
}
+#ifdef SWITCH_HAVE_ODBC
static char SQL_LOOKUP[] = "SELECT gateways.gateway_ip, gateways.group, gateways.limit, gateways.techprofile, numbers.acctcode, numbers.translated from gateways, numbers where numbers.number = '%q' and numbers.gateway_id = gateways.gateway_id limit 1;";
+#endif
static switch_status_t route_lookup(char *dn, easyroute_results_t *results, int noat, char *seperator)
{
More information about the Freeswitch-svn
mailing list