[Freeswitch-svn] [commit] r8037 - freeswitch/trunk/src
Freeswitch SVN
anthm at freeswitch.org
Fri Apr 4 18:58:34 EDT 2008
Author: anthm
Date: Fri Apr 4 18:58:34 2008
New Revision: 8037
Modified:
freeswitch/trunk/src/switch_cpp.cpp
Log:
fix cpp wrapper
Modified: freeswitch/trunk/src/switch_cpp.cpp
==============================================================================
--- freeswitch/trunk/src/switch_cpp.cpp (original)
+++ freeswitch/trunk/src/switch_cpp.cpp Fri Apr 4 18:58:34 2008
@@ -71,12 +71,11 @@
CoreSession::CoreSession(char *nuuid)
{
-
+ memset(&caller_profile, 0, sizeof(caller_profile));
+ init_vars();
if (session = switch_core_session_locate(nuuid)) {
channel = switch_core_session_get_channel(session);
- init_vars();
uuid = strdup(nuuid);
- memset(&caller_profile, 0, sizeof(caller_profile));
allocated = 1;
}
}
@@ -162,6 +161,8 @@
void CoreSession::setDTMFCallback(void *cbfunc, char *funcargs) {
+ sanity_check_noreturn;
+
cb_state.funcargs = funcargs;
cb_state.function = cbfunc;
@@ -466,6 +467,8 @@
void CoreSession::setHangupHook(void *hangup_func) {
+ sanity_check_noreturn;
+
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "CoreSession::seHangupHook, hangup_func: %p\n", hangup_func);
on_hangup = hangup_func;
switch_channel_t *channel = switch_core_session_get_channel(session);
More information about the Freeswitch-svn
mailing list