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:
Anthony Minessale
2009-03-24 18:03:26 +00:00
parent 67984e765c
commit ebc4acf666
14 changed files with 436 additions and 40 deletions
+16 -3
View File
@@ -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);