This commit is contained in:
Anthony Minessale
2013-10-15 15:31:28 -05:00
parent 4a172402d2
commit c94dd25e4e
8 changed files with 1479 additions and 46 deletions
@@ -33,8 +33,8 @@ public class API {
swigCPtr = 0;
}
public API() {
this(freeswitchJNI.new_API(), true);
public API(CoreSession s) {
this(freeswitchJNI.new_API(CoreSession.getCPtr(s), s), true);
}
public String execute(String command, String data) {
@@ -19,7 +19,7 @@ class freeswitchJNI {
public final static native void delete_IVRMenu(long jarg1);
public final static native void IVRMenu_bindAction(long jarg1, IVRMenu jarg1_, String jarg2, String jarg3, String jarg4);
public final static native void IVRMenu_execute(long jarg1, IVRMenu jarg1_, long jarg2, CoreSession jarg2_, String jarg3);
public final static native long new_API();
public final static native long new_API(long jarg1, CoreSession jarg1_);
public final static native void delete_API(long jarg1);
public final static native String API_execute(long jarg1, API jarg1_, String jarg2, String jarg3);
public final static native String API_executeString(long jarg1, API jarg1_, String jarg2);
@@ -521,13 +521,16 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_IVRMenu_1execute(
}
SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1API(JNIEnv *jenv, jclass jcls) {
SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_new_1API(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
jlong jresult = 0 ;
CoreSession *arg1 = (CoreSession *) NULL ;
API *result = 0 ;
(void)jenv;
(void)jcls;
result = (API *)new API();
(void)jarg1_;
arg1 = *(CoreSession **)&jarg1;
result = (API *)new API(arg1);
*(API **)&jresult = result;
return jresult;
}