mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-12 15:21:50 +00:00
add session.hangupCause()
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14912 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -84,6 +84,14 @@ public class CoreSession {
|
||||
return new SWIGTYPE_p_switch_channel_state_t(freeswitchJNI.CoreSession_hook_state_get(swigCPtr, this), true);
|
||||
}
|
||||
|
||||
public void setCause(SWIGTYPE_p_switch_call_cause_t value) {
|
||||
freeswitchJNI.CoreSession_cause_set(swigCPtr, this, SWIGTYPE_p_switch_call_cause_t.getCPtr(value));
|
||||
}
|
||||
|
||||
public SWIGTYPE_p_switch_call_cause_t getCause() {
|
||||
return new SWIGTYPE_p_switch_call_cause_t(freeswitchJNI.CoreSession_cause_get(swigCPtr, this), true);
|
||||
}
|
||||
|
||||
public void setUuid(String value) {
|
||||
freeswitchJNI.CoreSession_uuid_set(swigCPtr, this, value);
|
||||
}
|
||||
@@ -161,6 +169,10 @@ public class CoreSession {
|
||||
freeswitchJNI.CoreSession_sayPhrase__SWIG_2(swigCPtr, this, phrase_name);
|
||||
}
|
||||
|
||||
public String hangupCause() {
|
||||
return freeswitchJNI.CoreSession_hangupCause(swigCPtr, this);
|
||||
}
|
||||
|
||||
public int recordFile(String file_name, int time_limit, int silence_threshold, int silence_hits) {
|
||||
return freeswitchJNI.CoreSession_recordFile__SWIG_0(swigCPtr, this, file_name, time_limit, silence_threshold, silence_hits);
|
||||
}
|
||||
|
||||
@@ -98,6 +98,8 @@ class freeswitchJNI {
|
||||
public final static native long CoreSession_cb_state_get(long jarg1, CoreSession jarg1_);
|
||||
public final static native void CoreSession_hook_state_set(long jarg1, CoreSession jarg1_, long jarg2);
|
||||
public final static native long CoreSession_hook_state_get(long jarg1, CoreSession jarg1_);
|
||||
public final static native void CoreSession_cause_set(long jarg1, CoreSession jarg1_, long jarg2);
|
||||
public final static native long CoreSession_cause_get(long jarg1, CoreSession jarg1_);
|
||||
public final static native void CoreSession_uuid_set(long jarg1, CoreSession jarg1_, String jarg2);
|
||||
public final static native String CoreSession_uuid_get(long jarg1, CoreSession jarg1_);
|
||||
public final static native void CoreSession_tts_name_set(long jarg1, CoreSession jarg1_, String jarg2);
|
||||
@@ -117,6 +119,7 @@ class freeswitchJNI {
|
||||
public final static native void CoreSession_sayPhrase__SWIG_0(long jarg1, CoreSession jarg1_, String jarg2, String jarg3, String jarg4);
|
||||
public final static native void CoreSession_sayPhrase__SWIG_1(long jarg1, CoreSession jarg1_, String jarg2, String jarg3);
|
||||
public final static native void CoreSession_sayPhrase__SWIG_2(long jarg1, CoreSession jarg1_, String jarg2);
|
||||
public final static native String CoreSession_hangupCause(long jarg1, CoreSession jarg1_);
|
||||
public final static native int CoreSession_recordFile__SWIG_0(long jarg1, CoreSession jarg1_, String jarg2, int jarg3, int jarg4, int jarg5);
|
||||
public final static native int CoreSession_recordFile__SWIG_1(long jarg1, CoreSession jarg1_, String jarg2, int jarg3, int jarg4);
|
||||
public final static native int CoreSession_recordFile__SWIG_2(long jarg1, CoreSession jarg1_, String jarg2, int jarg3);
|
||||
|
||||
@@ -1773,6 +1773,41 @@ SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1hoo
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1cause_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
||||
CoreSession *arg1 = (CoreSession *) 0 ;
|
||||
switch_call_cause_t arg2 ;
|
||||
switch_call_cause_t *argp2 ;
|
||||
|
||||
(void)jenv;
|
||||
(void)jcls;
|
||||
(void)jarg1_;
|
||||
arg1 = *(CoreSession **)&jarg1;
|
||||
argp2 = *(switch_call_cause_t **)&jarg2;
|
||||
if (!argp2) {
|
||||
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null switch_call_cause_t");
|
||||
return ;
|
||||
}
|
||||
arg2 = *argp2;
|
||||
if (arg1) (arg1)->cause = arg2;
|
||||
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT jlong JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1cause_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
||||
jlong jresult = 0 ;
|
||||
CoreSession *arg1 = (CoreSession *) 0 ;
|
||||
switch_call_cause_t result;
|
||||
|
||||
(void)jenv;
|
||||
(void)jcls;
|
||||
(void)jarg1_;
|
||||
arg1 = *(CoreSession **)&jarg1;
|
||||
result = ((arg1)->cause);
|
||||
*(switch_call_cause_t **)&jresult = new switch_call_cause_t((switch_call_cause_t &)result);
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1uuid_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
|
||||
CoreSession *arg1 = (CoreSession *) 0 ;
|
||||
char *arg2 = (char *) 0 ;
|
||||
@@ -2180,6 +2215,21 @@ SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1sayP
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1hangupCause(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
||||
jstring jresult = 0 ;
|
||||
CoreSession *arg1 = (CoreSession *) 0 ;
|
||||
char *result = 0 ;
|
||||
|
||||
(void)jenv;
|
||||
(void)jcls;
|
||||
(void)jarg1_;
|
||||
arg1 = *(CoreSession **)&jarg1;
|
||||
result = (char *)(arg1)->hangupCause();
|
||||
if(result) jresult = jenv->NewStringUTF((const char *)result);
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1recordFile_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jint jarg3, jint jarg4, jint jarg5) {
|
||||
jint jresult = 0 ;
|
||||
CoreSession *arg1 = (CoreSession *) 0 ;
|
||||
|
||||
Reference in New Issue
Block a user