mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 13:12:03 +00:00
match ESL to last commit and check in ESL::IVR perl mod
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12760 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -131,12 +131,12 @@ ESLevent *ESLconnection::getInfo()
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int ESLconnection::setBlockingExecute(const char *val)
|
||||
int ESLconnection::setAsyncExecute(const char *val)
|
||||
{
|
||||
if (val) {
|
||||
handle.blocking_execute = esl_true(val);
|
||||
handle.async_execute = esl_true(val);
|
||||
}
|
||||
return handle.blocking_execute;
|
||||
return handle.async_execute;
|
||||
}
|
||||
|
||||
int ESLconnection::setEventLock(const char *val)
|
||||
@@ -152,6 +152,19 @@ int ESLconnection::execute(const char *app, const char *arg, const char *uuid)
|
||||
return esl_execute(&handle, app, arg, uuid);
|
||||
}
|
||||
|
||||
|
||||
int ESLconnection::executeAsync(const char *app, const char *arg, const char *uuid)
|
||||
{
|
||||
int async = handle.async_execute;
|
||||
int r;
|
||||
|
||||
handle.async_execute = 1;
|
||||
r = esl_execute(&handle, app, arg, uuid);
|
||||
handle.async_execute = async;
|
||||
|
||||
return r;
|
||||
}
|
||||
|
||||
int ESLconnection::sendEvent(ESLevent *send_me)
|
||||
{
|
||||
return esl_sendevent(&handle, send_me->event);
|
||||
|
||||
Reference in New Issue
Block a user