FSCORE-282

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11570 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2009-01-30 23:19:38 +00:00
parent 2c0575834b
commit b32de05846
7 changed files with 29 additions and 32 deletions

View File

@@ -580,18 +580,15 @@ SWITCH_DECLARE(const char *)CoreSession::getVariable(char *var)
return switch_channel_get_variable(channel, var);
}
SWITCH_DECLARE(void) CoreSession::execute(char *app, char *data)
SWITCH_DECLARE(void) CoreSession::execute(const char *app, const char *data)
{
const switch_application_interface_t *application_interface;
this_check_void();
sanity_check_noreturn;
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "CoreSession::execute. app: %s data:%s\n", app, data);
if ((application_interface = switch_loadable_module_get_application_interface(app))) {
begin_allow_threads();
switch_core_session_exec(session, application_interface, data);
end_allow_threads();
}
begin_allow_threads();
switch_core_session_execute_application(session, app, data);
end_allow_threads();
}
SWITCH_DECLARE(void) CoreSession::setDTMFCallback(void *cbfunc, char *funcargs) {