mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 09:36:46 +00:00
change execute and executeAsync to return the last event instead of status since it will almost always be 0
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15973 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -111,13 +111,15 @@ public class ESLconnection : IDisposable {
|
||||
return ret;
|
||||
}
|
||||
|
||||
public int execute(string app, string arg, string uuid) {
|
||||
int ret = ESLPINVOKE.ESLconnection_execute(swigCPtr, app, arg, uuid);
|
||||
public ESLevent execute(string app, string arg, string uuid) {
|
||||
IntPtr cPtr = ESLPINVOKE.ESLconnection_execute(swigCPtr, app, arg, uuid);
|
||||
ESLevent ret = (cPtr == IntPtr.Zero) ? null : new ESLevent(cPtr, true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public int executeAsync(string app, string arg, string uuid) {
|
||||
int ret = ESLPINVOKE.ESLconnection_executeAsync(swigCPtr, app, arg, uuid);
|
||||
public ESLevent executeAsync(string app, string arg, string uuid) {
|
||||
IntPtr cPtr = ESLPINVOKE.ESLconnection_executeAsync(swigCPtr, app, arg, uuid);
|
||||
ESLevent ret = (cPtr == IntPtr.Zero) ? null : new ESLevent(cPtr, true);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user