git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14159 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West
2009-07-08 16:35:22 +00:00
parent b75a25ee5f
commit b76bb2d5a3
22 changed files with 160 additions and 128 deletions

View File

@@ -51,7 +51,7 @@ public class ESLconnection {
public ESLevent getInfo() {
long cPtr = eslJNI.ESLconnection_getInfo(swigCPtr, this);
return (cPtr == 0) ? null : new ESLevent(cPtr, false);
return (cPtr == 0) ? null : new ESLevent(cPtr, true);
}
public int send(String cmd) {
@@ -60,17 +60,17 @@ public class ESLconnection {
public ESLevent sendRecv(String cmd) {
long cPtr = eslJNI.ESLconnection_sendRecv(swigCPtr, this, cmd);
return (cPtr == 0) ? null : new ESLevent(cPtr, false);
return (cPtr == 0) ? null : new ESLevent(cPtr, true);
}
public ESLevent api(String cmd, String arg) {
long cPtr = eslJNI.ESLconnection_api(swigCPtr, this, cmd, arg);
return (cPtr == 0) ? null : new ESLevent(cPtr, false);
return (cPtr == 0) ? null : new ESLevent(cPtr, true);
}
public ESLevent bgapi(String cmd, String arg) {
long cPtr = eslJNI.ESLconnection_bgapi(swigCPtr, this, cmd, arg);
return (cPtr == 0) ? null : new ESLevent(cPtr, false);
return (cPtr == 0) ? null : new ESLevent(cPtr, true);
}
public int sendEvent(ESLevent send_me) {
@@ -79,17 +79,17 @@ public class ESLconnection {
public ESLevent recvEvent() {
long cPtr = eslJNI.ESLconnection_recvEvent(swigCPtr, this);
return (cPtr == 0) ? null : new ESLevent(cPtr, false);
return (cPtr == 0) ? null : new ESLevent(cPtr, true);
}
public ESLevent recvEventTimed(int ms) {
long cPtr = eslJNI.ESLconnection_recvEventTimed(swigCPtr, this, ms);
return (cPtr == 0) ? null : new ESLevent(cPtr, false);
return (cPtr == 0) ? null : new ESLevent(cPtr, true);
}
public ESLevent filter(String header, String value) {
long cPtr = eslJNI.ESLconnection_filter(swigCPtr, this, header, value);
return (cPtr == 0) ? null : new ESLevent(cPtr, false);
return (cPtr == 0) ? null : new ESLevent(cPtr, true);
}
public int events(String etype, String value) {