Skip to content

Commit 5c289cc

Browse files
committed
swigall
1 parent 9347c96 commit 5c289cc

File tree

2 files changed

+210
-1
lines changed

2 files changed

+210
-1
lines changed

src/mod/languages/mod_managed/freeswitch_wrap.cxx

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21077,6 +21077,22 @@ SWIGEXPORT int SWIGSTDCALL CSharp_FreeSWITCHfNative_switch_frame_free___(void *
2107721077
}
2107821078

2107921079

21080+
SWIGEXPORT int SWIGSTDCALL CSharp_FreeSWITCHfNative_switch_is_uint_in_range___(char * jarg1, unsigned int jarg2, unsigned int jarg3) {
21081+
int jresult ;
21082+
char *arg1 = (char *) 0 ;
21083+
unsigned int arg2 ;
21084+
unsigned int arg3 ;
21085+
switch_bool_t result;
21086+
21087+
arg1 = (char *)jarg1;
21088+
arg2 = (unsigned int)jarg2;
21089+
arg3 = (unsigned int)jarg3;
21090+
result = (switch_bool_t)switch_is_uint_in_range((char const *)arg1,arg2,arg3);
21091+
jresult = (int)result;
21092+
return jresult;
21093+
}
21094+
21095+
2108021096
SWIGEXPORT int SWIGSTDCALL CSharp_FreeSWITCHfNative_switch_is_number___(char * jarg1) {
2108121097
int jresult ;
2108221098
char *arg1 = (char *) 0 ;
@@ -33245,6 +33261,50 @@ SWIGEXPORT int SWIGSTDCALL CSharp_FreeSWITCHfNative_switch_codec_fmtp_microsecon
3324533261
}
3324633262

3324733263

33264+
SWIGEXPORT void SWIGSTDCALL CSharp_FreeSWITCHfNative_switch_codec_fmtp_max_ptime_set___(void * jarg1, int jarg2) {
33265+
switch_codec_fmtp *arg1 = (switch_codec_fmtp *) 0 ;
33266+
int arg2 ;
33267+
33268+
arg1 = (switch_codec_fmtp *)jarg1;
33269+
arg2 = (int)jarg2;
33270+
if (arg1) (arg1)->max_ptime = arg2;
33271+
}
33272+
33273+
33274+
SWIGEXPORT int SWIGSTDCALL CSharp_FreeSWITCHfNative_switch_codec_fmtp_max_ptime_get___(void * jarg1) {
33275+
int jresult ;
33276+
switch_codec_fmtp *arg1 = (switch_codec_fmtp *) 0 ;
33277+
int result;
33278+
33279+
arg1 = (switch_codec_fmtp *)jarg1;
33280+
result = (int) ((arg1)->max_ptime);
33281+
jresult = result;
33282+
return jresult;
33283+
}
33284+
33285+
33286+
SWIGEXPORT void SWIGSTDCALL CSharp_FreeSWITCHfNative_switch_codec_fmtp_min_ptime_set___(void * jarg1, int jarg2) {
33287+
switch_codec_fmtp *arg1 = (switch_codec_fmtp *) 0 ;
33288+
int arg2 ;
33289+
33290+
arg1 = (switch_codec_fmtp *)jarg1;
33291+
arg2 = (int)jarg2;
33292+
if (arg1) (arg1)->min_ptime = arg2;
33293+
}
33294+
33295+
33296+
SWIGEXPORT int SWIGSTDCALL CSharp_FreeSWITCHfNative_switch_codec_fmtp_min_ptime_get___(void * jarg1) {
33297+
int jresult ;
33298+
switch_codec_fmtp *arg1 = (switch_codec_fmtp *) 0 ;
33299+
int result;
33300+
33301+
arg1 = (switch_codec_fmtp *)jarg1;
33302+
result = (int) ((arg1)->min_ptime);
33303+
jresult = result;
33304+
return jresult;
33305+
}
33306+
33307+
3324833308
SWIGEXPORT void SWIGSTDCALL CSharp_FreeSWITCHfNative_switch_codec_fmtp_stereo_set___(void * jarg1, int jarg2) {
3324933309
switch_codec_fmtp *arg1 = (switch_codec_fmtp *) 0 ;
3325033310
int arg2 ;
@@ -33267,6 +33327,28 @@ SWIGEXPORT int SWIGSTDCALL CSharp_FreeSWITCHfNative_switch_codec_fmtp_stereo_get
3326733327
}
3326833328

3326933329

33330+
SWIGEXPORT void SWIGSTDCALL CSharp_FreeSWITCHfNative_switch_codec_fmtp_sprop_stereo_set___(void * jarg1, int jarg2) {
33331+
switch_codec_fmtp *arg1 = (switch_codec_fmtp *) 0 ;
33332+
int arg2 ;
33333+
33334+
arg1 = (switch_codec_fmtp *)jarg1;
33335+
arg2 = (int)jarg2;
33336+
if (arg1) (arg1)->sprop_stereo = arg2;
33337+
}
33338+
33339+
33340+
SWIGEXPORT int SWIGSTDCALL CSharp_FreeSWITCHfNative_switch_codec_fmtp_sprop_stereo_get___(void * jarg1) {
33341+
int jresult ;
33342+
switch_codec_fmtp *arg1 = (switch_codec_fmtp *) 0 ;
33343+
int result;
33344+
33345+
arg1 = (switch_codec_fmtp *)jarg1;
33346+
result = (int) ((arg1)->sprop_stereo);
33347+
jresult = result;
33348+
return jresult;
33349+
}
33350+
33351+
3327033352
SWIGEXPORT void SWIGSTDCALL CSharp_FreeSWITCHfNative_switch_codec_fmtp_private_info_set___(void * jarg1, void * jarg2) {
3327133353
switch_codec_fmtp *arg1 = (switch_codec_fmtp *) 0 ;
3327233354
void *arg2 = (void *) 0 ;
@@ -36802,6 +36884,44 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_FreeSWITCHfNative_switch_channel_get_variab
3680236884
}
3680336885

3680436886

36887+
SWIGEXPORT char * SWIGSTDCALL CSharp_FreeSWITCHfNative_switch_channel_get_variable_strdup___(void * jarg1, char * jarg2) {
36888+
char * jresult ;
36889+
switch_channel_t *arg1 = (switch_channel_t *) 0 ;
36890+
char *arg2 = (char *) 0 ;
36891+
char *result = 0 ;
36892+
36893+
arg1 = (switch_channel_t *)jarg1;
36894+
arg2 = (char *)jarg2;
36895+
result = (char *)switch_channel_get_variable_strdup(arg1,(char const *)arg2);
36896+
jresult = SWIG_csharp_string_callback((const char *)result);
36897+
return jresult;
36898+
}
36899+
36900+
36901+
SWIGEXPORT int SWIGSTDCALL CSharp_FreeSWITCHfNative_switch_channel_get_variable_buf___(void * jarg1, char * jarg2, char * jarg3, void * jarg4) {
36902+
int jresult ;
36903+
switch_channel_t *arg1 = (switch_channel_t *) 0 ;
36904+
char *arg2 = (char *) 0 ;
36905+
char *arg3 = (char *) 0 ;
36906+
switch_size_t arg4 ;
36907+
switch_size_t *argp4 ;
36908+
switch_status_t result;
36909+
36910+
arg1 = (switch_channel_t *)jarg1;
36911+
arg2 = (char *)jarg2;
36912+
arg3 = (char *)jarg3;
36913+
argp4 = (switch_size_t *)jarg4;
36914+
if (!argp4) {
36915+
SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null switch_size_t", 0);
36916+
return 0;
36917+
}
36918+
arg4 = *argp4;
36919+
result = (switch_status_t)switch_channel_get_variable_buf(arg1,(char const *)arg2,arg3,arg4);
36920+
jresult = (int)result;
36921+
return jresult;
36922+
}
36923+
36924+
3680536925
SWIGEXPORT int SWIGSTDCALL CSharp_FreeSWITCHfNative_switch_channel_get_variables___(void * jarg1, void * jarg2) {
3680636926
int jresult ;
3680736927
switch_channel_t *arg1 = (switch_channel_t *) 0 ;
@@ -45145,6 +45265,16 @@ SWIGEXPORT int SWIGSTDCALL CSharp_FreeSWITCHfNative_MAX_CAND_get___() {
4514545265
}
4514645266

4514745267

45268+
SWIGEXPORT int SWIGSTDCALL CSharp_FreeSWITCHfNative_MAX_CAND_IDX_COUNT_get___() {
45269+
int jresult ;
45270+
int result;
45271+
45272+
result = (int)(2);
45273+
jresult = result;
45274+
return jresult;
45275+
}
45276+
45277+
4514845278
SWIGEXPORT void SWIGSTDCALL CSharp_FreeSWITCHfNative_ice_t_cands_set___(void * jarg1, void * jarg2) {
4514945279
ice_s *arg1 = (ice_s *) 0 ;
4515045280
icand_t (*arg2)[2] ;

src/mod/languages/mod_managed/managed/swig.cs

Lines changed: 80 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10932,6 +10932,11 @@ public static switch_status_t switch_frame_free(SWIGTYPE_p_p_switch_frame frame)
1093210932
return ret;
1093310933
}
1093410934

10935+
public static switch_bool_t switch_is_uint_in_range(string str, uint from, uint to) {
10936+
switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_is_uint_in_range(str, from, to);
10937+
return ret;
10938+
}
10939+
1093510940
public static switch_bool_t switch_is_number(string str) {
1093610941
switch_bool_t ret = (switch_bool_t)freeswitchPINVOKE.switch_is_number(str);
1093710942
return ret;
@@ -11884,6 +11889,17 @@ public static string switch_channel_get_variable_dup(SWIGTYPE_p_switch_channel c
1188411889
return ret;
1188511890
}
1188611891

11892+
public static string switch_channel_get_variable_strdup(SWIGTYPE_p_switch_channel channel, string varname) {
11893+
string ret = freeswitchPINVOKE.switch_channel_get_variable_strdup(SWIGTYPE_p_switch_channel.getCPtr(channel), varname);
11894+
return ret;
11895+
}
11896+
11897+
public static switch_status_t switch_channel_get_variable_buf(SWIGTYPE_p_switch_channel channel, string varname, string buf, SWIGTYPE_p_switch_size_t buflen) {
11898+
switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_get_variable_buf(SWIGTYPE_p_switch_channel.getCPtr(channel), varname, buf, SWIGTYPE_p_switch_size_t.getCPtr(buflen));
11899+
if (freeswitchPINVOKE.SWIGPendingException.Pending) throw freeswitchPINVOKE.SWIGPendingException.Retrieve();
11900+
return ret;
11901+
}
11902+
1188711903
public static switch_status_t switch_channel_get_variables(SWIGTYPE_p_switch_channel channel, SWIGTYPE_p_p_switch_event arg1) {
1188811904
switch_status_t ret = (switch_status_t)freeswitchPINVOKE.switch_channel_get_variables(SWIGTYPE_p_switch_channel.getCPtr(channel), SWIGTYPE_p_p_switch_event.getCPtr(arg1));
1188911905
return ret;
@@ -15223,6 +15239,7 @@ public static switch_status_t dtmf_callback(SWIGTYPE_p_switch_core_session sessi
1522315239
public static readonly string SWITCH_RTP_CRYPTO_KEY_80 = freeswitchPINVOKE.SWITCH_RTP_CRYPTO_KEY_80_get();
1522415240
public static readonly int SWITCH_RTP_BUNDLE_INTERNAL_PT = freeswitchPINVOKE.SWITCH_RTP_BUNDLE_INTERNAL_PT_get();
1522515241
public static readonly int MAX_CAND = freeswitchPINVOKE.MAX_CAND_get();
15242+
public static readonly int MAX_CAND_IDX_COUNT = freeswitchPINVOKE.MAX_CAND_IDX_COUNT_get();
1522615243
public static readonly int SWITCH_XML_BUFSIZE = freeswitchPINVOKE.SWITCH_XML_BUFSIZE_get();
1522715244
}
1522815245

@@ -20575,6 +20592,9 @@ static SWIGStringHelper() {
2057520592
[global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_switch_frame_free___")]
2057620593
public static extern int switch_frame_free(global::System.Runtime.InteropServices.HandleRef jarg1);
2057720594

20595+
[global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_switch_is_uint_in_range___")]
20596+
public static extern int switch_is_uint_in_range(string jarg1, uint jarg2, uint jarg3);
20597+
2057820598
[global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_switch_is_number___")]
2057920599
public static extern int switch_is_number(string jarg1);
2058020600

@@ -23614,12 +23634,30 @@ static SWIGStringHelper() {
2361423634
[global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_switch_codec_fmtp_microseconds_per_packet_get___")]
2361523635
public static extern int switch_codec_fmtp_microseconds_per_packet_get(global::System.Runtime.InteropServices.HandleRef jarg1);
2361623636

23637+
[global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_switch_codec_fmtp_max_ptime_set___")]
23638+
public static extern void switch_codec_fmtp_max_ptime_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
23639+
23640+
[global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_switch_codec_fmtp_max_ptime_get___")]
23641+
public static extern int switch_codec_fmtp_max_ptime_get(global::System.Runtime.InteropServices.HandleRef jarg1);
23642+
23643+
[global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_switch_codec_fmtp_min_ptime_set___")]
23644+
public static extern void switch_codec_fmtp_min_ptime_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
23645+
23646+
[global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_switch_codec_fmtp_min_ptime_get___")]
23647+
public static extern int switch_codec_fmtp_min_ptime_get(global::System.Runtime.InteropServices.HandleRef jarg1);
23648+
2361723649
[global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_switch_codec_fmtp_stereo_set___")]
2361823650
public static extern void switch_codec_fmtp_stereo_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
2361923651

2362023652
[global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_switch_codec_fmtp_stereo_get___")]
2362123653
public static extern int switch_codec_fmtp_stereo_get(global::System.Runtime.InteropServices.HandleRef jarg1);
2362223654

23655+
[global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_switch_codec_fmtp_sprop_stereo_set___")]
23656+
public static extern void switch_codec_fmtp_sprop_stereo_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
23657+
23658+
[global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_switch_codec_fmtp_sprop_stereo_get___")]
23659+
public static extern int switch_codec_fmtp_sprop_stereo_get(global::System.Runtime.InteropServices.HandleRef jarg1);
23660+
2362323661
[global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_switch_codec_fmtp_private_info_set___")]
2362423662
public static extern void switch_codec_fmtp_private_info_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
2362523663

@@ -24487,6 +24525,12 @@ static SWIGStringHelper() {
2448724525
[global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_switch_channel_get_variable_dup___")]
2448824526
public static extern string switch_channel_get_variable_dup(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, int jarg3, int jarg4);
2448924527

24528+
[global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_switch_channel_get_variable_strdup___")]
24529+
public static extern string switch_channel_get_variable_strdup(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
24530+
24531+
[global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_switch_channel_get_variable_buf___")]
24532+
public static extern int switch_channel_get_variable_buf(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3, global::System.Runtime.InteropServices.HandleRef jarg4);
24533+
2449024534
[global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_switch_channel_get_variables___")]
2449124535
public static extern int switch_channel_get_variables(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
2449224536

@@ -26281,6 +26325,9 @@ static SWIGStringHelper() {
2628126325
[global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_MAX_CAND_get___")]
2628226326
public static extern int MAX_CAND_get();
2628326327

26328+
[global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_MAX_CAND_IDX_COUNT_get___")]
26329+
public static extern int MAX_CAND_IDX_COUNT_get();
26330+
2628426331
[global::System.Runtime.InteropServices.DllImport("mod_managed", EntryPoint="CSharp_FreeSWITCHfNative_ice_t_cands_set___")]
2628526332
public static extern void ice_t_cands_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
2628626333

@@ -31066,7 +31113,8 @@ public enum switch_call_cause_t {
3106631113
SWITCH_CAUSE_BAD_IDENTITY_INFO = 821,
3106731114
SWITCH_CAUSE_UNSUPPORTED_CERTIFICATE = 822,
3106831115
SWITCH_CAUSE_INVALID_IDENTITY = 823,
31069-
SWITCH_CAUSE_STALE_DATE = 824
31116+
SWITCH_CAUSE_STALE_DATE = 824,
31117+
SWITCH_CAUSE_REJECT_ALL = 825
3107031118
}
3107131119

3107231120
}
@@ -32781,6 +32829,7 @@ public enum switch_codec_control_command_t {
3278132829
SCC_VIDEO_RESET,
3278232830
SCC_AUDIO_PACKET_LOSS,
3278332831
SCC_AUDIO_ADJUST_BITRATE,
32832+
SCC_AUDIO_VAD,
3278432833
SCC_DEBUG,
3278532834
SCC_CODEC_SPECIFIC
3278632835
}
@@ -32905,6 +32954,26 @@ public int microseconds_per_packet {
3290532954
}
3290632955
}
3290732956

32957+
public int max_ptime {
32958+
set {
32959+
freeswitchPINVOKE.switch_codec_fmtp_max_ptime_set(swigCPtr, value);
32960+
}
32961+
get {
32962+
int ret = freeswitchPINVOKE.switch_codec_fmtp_max_ptime_get(swigCPtr);
32963+
return ret;
32964+
}
32965+
}
32966+
32967+
public int min_ptime {
32968+
set {
32969+
freeswitchPINVOKE.switch_codec_fmtp_min_ptime_set(swigCPtr, value);
32970+
}
32971+
get {
32972+
int ret = freeswitchPINVOKE.switch_codec_fmtp_min_ptime_get(swigCPtr);
32973+
return ret;
32974+
}
32975+
}
32976+
3290832977
public int stereo {
3290932978
set {
3291032979
freeswitchPINVOKE.switch_codec_fmtp_stereo_set(swigCPtr, value);
@@ -32915,6 +32984,16 @@ public int stereo {
3291532984
}
3291632985
}
3291732986

32987+
public int sprop_stereo {
32988+
set {
32989+
freeswitchPINVOKE.switch_codec_fmtp_sprop_stereo_set(swigCPtr, value);
32990+
}
32991+
get {
32992+
int ret = freeswitchPINVOKE.switch_codec_fmtp_sprop_stereo_get(swigCPtr);
32993+
return ret;
32994+
}
32995+
}
32996+
3291832997
public SWIGTYPE_p_void private_info {
3291932998
set {
3292032999
freeswitchPINVOKE.switch_codec_fmtp_private_info_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value));

0 commit comments

Comments
 (0)