mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 01:26:58 +00:00
add disconnect method and check in ivrd
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12724 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -33,6 +33,15 @@ ESLconnection::~ESLconnection()
|
||||
|
||||
}
|
||||
|
||||
int ESLconnection::disconnect()
|
||||
{
|
||||
if (handle.connected) {
|
||||
return esl_disconnect(&handle);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int ESLconnection::connected()
|
||||
{
|
||||
return handle.connected;
|
||||
|
@@ -90,6 +90,7 @@ class ESLconnection {
|
||||
int execute(const char *app, const char *arg = NULL, const char *uuid = NULL);
|
||||
int setBlockingExecute(const char *val);
|
||||
int setEventLock(const char *val);
|
||||
int disconnect(void);
|
||||
};
|
||||
|
||||
void eslSetLogLevel(int level);
|
||||
|
Reference in New Issue
Block a user