mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-12 15:21:50 +00:00
add session destroy psuedo method to sort of destroy a session at least for the sake of FS
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9571 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -189,6 +189,10 @@ public class CoreSession {
|
||||
return freeswitchJNI.CoreSession_originate__SWIG_1(swigCPtr, this, CoreSession.getCPtr(a_leg_session), a_leg_session, dest);
|
||||
}
|
||||
|
||||
public void destroy() {
|
||||
freeswitchJNI.CoreSession_destroy(swigCPtr, this);
|
||||
}
|
||||
|
||||
public void setDTMFCallback(SWIGTYPE_p_void cbfunc, String funcargs) {
|
||||
freeswitchJNI.CoreSession_setDTMFCallback(swigCPtr, this, SWIGTYPE_p_void.getCPtr(cbfunc), funcargs);
|
||||
}
|
||||
|
||||
@@ -122,6 +122,7 @@ class freeswitchJNI {
|
||||
public final static native void CoreSession_setCallerData(long jarg1, CoreSession jarg1_, String jarg2, String jarg3);
|
||||
public final static native int CoreSession_originate__SWIG_0(long jarg1, CoreSession jarg1_, long jarg2, CoreSession jarg2_, String jarg3, int jarg4);
|
||||
public final static native int CoreSession_originate__SWIG_1(long jarg1, CoreSession jarg1_, long jarg2, CoreSession jarg2_, String jarg3);
|
||||
public final static native void CoreSession_destroy(long jarg1, CoreSession jarg1_);
|
||||
public final static native void CoreSession_setDTMFCallback(long jarg1, CoreSession jarg1_, long jarg2, String jarg3);
|
||||
public final static native int CoreSession_speak(long jarg1, CoreSession jarg1_, String jarg2);
|
||||
public final static native void CoreSession_set_tts_parms(long jarg1, CoreSession jarg1_, String jarg2, String jarg3);
|
||||
|
||||
@@ -2304,6 +2304,17 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1orig
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1destroy(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
||||
CoreSession *arg1 = (CoreSession *) 0 ;
|
||||
|
||||
(void)jenv;
|
||||
(void)jcls;
|
||||
(void)jarg1_;
|
||||
arg1 = *(CoreSession **)&jarg1;
|
||||
(arg1)->destroy();
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1setDTMFCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jstring jarg3) {
|
||||
CoreSession *arg1 = (CoreSession *) 0 ;
|
||||
void *arg2 = (void *) 0 ;
|
||||
|
||||
Reference in New Issue
Block a user