[Freeswitch-svn] [commit] r5157 - in freeswitch/trunk/src: . include

Freeswitch SVN anthm at freeswitch.org
Fri May 11 15:41:12 EDT 2007


Author: anthm
Date: Fri May 11 15:41:11 2007
New Revision: 5157

Modified:
   freeswitch/trunk/src/include/switch_cpp.h
   freeswitch/trunk/src/switch_cpp.cpp

Log:
fix cpp

Modified: freeswitch/trunk/src/include/switch_cpp.h
==============================================================================
--- freeswitch/trunk/src/include/switch_cpp.h	(original)
+++ freeswitch/trunk/src/include/switch_cpp.h	Fri May 11 15:41:11 2007
@@ -26,7 +26,7 @@
 	int preAnswer();
 	void hangup(char *cause);
 	void setVariable(char *var, char *val);
-	void getVariable(char *var, char *val);
+	char *getVariable(char *var);
 	int playFile(char *file, char *timer_name);
 	void setDTMFCallback(switch_input_callback_function_t cb, void *buf, uint32_t buflen);
 	int speakText(char *text);

Modified: freeswitch/trunk/src/switch_cpp.cpp
==============================================================================
--- freeswitch/trunk/src/switch_cpp.cpp	(original)
+++ freeswitch/trunk/src/switch_cpp.cpp	Fri May 11 15:41:11 2007
@@ -61,10 +61,10 @@
     switch_channel_set_variable(channel, var, val);
 }
 
-void CoreSession::getVariable(char *var, char *val)
+char *CoreSession::getVariable(char *var)
 {
-	sanity_check();
-    switch_channel_get_variable(channel, var);
+	sanity_check(NULL);
+    return switch_channel_get_variable(channel, var);
 }
 
 void CoreSession::execute(char *app, char *data)



More information about the Freeswitch-svn mailing list