mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-25 12:44:15 +00:00
change names to protect the ignorant
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13028 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
726ef4fd2a
commit
3e26e87ba6
6 files changed
+106
-69
No files matched your search
@@ -1702,23 +1702,23 @@ static void set_stats(switch_rtp_t *rtp_session, private_object_t *tech_pvt, con
|
||||
|
||||
if (stats) {
|
||||
|
||||
add_stat(stats->in.raw_bytes, "in_raw_bytes");
|
||||
add_stat(stats->in.media_bytes, "in_media_bytes");
|
||||
add_stat(stats->in.packet_count, "in_packet_count");
|
||||
add_stat(stats->in.media_packet_count, "in_media_packet_count");
|
||||
add_stat(stats->in.skip_packet_count, "in_skip_packet_count");
|
||||
add_stat(stats->in.jb_packet_count, "in_jb_packet_count");
|
||||
add_stat(stats->in.dtmf_packet_count, "in_dtmf_packet_count");
|
||||
add_stat(stats->in.cng_packet_count, "in_cng_packet_count");
|
||||
add_stat(stats->in.cng_packet_count, "in_flush_packet_count");
|
||||
add_stat(stats->inbound.raw_bytes, "in_raw_bytes");
|
||||
add_stat(stats->inbound.media_bytes, "in_media_bytes");
|
||||
add_stat(stats->inbound.packet_count, "in_packet_count");
|
||||
add_stat(stats->inbound.media_packet_count, "in_media_packet_count");
|
||||
add_stat(stats->inbound.skip_packet_count, "in_skip_packet_count");
|
||||
add_stat(stats->inbound.jb_packet_count, "in_jb_packet_count");
|
||||
add_stat(stats->inbound.dtmf_packet_count, "in_dtmf_packet_count");
|
||||
add_stat(stats->inbound.cng_packet_count, "in_cng_packet_count");
|
||||
add_stat(stats->inbound.cng_packet_count, "in_flush_packet_count");
|
||||
|
||||
add_stat(stats->out.raw_bytes, "out_raw_bytes");
|
||||
add_stat(stats->out.media_bytes, "out_media_bytes");
|
||||
add_stat(stats->out.packet_count, "out_packet_count");
|
||||
add_stat(stats->out.media_packet_count, "out_media_packet_count");
|
||||
add_stat(stats->out.skip_packet_count, "out_skip_packet_count");
|
||||
add_stat(stats->out.dtmf_packet_count, "out_dtmf_packet_count");
|
||||
add_stat(stats->out.cng_packet_count, "out_cng_packet_count");
|
||||
add_stat(stats->outbound.raw_bytes, "out_raw_bytes");
|
||||
add_stat(stats->outbound.media_bytes, "out_media_bytes");
|
||||
add_stat(stats->outbound.packet_count, "out_packet_count");
|
||||
add_stat(stats->outbound.media_packet_count, "out_media_packet_count");
|
||||
add_stat(stats->outbound.skip_packet_count, "out_skip_packet_count");
|
||||
add_stat(stats->outbound.dtmf_packet_count, "out_dtmf_packet_count");
|
||||
add_stat(stats->outbound.cng_packet_count, "out_cng_packet_count");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +25,44 @@
|
||||
* build all sorts of c wrappers and lua shadows of the c wrappers.
|
||||
*/
|
||||
%include switch_swigable_cpp.h
|
||||
%include freeswitch_lua.h
|
||||
|
||||
|
||||
namespace LUA {
|
||||
class Session : public CoreSession {
|
||||
private:
|
||||
virtual void do_hangup_hook();
|
||||
lua_State *getLUA();
|
||||
lua_State *L;
|
||||
int hh;
|
||||
int mark;
|
||||
public:
|
||||
Session();
|
||||
Session(char *uuid, CoreSession *a_leg = NULL);
|
||||
Session(switch_core_session_t *session);
|
||||
~Session();
|
||||
virtual void destroy(void);
|
||||
|
||||
virtual bool begin_allow_threads();
|
||||
virtual bool end_allow_threads();
|
||||
virtual void check_hangup_hook();
|
||||
|
||||
virtual switch_status_t run_dtmf_callback(void *input, switch_input_type_t itype);
|
||||
void unsetInputCallback(void);
|
||||
void setInputCallback(char *cbfunc, char *funcargs = NULL);
|
||||
void setHangupHook(char *func, char *arg = NULL);
|
||||
bool ready();
|
||||
int originate(CoreSession *a_leg_session, char *dest, int timeout);
|
||||
|
||||
char *cb_function;
|
||||
char *cb_arg;
|
||||
char *hangup_func_str;
|
||||
char *hangup_func_arg;
|
||||
void setLUA(lua_State *state);
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -2698,47 +2698,47 @@ SWIGEXPORT void SWIGSTDCALL CSharp_delete_switch_rtp_numbers_t(void * jarg1) {
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_stats_t_in_set(void * jarg1, void * jarg2) {
|
||||
SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_stats_t_inbound_set(void * jarg1, void * jarg2) {
|
||||
switch_rtp_stats_t *arg1 = (switch_rtp_stats_t *) 0 ;
|
||||
switch_rtp_numbers_t *arg2 = (switch_rtp_numbers_t *) 0 ;
|
||||
|
||||
arg1 = (switch_rtp_stats_t *)jarg1;
|
||||
arg2 = (switch_rtp_numbers_t *)jarg2;
|
||||
if (arg1) (arg1)->in = *arg2;
|
||||
if (arg1) (arg1)->inbound = *arg2;
|
||||
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_stats_t_in_get(void * jarg1) {
|
||||
SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_stats_t_inbound_get(void * jarg1) {
|
||||
void * jresult ;
|
||||
switch_rtp_stats_t *arg1 = (switch_rtp_stats_t *) 0 ;
|
||||
switch_rtp_numbers_t *result = 0 ;
|
||||
|
||||
arg1 = (switch_rtp_stats_t *)jarg1;
|
||||
result = (switch_rtp_numbers_t *)& ((arg1)->in);
|
||||
result = (switch_rtp_numbers_t *)& ((arg1)->inbound);
|
||||
jresult = (void *)result;
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_stats_t_out_set(void * jarg1, void * jarg2) {
|
||||
SWIGEXPORT void SWIGSTDCALL CSharp_switch_rtp_stats_t_outbound_set(void * jarg1, void * jarg2) {
|
||||
switch_rtp_stats_t *arg1 = (switch_rtp_stats_t *) 0 ;
|
||||
switch_rtp_numbers_t *arg2 = (switch_rtp_numbers_t *) 0 ;
|
||||
|
||||
arg1 = (switch_rtp_stats_t *)jarg1;
|
||||
arg2 = (switch_rtp_numbers_t *)jarg2;
|
||||
if (arg1) (arg1)->out = *arg2;
|
||||
if (arg1) (arg1)->outbound = *arg2;
|
||||
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_stats_t_out_get(void * jarg1) {
|
||||
SWIGEXPORT void * SWIGSTDCALL CSharp_switch_rtp_stats_t_outbound_get(void * jarg1) {
|
||||
void * jresult ;
|
||||
switch_rtp_stats_t *arg1 = (switch_rtp_stats_t *) 0 ;
|
||||
switch_rtp_numbers_t *result = 0 ;
|
||||
|
||||
arg1 = (switch_rtp_stats_t *)jarg1;
|
||||
result = (switch_rtp_numbers_t *)& ((arg1)->out);
|
||||
result = (switch_rtp_numbers_t *)& ((arg1)->outbound);
|
||||
jresult = (void *)result;
|
||||
return jresult;
|
||||
}
|
||||
|
||||
@@ -5103,17 +5103,17 @@ class freeswitchPINVOKE {
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_delete_switch_rtp_numbers_t")]
|
||||
public static extern void delete_switch_rtp_numbers_t(HandleRef jarg1);
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_stats_t_in_set")]
|
||||
public static extern void switch_rtp_stats_t_in_set(HandleRef jarg1, HandleRef jarg2);
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_stats_t_inbound_set")]
|
||||
public static extern void switch_rtp_stats_t_inbound_set(HandleRef jarg1, HandleRef jarg2);
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_stats_t_in_get")]
|
||||
public static extern IntPtr switch_rtp_stats_t_in_get(HandleRef jarg1);
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_stats_t_inbound_get")]
|
||||
public static extern IntPtr switch_rtp_stats_t_inbound_get(HandleRef jarg1);
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_stats_t_out_set")]
|
||||
public static extern void switch_rtp_stats_t_out_set(HandleRef jarg1, HandleRef jarg2);
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_stats_t_outbound_set")]
|
||||
public static extern void switch_rtp_stats_t_outbound_set(HandleRef jarg1, HandleRef jarg2);
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_stats_t_out_get")]
|
||||
public static extern IntPtr switch_rtp_stats_t_out_get(HandleRef jarg1);
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_switch_rtp_stats_t_outbound_get")]
|
||||
public static extern IntPtr switch_rtp_stats_t_outbound_get(HandleRef jarg1);
|
||||
|
||||
[DllImport("mod_managed", EntryPoint="CSharp_new_switch_rtp_stats_t")]
|
||||
public static extern IntPtr new_switch_rtp_stats_t();
|
||||
@@ -23713,23 +23713,23 @@ public class switch_rtp_stats_t : IDisposable {
|
||||
}
|
||||
}
|
||||
|
||||
public switch_rtp_numbers_t in {
|
||||
public switch_rtp_numbers_t inbound {
|
||||
set {
|
||||
freeswitchPINVOKE.switch_rtp_stats_t_in_set(swigCPtr, switch_rtp_numbers_t.getCPtr(value));
|
||||
freeswitchPINVOKE.switch_rtp_stats_t_inbound_set(swigCPtr, switch_rtp_numbers_t.getCPtr(value));
|
||||
}
|
||||
get {
|
||||
IntPtr cPtr = freeswitchPINVOKE.switch_rtp_stats_t_in_get(swigCPtr);
|
||||
IntPtr cPtr = freeswitchPINVOKE.switch_rtp_stats_t_inbound_get(swigCPtr);
|
||||
switch_rtp_numbers_t ret = (cPtr == IntPtr.Zero) ? null : new switch_rtp_numbers_t(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public switch_rtp_numbers_t out {
|
||||
public switch_rtp_numbers_t outbound {
|
||||
set {
|
||||
freeswitchPINVOKE.switch_rtp_stats_t_out_set(swigCPtr, switch_rtp_numbers_t.getCPtr(value));
|
||||
freeswitchPINVOKE.switch_rtp_stats_t_outbound_set(swigCPtr, switch_rtp_numbers_t.getCPtr(value));
|
||||
}
|
||||
get {
|
||||
IntPtr cPtr = freeswitchPINVOKE.switch_rtp_stats_t_out_get(swigCPtr);
|
||||
IntPtr cPtr = freeswitchPINVOKE.switch_rtp_stats_t_outbound_get(swigCPtr);
|
||||
switch_rtp_numbers_t ret = (cPtr == IntPtr.Zero) ? null : new switch_rtp_numbers_t(cPtr, false);
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user