execute hangup state asap

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14852 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale committed 2009-09-14 20:10:58 +00:00
1 parent c92cb7283a
commit 5a5f3081f0
9 files changed
+131 -73

No files matched your search

@@ -6048,6 +6048,14 @@ SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_reporting_state(void * ja
}
SWIGEXPORT void SWIGSTDCALL CSharp_switch_core_session_hangup_state(void * jarg1) {
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
arg1 = (switch_core_session_t *)jarg1;
switch_core_session_hangup_state(arg1);
}
SWIGEXPORT unsigned long SWIGSTDCALL CSharp_switch_core_session_count() {
unsigned long jresult ;
uint32_t result;
@@ -28592,19 +28600,21 @@ SWIGEXPORT void SWIGSTDCALL CSharp_CoreSession_SetCallerData(void * jarg1, char
}
SWIGEXPORT int SWIGSTDCALL CSharp_CoreSession_Originate(void * jarg1, void * jarg2, char * jarg3, int jarg4) {
SWIGEXPORT int SWIGSTDCALL CSharp_CoreSession_Originate(void * jarg1, void * jarg2, char * jarg3, int jarg4, void * jarg5) {
int jresult ;
CoreSession *arg1 = (CoreSession *) 0 ;
CoreSession *arg2 = (CoreSession *) 0 ;
char *arg3 = (char *) 0 ;
int arg4 = (int) 60 ;
switch_state_handler_table_t *arg5 = (switch_state_handler_table_t *) NULL ;
int result;
arg1 = (CoreSession *)jarg1;
arg2 = (CoreSession *)jarg2;
arg3 = (char *)jarg3;
arg4 = (int)jarg4;
result = (int)(arg1)->originate(arg2,arg3,arg4);
arg5 = (switch_state_handler_table_t *)jarg5;
result = (int)(arg1)->originate(arg2,arg3,arg4,arg5);
jresult = result;
return jresult;
}
+10 -3
View File
@@ -244,8 +244,8 @@ public class CoreSession : IDisposable {
freeswitchPINVOKE.CoreSession_SetCallerData(swigCPtr, var, val);
}
public int Originate(CoreSession a_leg_session, string dest, int timeout) {
int ret = freeswitchPINVOKE.CoreSession_Originate(swigCPtr, CoreSession.getCPtr(a_leg_session), dest, timeout);
public int Originate(CoreSession a_leg_session, string dest, int timeout, switch_state_handler_table handlers) {
int ret = freeswitchPINVOKE.CoreSession_Originate(swigCPtr, CoreSession.getCPtr(a_leg_session), dest, timeout, switch_state_handler_table.getCPtr(handlers));
return ret;
}
@@ -1142,6 +1142,10 @@ public class freeswitch {
freeswitchPINVOKE.switch_core_session_reporting_state(SWIGTYPE_p_switch_core_session.getCPtr(session));
}
public static void switch_core_session_hangup_state(SWIGTYPE_p_switch_core_session session) {
freeswitchPINVOKE.switch_core_session_hangup_state(SWIGTYPE_p_switch_core_session.getCPtr(session));
}
public static uint switch_core_session_count() {
uint ret = freeswitchPINVOKE.switch_core_session_count();
return ret;
@@ -6008,6 +6012,9 @@ class freeswitchPINVOKE {
[DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_reporting_state")]
public static extern void switch_core_session_reporting_state(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_hangup_state")]
public static extern void switch_core_session_hangup_state(HandleRef jarg1);
[DllImport("mod_managed", EntryPoint="CSharp_switch_core_session_count")]
public static extern uint switch_core_session_count();
@@ -11289,7 +11296,7 @@ class freeswitchPINVOKE {
public static extern void CoreSession_SetCallerData(HandleRef jarg1, string jarg2, string jarg3);
[DllImport("mod_managed", EntryPoint="CSharp_CoreSession_Originate")]
public static extern int CoreSession_Originate(HandleRef jarg1, HandleRef jarg2, string jarg3, int jarg4);
public static extern int CoreSession_Originate(HandleRef jarg1, HandleRef jarg2, string jarg3, int jarg4, HandleRef jarg5);
[DllImport("mod_managed", EntryPoint="CSharp_CoreSession_destroy")]
public static extern void CoreSession_destroy(HandleRef jarg1);