[Freeswitch-svn] [commit] r2794 - freeswitch/branches/voctel/src/mod/applications/mod_phonecard
Freeswitch SVN
voctel at freeswitch.org
Sat Sep 23 00:22:37 EDT 2006
Author: voctel
Date: Sat Sep 23 00:22:36 2006
New Revision: 2794
Modified:
freeswitch/branches/voctel/src/mod/applications/mod_phonecard/mod_phonecard.c
freeswitch/branches/voctel/src/mod/applications/mod_phonecard/mod_phonecard.h
Log:
more updates
Modified: freeswitch/branches/voctel/src/mod/applications/mod_phonecard/mod_phonecard.c
==============================================================================
--- freeswitch/branches/voctel/src/mod/applications/mod_phonecard/mod_phonecard.c (original)
+++ freeswitch/branches/voctel/src/mod/applications/mod_phonecard/mod_phonecard.c Sat Sep 23 00:22:36 2006
@@ -38,10 +38,27 @@
#include <tdsconvert.h>
#include <ctype.h>
+#ifdef FREETDS_PRE_0_63
+#warning "You have older version of FreeTDS, you *NEED* to upgrade!"
+#endif
static const char modname[] = "mod_voctel";
static const char global_app_name[] = "phonecard";
//static char *global_cf_name = "phonecard.conf";
+
+static char *db_hostname = NULL;
+static char *db_name = NULL;
+static char *db_username = NULL;
+static char *db_password = NULL;
+static char *db_language = NULL;
+static char *db_table = NULL;
+static int db_port = 0;
+
+static TDSSOCKET *tds;
+static TDSLOGIN *login;
+static TDSCONTEXT *context;
+
+static int db_connected = 0;
//-- main application routine
static void phonecard_main(switch_core_session_t *session, char *data)
Modified: freeswitch/branches/voctel/src/mod/applications/mod_phonecard/mod_phonecard.h
==============================================================================
--- freeswitch/branches/voctel/src/mod/applications/mod_phonecard/mod_phonecard.h (original)
+++ freeswitch/branches/voctel/src/mod/applications/mod_phonecard/mod_phonecard.h Sat Sep 23 00:22:36 2006
@@ -29,4 +29,9 @@
*
* mod_phonecard.h -- Calling Card Module
*
- */
\ No newline at end of file
+ */
+/*! \brief Function used to connect to MS SQL */
+extern int mssql_connect(void);
+
+/*! \brief Function used to connect to MS SQL */
+extern int mssql_disconnect(void);
\ No newline at end of file
More information about the Freeswitch-svn
mailing list