[Freeswitch-branches] [commit] r2805 - freeswitch/branches/voctel/src/mod/applications/mod_phonecard

Freeswitch SVN voctel at freeswitch.org
Sat Sep 23 02:30:43 EDT 2006


Author: voctel
Date: Sat Sep 23 02:30:43 2006
New Revision: 2805

Modified:
   freeswitch/branches/voctel/src/mod/applications/mod_phonecard/mod_phonecard.c

Log:
compile fixes

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 02:30:43 2006
@@ -45,7 +45,7 @@
 static char *db_password = NULL;
 static char *db_language = NULL;
 static char *db_table = NULL;
-static int db_port = 0;
+static char *db_port = NULL;
 
 static int db_connected = 0;
 
@@ -96,6 +96,8 @@
 //-- main application routine
 static void phonecard_main(switch_core_session_t *session, char *data)
 {
+	char *mydata = switch_core_session_strdup(session, data);
+
 	//--
 	if (!mydata) {
 		switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Pool Failure\n");



More information about the Freeswitch-branches mailing list