mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 09:58:17 +00:00
FSCORE-282
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11570 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user